@devtable/dashboard 13.40.1 → 13.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dashboard.es.js +308 -289
- package/dist/dashboard.umd.js +3 -3
- package/dist/stats.html +1 -1
- package/dist/version.json +2 -2
- package/package.json +1 -1
package/dist/dashboard.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var Fg = Object.defineProperty;
|
|
2
2
|
var Vg = (e, t, n) => t in e ? Fg(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var U = (e, t, n) => (Vg(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
|
-
import N, { forwardRef as re, useRef as
|
|
5
|
-
import { TextInput as L, Stack as C, Group as _, Button as M, Text as I, Box as R, Overlay as Or, Modal as He, Tooltip as we, ActionIcon as ue, NativeSelect as Zo, Select as q, Divider as $, NumberInput as ce, SimpleGrid as tt, Menu as oe, UnstyledButton as Pu, Flex as an, ColorInput as Fr, Center as mr, Badge as ur, CloseButton as
|
|
4
|
+
import N, { forwardRef as re, useRef as Kn, useEffect as G, useState as K, useCallback as je, useMemo as D, useLayoutEffect as Ng, createElement as da, useContext as pr, createContext as Ru, memo as qg } from "react";
|
|
5
|
+
import { TextInput as L, Stack as C, Group as _, Button as M, Text as I, Box as R, Overlay as Or, Modal as He, Tooltip as we, ActionIcon as ue, NativeSelect as Zo, Select as q, Divider as $, NumberInput as ce, SimpleGrid as tt, Menu as oe, UnstyledButton as Pu, Flex as an, ColorInput as Fr, Center as mr, Badge as ur, CloseButton as Xn, useMantineTheme as Ki, ColorSwatch as Fs, Popover as nn, ColorPicker as id, HoverCard as Xe, Checkbox as pe, Switch as st, Table as lt, MultiSelect as oi, Paper as Bg, Code as sd, Tabs as v, LoadingOverlay as Vr, Alert as Xi, createStyles as hi, Collapse as Ji, CheckIcon as Wg, MANTINE_SIZES as Hg, SegmentedControl as $u, Anchor as Vs, Pagination as el, Textarea as Ou, RangeSlider as Gg, Mark as Fu, Slider as Qg, List as Ut, Affix as Ug, Header as Yg, FileInput as Kg, ThemeIcon as Ua, Navbar as Bn, JsonInput as Vu, Drawer as Xg, Radio as ad, Skeleton as od, NavLink as bo, AppShell as Nu } from "@mantine/core";
|
|
6
6
|
import { useModals as $n, ModalsProvider as qu } from "@mantine/modals";
|
|
7
7
|
import { useBoolean as pt, useCreation as yn, useAsyncEffect as Zi, useRequest as Mr, useLatest as ld, usePrevious as Jg, useWhyDidYouUpdate as Bu } from "ahooks";
|
|
8
8
|
import { toJS as On, observable as Wu, runInAction as $i, reaction as Mt, makeAutoObservable as es } from "mobx";
|
|
@@ -20,7 +20,7 @@ import * as hb from "popmotion";
|
|
|
20
20
|
import { interpolate as Nr } from "popmotion";
|
|
21
21
|
import Ln from "axios";
|
|
22
22
|
import { useDisclosure as fr, useHover as pb, useClipboard as mb, randomId as Lr, useElementSize as Zu, useResizeObserver as fb, useInputState as eh } from "@mantine/hooks";
|
|
23
|
-
import { IconPlayerSkipBack as th, IconRecycle as on, IconDeviceFloppy as Fe, IconMathFunctionOff as xb, IconMathFunction as
|
|
23
|
+
import { IconPlayerSkipBack as th, IconRecycle as on, IconDeviceFloppy as Fe, IconMathFunctionOff as xb, IconMathFunction as er, IconTextSize as rl, IconSelector as gb, IconGripVertical as bb, IconTrash as ut, IconArrowBackUp as yb, IconInfoCircle as Ct, IconBorderAll as _b, IconCircleOff as nh, IconX as il, IconAlertCircle as qi, IconPlus as ln, IconGripHorizontal as vb, IconChevronUp as jb, IconChevronDown as wb, IconChartAreaLineFilled as Sb, IconPlaylistAdd as Bi, IconArrowDown as kb, IconArrowUp as Cb, IconArrowBarToRight as rh, IconArrowCurveRight as yo, IconCalendar as Ib, IconMinus as Tb, IconChevronsUp as Db, IconChevronsDown as zb, IconDatabase as Ar, IconRefresh as sl, IconDownload as ua, IconCode as Rr, IconCamera as ha, IconArrowsMaximize as ih, IconAppWindow as sh, IconVariable as ts, IconChartHistogram as ah, IconRoute as al, IconCopy as oh, IconArrowLeft as lh, IconArrowsMove as Mb, IconChevronDownRight as Eb, IconShare3 as Lb, IconArrowsLeftRight as Ab, IconCodeDots as Rb, IconFilter as ch, IconBoxMultiple as dh, IconCaretDown as Pb, IconAlertTriangle as uh, IconDevices as $b, IconSettings as pi, IconPointFilled as ol, IconFileImport as cd, IconCircleDashed as Ob, IconCircleDot as Fb, IconChevronsUpRight as Vb, IconAdjustments as Nb, IconLine as qb, IconEye as hh, IconTable as Bb, IconColumns as Wb, IconVectorTriangle as Hb, IconVariablePlus as Gb, IconHierarchy as Qb, IconDiscountCheckFilled as Ub } from "@tabler/icons-react";
|
|
24
24
|
import { useTranslation as y, Trans as pa, initReactI18next as Yb, I18nextProvider as Kb } from "react-i18next";
|
|
25
25
|
import { RichTextEditor as fe, Link as ph, useRichTextEditorContext as Xb } from "@mantine/tiptap";
|
|
26
26
|
import { Color as mh } from "@tiptap/extension-color";
|
|
@@ -59,8 +59,8 @@ import ud from "eventemitter2";
|
|
|
59
59
|
import It from "echarts-for-react/lib/core";
|
|
60
60
|
import "echarts-gl";
|
|
61
61
|
import { showNotification as $r, updateNotification as Qy, notifications as Dh } from "@mantine/notifications";
|
|
62
|
-
import * as
|
|
63
|
-
import { Prism as
|
|
62
|
+
import * as ar from "d3-regression";
|
|
63
|
+
import { Prism as Jn } from "@mantine/prism";
|
|
64
64
|
import { flexRender as qs, createColumnHelper as zh, useReactTable as Mh, getCoreRowModel as Eh, getSortedRowModel as Uy } from "@tanstack/react-table";
|
|
65
65
|
import { useVirtual as Yy } from "react-virtual";
|
|
66
66
|
import { types as x, cast as Rn, getRoot as jt, addDisposer as Kt, getParent as xt, isAlive as hd, flow as Zr, toGenerator as kr, clone as Ky, getSnapshot as Mn, applySnapshot as yt, addMiddleware as Xy, getType as Jy, detach as _o, castToSnapshot as Lh } from "mobx-state-tree";
|
|
@@ -160,16 +160,16 @@ function W_() {
|
|
|
160
160
|
var j = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
161
161
|
function T(w) {
|
|
162
162
|
{
|
|
163
|
-
for (var O = arguments.length,
|
|
164
|
-
|
|
165
|
-
A("error", w,
|
|
163
|
+
for (var O = arguments.length, Q = new Array(O > 1 ? O - 1 : 0), ae = 1; ae < O; ae++)
|
|
164
|
+
Q[ae - 1] = arguments[ae];
|
|
165
|
+
A("error", w, Q);
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
|
-
function A(w, O,
|
|
168
|
+
function A(w, O, Q) {
|
|
169
169
|
{
|
|
170
170
|
var ae = j.ReactDebugCurrentFrame, Te = ae.getStackAddendum();
|
|
171
|
-
Te !== "" && (O += "%s",
|
|
172
|
-
var Oe =
|
|
171
|
+
Te !== "" && (O += "%s", Q = Q.concat([Te]));
|
|
172
|
+
var Oe = Q.map(function(ve) {
|
|
173
173
|
return String(ve);
|
|
174
174
|
});
|
|
175
175
|
Oe.unshift("Warning: " + O), Function.prototype.apply.call(console[w], console, Oe);
|
|
@@ -184,12 +184,12 @@ function W_() {
|
|
|
184
184
|
// with.
|
|
185
185
|
w.$$typeof === Re || w.getModuleId !== void 0));
|
|
186
186
|
}
|
|
187
|
-
function H(w, O,
|
|
187
|
+
function H(w, O, Q) {
|
|
188
188
|
var ae = w.displayName;
|
|
189
189
|
if (ae)
|
|
190
190
|
return ae;
|
|
191
191
|
var Te = O.displayName || O.name || "";
|
|
192
|
-
return Te !== "" ?
|
|
192
|
+
return Te !== "" ? Q + "(" + Te + ")" : Q;
|
|
193
193
|
}
|
|
194
194
|
function V(w) {
|
|
195
195
|
return w.displayName || "Context";
|
|
@@ -221,8 +221,8 @@ function W_() {
|
|
|
221
221
|
var O = w;
|
|
222
222
|
return V(O) + ".Consumer";
|
|
223
223
|
case o:
|
|
224
|
-
var
|
|
225
|
-
return V(
|
|
224
|
+
var Q = w;
|
|
225
|
+
return V(Q._context) + ".Provider";
|
|
226
226
|
case c:
|
|
227
227
|
return H(w, w.render, "ForwardRef");
|
|
228
228
|
case h:
|
|
@@ -302,7 +302,7 @@ function W_() {
|
|
|
302
302
|
}
|
|
303
303
|
}
|
|
304
304
|
var Y = j.ReactCurrentDispatcher, he;
|
|
305
|
-
function Ce(w, O,
|
|
305
|
+
function Ce(w, O, Q) {
|
|
306
306
|
{
|
|
307
307
|
if (he === void 0)
|
|
308
308
|
try {
|
|
@@ -324,9 +324,9 @@ function W_() {
|
|
|
324
324
|
if (!w || Ge)
|
|
325
325
|
return "";
|
|
326
326
|
{
|
|
327
|
-
var
|
|
328
|
-
if (
|
|
329
|
-
return
|
|
327
|
+
var Q = Lt.get(w);
|
|
328
|
+
if (Q !== void 0)
|
|
329
|
+
return Q;
|
|
330
330
|
}
|
|
331
331
|
var ae;
|
|
332
332
|
Ge = !0;
|
|
@@ -391,14 +391,14 @@ function W_() {
|
|
|
391
391
|
var Qr = w ? w.displayName || w.name : "", rd = Qr ? Ce(Qr) : "";
|
|
392
392
|
return typeof w == "function" && Lt.set(w, rd), rd;
|
|
393
393
|
}
|
|
394
|
-
function In(w, O,
|
|
394
|
+
function In(w, O, Q) {
|
|
395
395
|
return pn(w, !1);
|
|
396
396
|
}
|
|
397
397
|
function mn(w) {
|
|
398
398
|
var O = w.prototype;
|
|
399
399
|
return !!(O && O.isReactComponent);
|
|
400
400
|
}
|
|
401
|
-
function xs(w, O,
|
|
401
|
+
function xs(w, O, Q) {
|
|
402
402
|
if (w == null)
|
|
403
403
|
return "";
|
|
404
404
|
if (typeof w == "function")
|
|
@@ -416,11 +416,11 @@ function W_() {
|
|
|
416
416
|
case c:
|
|
417
417
|
return In(w.render);
|
|
418
418
|
case h:
|
|
419
|
-
return xs(w.type, O,
|
|
419
|
+
return xs(w.type, O, Q);
|
|
420
420
|
case p: {
|
|
421
421
|
var ae = w, Te = ae._payload, Oe = ae._init;
|
|
422
422
|
try {
|
|
423
|
-
return xs(Oe(Te), O,
|
|
423
|
+
return xs(Oe(Te), O, Q);
|
|
424
424
|
} catch {
|
|
425
425
|
}
|
|
426
426
|
}
|
|
@@ -430,12 +430,12 @@ function W_() {
|
|
|
430
430
|
var gs = Object.prototype.hasOwnProperty, Hc = {}, Gc = j.ReactDebugCurrentFrame;
|
|
431
431
|
function bs(w) {
|
|
432
432
|
if (w) {
|
|
433
|
-
var O = w._owner,
|
|
434
|
-
Gc.setExtraStackFrame(
|
|
433
|
+
var O = w._owner, Q = xs(w.type, w._source, O ? O.type : null);
|
|
434
|
+
Gc.setExtraStackFrame(Q);
|
|
435
435
|
} else
|
|
436
436
|
Gc.setExtraStackFrame(null);
|
|
437
437
|
}
|
|
438
|
-
function yg(w, O,
|
|
438
|
+
function yg(w, O, Q, ae, Te) {
|
|
439
439
|
{
|
|
440
440
|
var Oe = Function.call.bind(gs);
|
|
441
441
|
for (var ve in w)
|
|
@@ -443,14 +443,14 @@ function W_() {
|
|
|
443
443
|
var xe = void 0;
|
|
444
444
|
try {
|
|
445
445
|
if (typeof w[ve] != "function") {
|
|
446
|
-
var Dt = Error((ae || "React class") + ": " +
|
|
446
|
+
var Dt = Error((ae || "React class") + ": " + Q + " type `" + ve + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof w[ve] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
447
447
|
throw Dt.name = "Invariant Violation", Dt;
|
|
448
448
|
}
|
|
449
|
-
xe = w[ve](O, ve, ae,
|
|
449
|
+
xe = w[ve](O, ve, ae, Q, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
450
450
|
} catch (Ke) {
|
|
451
451
|
xe = Ke;
|
|
452
452
|
}
|
|
453
|
-
xe && !(xe instanceof Error) && (bs(Te), T("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", ae || "React class",
|
|
453
|
+
xe && !(xe instanceof Error) && (bs(Te), T("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", ae || "React class", Q, ve, typeof xe), bs(null)), xe instanceof Error && !(xe.message in Hc) && (Hc[xe.message] = !0, bs(Te), T("Failed %s type: %s", Q, xe.message), bs(null));
|
|
454
454
|
}
|
|
455
455
|
}
|
|
456
456
|
}
|
|
@@ -460,8 +460,8 @@ function W_() {
|
|
|
460
460
|
}
|
|
461
461
|
function vg(w) {
|
|
462
462
|
{
|
|
463
|
-
var O = typeof Symbol == "function" && Symbol.toStringTag,
|
|
464
|
-
return
|
|
463
|
+
var O = typeof Symbol == "function" && Symbol.toStringTag, Q = O && w[Symbol.toStringTag] || w.constructor.name || "Object";
|
|
464
|
+
return Q;
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
467
|
function jg(w) {
|
|
@@ -503,40 +503,40 @@ function W_() {
|
|
|
503
503
|
}
|
|
504
504
|
function Cg(w, O) {
|
|
505
505
|
if (typeof w.ref == "string" && Si.current && O && Si.current.stateNode !== O) {
|
|
506
|
-
var
|
|
507
|
-
Wa[
|
|
506
|
+
var Q = X(Si.current.type);
|
|
507
|
+
Wa[Q] || (T('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', X(Si.current.type), w.ref), Wa[Q] = !0);
|
|
508
508
|
}
|
|
509
509
|
}
|
|
510
510
|
function Ig(w, O) {
|
|
511
511
|
{
|
|
512
|
-
var
|
|
512
|
+
var Q = function() {
|
|
513
513
|
Yc || (Yc = !0, T("%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)", O));
|
|
514
514
|
};
|
|
515
|
-
|
|
516
|
-
get:
|
|
515
|
+
Q.isReactWarning = !0, Object.defineProperty(w, "key", {
|
|
516
|
+
get: Q,
|
|
517
517
|
configurable: !0
|
|
518
518
|
});
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
521
|
function Tg(w, O) {
|
|
522
522
|
{
|
|
523
|
-
var
|
|
523
|
+
var Q = function() {
|
|
524
524
|
Kc || (Kc = !0, T("%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)", O));
|
|
525
525
|
};
|
|
526
|
-
|
|
527
|
-
get:
|
|
526
|
+
Q.isReactWarning = !0, Object.defineProperty(w, "ref", {
|
|
527
|
+
get: Q,
|
|
528
528
|
configurable: !0
|
|
529
529
|
});
|
|
530
530
|
}
|
|
531
531
|
}
|
|
532
|
-
var Dg = function(w, O,
|
|
532
|
+
var Dg = function(w, O, Q, ae, Te, Oe, ve) {
|
|
533
533
|
var xe = {
|
|
534
534
|
// This tag allows us to uniquely identify this as a React Element
|
|
535
535
|
$$typeof: t,
|
|
536
536
|
// Built-in properties that belong on the element
|
|
537
537
|
type: w,
|
|
538
538
|
key: O,
|
|
539
|
-
ref:
|
|
539
|
+
ref: Q,
|
|
540
540
|
props: ve,
|
|
541
541
|
// Record the component responsible for creating this element.
|
|
542
542
|
_owner: Oe
|
|
@@ -558,10 +558,10 @@ function W_() {
|
|
|
558
558
|
value: Te
|
|
559
559
|
}), Object.freeze && (Object.freeze(xe.props), Object.freeze(xe)), xe;
|
|
560
560
|
};
|
|
561
|
-
function zg(w, O,
|
|
561
|
+
function zg(w, O, Q, ae, Te) {
|
|
562
562
|
{
|
|
563
563
|
var Oe, ve = {}, xe = null, Dt = null;
|
|
564
|
-
|
|
564
|
+
Q !== void 0 && (Uc(Q), xe = "" + Q), kg(O) && (Uc(O.key), xe = "" + O.key), Sg(O) && (Dt = O.ref, Cg(O, Te));
|
|
565
565
|
for (Oe in O)
|
|
566
566
|
gs.call(O, Oe) && !wg.hasOwnProperty(Oe) && (ve[Oe] = O[Oe]);
|
|
567
567
|
if (w && w.defaultProps) {
|
|
@@ -579,8 +579,8 @@ function W_() {
|
|
|
579
579
|
var Ha = j.ReactCurrentOwner, Xc = j.ReactDebugCurrentFrame;
|
|
580
580
|
function Gr(w) {
|
|
581
581
|
if (w) {
|
|
582
|
-
var O = w._owner,
|
|
583
|
-
Xc.setExtraStackFrame(
|
|
582
|
+
var O = w._owner, Q = xs(w.type, w._source, O ? O.type : null);
|
|
583
|
+
Xc.setExtraStackFrame(Q);
|
|
584
584
|
} else
|
|
585
585
|
Xc.setExtraStackFrame(null);
|
|
586
586
|
}
|
|
@@ -604,10 +604,10 @@ Check the render method of \`` + w + "`.";
|
|
|
604
604
|
function Mg(w) {
|
|
605
605
|
{
|
|
606
606
|
if (w !== void 0) {
|
|
607
|
-
var O = w.fileName.replace(/^.*[\\\/]/, ""),
|
|
607
|
+
var O = w.fileName.replace(/^.*[\\\/]/, ""), Q = w.lineNumber;
|
|
608
608
|
return `
|
|
609
609
|
|
|
610
|
-
Check your code at ` + O + ":" +
|
|
610
|
+
Check your code at ` + O + ":" + Q + ".";
|
|
611
611
|
}
|
|
612
612
|
return "";
|
|
613
613
|
}
|
|
@@ -617,10 +617,10 @@ Check your code at ` + O + ":" + G + ".";
|
|
|
617
617
|
{
|
|
618
618
|
var O = Jc();
|
|
619
619
|
if (!O) {
|
|
620
|
-
var
|
|
621
|
-
|
|
620
|
+
var Q = typeof w == "string" ? w : w.displayName || w.name;
|
|
621
|
+
Q && (O = `
|
|
622
622
|
|
|
623
|
-
Check the top-level render call using <` +
|
|
623
|
+
Check the top-level render call using <` + Q + ">.");
|
|
624
624
|
}
|
|
625
625
|
return O;
|
|
626
626
|
}
|
|
@@ -630,12 +630,12 @@ Check the top-level render call using <` + G + ">.");
|
|
|
630
630
|
if (!w._store || w._store.validated || w.key != null)
|
|
631
631
|
return;
|
|
632
632
|
w._store.validated = !0;
|
|
633
|
-
var
|
|
634
|
-
if (Zc[
|
|
633
|
+
var Q = Eg(O);
|
|
634
|
+
if (Zc[Q])
|
|
635
635
|
return;
|
|
636
|
-
Zc[
|
|
636
|
+
Zc[Q] = !0;
|
|
637
637
|
var ae = "";
|
|
638
|
-
w && w._owner && w._owner !== Ha.current && (ae = " It was passed a child from " + X(w._owner.type) + "."), Gr(w), T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',
|
|
638
|
+
w && w._owner && w._owner !== Ha.current && (ae = " It was passed a child from " + X(w._owner.type) + "."), Gr(w), T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', Q, ae), Gr(null);
|
|
639
639
|
}
|
|
640
640
|
}
|
|
641
641
|
function td(w, O) {
|
|
@@ -643,8 +643,8 @@ Check the top-level render call using <` + G + ">.");
|
|
|
643
643
|
if (typeof w != "object")
|
|
644
644
|
return;
|
|
645
645
|
if (Ba(w))
|
|
646
|
-
for (var
|
|
647
|
-
var ae = w[
|
|
646
|
+
for (var Q = 0; Q < w.length; Q++) {
|
|
647
|
+
var ae = w[Q];
|
|
648
648
|
Qa(ae) && ed(ae, O);
|
|
649
649
|
}
|
|
650
650
|
else if (Qa(w))
|
|
@@ -662,18 +662,18 @@ Check the top-level render call using <` + G + ">.");
|
|
|
662
662
|
var O = w.type;
|
|
663
663
|
if (O == null || typeof O == "string")
|
|
664
664
|
return;
|
|
665
|
-
var
|
|
665
|
+
var Q;
|
|
666
666
|
if (typeof O == "function")
|
|
667
|
-
|
|
667
|
+
Q = O.propTypes;
|
|
668
668
|
else if (typeof O == "object" && (O.$$typeof === c || // Note: Memo only checks outer props here.
|
|
669
669
|
// Inner props are checked in the reconciler.
|
|
670
670
|
O.$$typeof === h))
|
|
671
|
-
|
|
671
|
+
Q = O.propTypes;
|
|
672
672
|
else
|
|
673
673
|
return;
|
|
674
|
-
if (
|
|
674
|
+
if (Q) {
|
|
675
675
|
var ae = X(O);
|
|
676
|
-
yg(
|
|
676
|
+
yg(Q, w.props, "prop", ae, w);
|
|
677
677
|
} else if (O.PropTypes !== void 0 && !Ga) {
|
|
678
678
|
Ga = !0;
|
|
679
679
|
var Te = X(O);
|
|
@@ -684,8 +684,8 @@ Check the top-level render call using <` + G + ">.");
|
|
|
684
684
|
}
|
|
685
685
|
function Ag(w) {
|
|
686
686
|
{
|
|
687
|
-
for (var O = Object.keys(w.props),
|
|
688
|
-
var ae = O[
|
|
687
|
+
for (var O = Object.keys(w.props), Q = 0; Q < O.length; Q++) {
|
|
688
|
+
var ae = O[Q];
|
|
689
689
|
if (ae !== "children" && ae !== "key") {
|
|
690
690
|
Gr(w), T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", ae), Gr(null);
|
|
691
691
|
break;
|
|
@@ -694,7 +694,7 @@ Check the top-level render call using <` + G + ">.");
|
|
|
694
694
|
w.ref !== null && (Gr(w), T("Invalid attribute `ref` supplied to `React.Fragment`."), Gr(null));
|
|
695
695
|
}
|
|
696
696
|
}
|
|
697
|
-
function nd(w, O,
|
|
697
|
+
function nd(w, O, Q, ae, Te, Oe) {
|
|
698
698
|
{
|
|
699
699
|
var ve = W(w);
|
|
700
700
|
if (!ve) {
|
|
@@ -705,7 +705,7 @@ Check the top-level render call using <` + G + ">.");
|
|
|
705
705
|
var Ke;
|
|
706
706
|
w === null ? Ke = "null" : Ba(w) ? Ke = "array" : w !== void 0 && w.$$typeof === t ? (Ke = "<" + (X(w.type) || "Unknown") + " />", xe = " Did you accidentally export a JSX literal instead of a component?") : Ke = typeof w, T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Ke, xe);
|
|
707
707
|
}
|
|
708
|
-
var Je = zg(w, O,
|
|
708
|
+
var Je = zg(w, O, Q, Te, Oe);
|
|
709
709
|
if (Je == null)
|
|
710
710
|
return Je;
|
|
711
711
|
if (ve) {
|
|
@@ -724,11 +724,11 @@ Check the top-level render call using <` + G + ">.");
|
|
|
724
724
|
return w === i ? Ag(Je) : Lg(Je), Je;
|
|
725
725
|
}
|
|
726
726
|
}
|
|
727
|
-
function Rg(w, O,
|
|
728
|
-
return nd(w, O,
|
|
727
|
+
function Rg(w, O, Q) {
|
|
728
|
+
return nd(w, O, Q, !0);
|
|
729
729
|
}
|
|
730
|
-
function Pg(w, O,
|
|
731
|
-
return nd(w, O,
|
|
730
|
+
function Pg(w, O, Q) {
|
|
731
|
+
return nd(w, O, Q, !1);
|
|
732
732
|
}
|
|
733
733
|
var $g = Pg, Og = Rg;
|
|
734
734
|
Ci.Fragment = i, Ci.jsx = $g, Ci.jsxs = Og;
|
|
@@ -4492,14 +4492,14 @@ const Di = "data-value", Kj = Di, cp = "dynamicColor", dp = Gi.create({
|
|
|
4492
4492
|
onChange: t,
|
|
4493
4493
|
onMount: n
|
|
4494
4494
|
}) => {
|
|
4495
|
-
const i =
|
|
4495
|
+
const i = Kn(null), s = Kn(null), a = (l) => {
|
|
4496
4496
|
if (!l) {
|
|
4497
4497
|
t("");
|
|
4498
4498
|
return;
|
|
4499
4499
|
}
|
|
4500
4500
|
t(l);
|
|
4501
4501
|
};
|
|
4502
|
-
|
|
4502
|
+
G(() => {
|
|
4503
4503
|
var c;
|
|
4504
4504
|
const l = (c = i.current) == null ? void 0 : c.getModel();
|
|
4505
4505
|
l && (l.getValue() || l.setValue(e));
|
|
@@ -5014,7 +5014,7 @@ const li = re(({
|
|
|
5014
5014
|
}, h = () => {
|
|
5015
5015
|
c(i);
|
|
5016
5016
|
};
|
|
5017
|
-
|
|
5017
|
+
G(() => {
|
|
5018
5018
|
c(e);
|
|
5019
5019
|
}, [e]);
|
|
5020
5020
|
const p = je((b, k) => {
|
|
@@ -5099,7 +5099,7 @@ const li = re(({
|
|
|
5099
5099
|
lineHeight: "26px",
|
|
5100
5100
|
borderColor: "#ced4da !important",
|
|
5101
5101
|
color: "rgb(190, 75, 219)"
|
|
5102
|
-
}, onClick: e, children: /* @__PURE__ */ r.jsx(
|
|
5102
|
+
}, onClick: e, children: /* @__PURE__ */ r.jsx(er, { stroke: 2, size: 16 }) }) });
|
|
5103
5103
|
}, nw = ({
|
|
5104
5104
|
editor: e
|
|
5105
5105
|
}) => {
|
|
@@ -5510,8 +5510,8 @@ const vw = re(({
|
|
|
5510
5510
|
}));
|
|
5511
5511
|
var jw = Symbol.for("preact-signals");
|
|
5512
5512
|
function ya() {
|
|
5513
|
-
if (
|
|
5514
|
-
|
|
5513
|
+
if (dr > 1)
|
|
5514
|
+
dr--;
|
|
5515
5515
|
else {
|
|
5516
5516
|
for (var e, t = !1; Vi !== void 0; ) {
|
|
5517
5517
|
var n = Vi;
|
|
@@ -5526,14 +5526,14 @@ function ya() {
|
|
|
5526
5526
|
n = i;
|
|
5527
5527
|
}
|
|
5528
5528
|
}
|
|
5529
|
-
if (Io = 0,
|
|
5529
|
+
if (Io = 0, dr--, t)
|
|
5530
5530
|
throw e;
|
|
5531
5531
|
}
|
|
5532
5532
|
}
|
|
5533
5533
|
function Yn(e) {
|
|
5534
|
-
if (
|
|
5534
|
+
if (dr > 0)
|
|
5535
5535
|
return e();
|
|
5536
|
-
|
|
5536
|
+
dr++;
|
|
5537
5537
|
try {
|
|
5538
5538
|
return e();
|
|
5539
5539
|
} finally {
|
|
@@ -5550,7 +5550,7 @@ function ni(e) {
|
|
|
5550
5550
|
Me = t;
|
|
5551
5551
|
}
|
|
5552
5552
|
}
|
|
5553
|
-
var Vi = void 0,
|
|
5553
|
+
var Vi = void 0, dr = 0, Io = 0, Us = 0;
|
|
5554
5554
|
function Dp(e) {
|
|
5555
5555
|
if (Me !== void 0) {
|
|
5556
5556
|
var t = e.n;
|
|
@@ -5613,7 +5613,7 @@ Object.defineProperty(Tt.prototype, "value", { get: function() {
|
|
|
5613
5613
|
if (e !== this.v) {
|
|
5614
5614
|
if (Io > 100)
|
|
5615
5615
|
throw new Error("Cycle detected");
|
|
5616
|
-
this.v = e, this.i++, Us++,
|
|
5616
|
+
this.v = e, this.i++, Us++, dr++;
|
|
5617
5617
|
try {
|
|
5618
5618
|
for (var t = this.t; t !== void 0; t = t.x)
|
|
5619
5619
|
t.t.N();
|
|
@@ -5703,7 +5703,7 @@ function Ed(e) {
|
|
|
5703
5703
|
function Lp(e) {
|
|
5704
5704
|
var t = e.u;
|
|
5705
5705
|
if (e.u = void 0, typeof t == "function") {
|
|
5706
|
-
|
|
5706
|
+
dr++;
|
|
5707
5707
|
var n = Me;
|
|
5708
5708
|
Me = void 0;
|
|
5709
5709
|
try {
|
|
@@ -5742,7 +5742,7 @@ is.prototype.c = function() {
|
|
|
5742
5742
|
is.prototype.S = function() {
|
|
5743
5743
|
if (1 & this.f)
|
|
5744
5744
|
throw new Error("Cycle detected");
|
|
5745
|
-
this.f |= 1, this.f &= -9, Lp(this), Mp(this),
|
|
5745
|
+
this.f |= 1, this.f &= -9, Lp(this), Mp(this), dr++;
|
|
5746
5746
|
var e = Me;
|
|
5747
5747
|
return Me = this, ww.bind(this, e);
|
|
5748
5748
|
};
|
|
@@ -6830,7 +6830,7 @@ var T0 = class extends cn {
|
|
|
6830
6830
|
}
|
|
6831
6831
|
});
|
|
6832
6832
|
}
|
|
6833
|
-
}, Dm = "data-dnd-", _t = "--dnd-",
|
|
6833
|
+
}, Dm = "data-dnd-", _t = "--dnd-", sr = `${Dm}dragging`, z0 = `[${sr}] {position: fixed !important; pointer-events: none !important; touch-action: none !important; z-index: calc(infinity); will-change: transform;top: var(${_t}top, 0px) !important;left: var(${_t}left, 0px) !important;width: var(${_t}width, auto) !important;height: var(${_t}height, auto) !important;}[${sr}] *{pointer-events: none !important;}[${sr}][style*="${_t}translate"] {translate: var(${_t}translate) !important;}[style*="${_t}transition"] {transition: var(${_t}transition) !important;}*:where([${sr}][popover]){overflow:visible;background:var(${_t}background);border:var(${_t}border);margin:unset;padding:unset;color:inherit;}[${sr}]::backdrop {display: none}`, zm = `${Dm}placeholder`, M0 = [sr, zm, "popover"], E0 = ["view-transition-name"], L0 = class extends cn {
|
|
6834
6834
|
constructor(e) {
|
|
6835
6835
|
super(e);
|
|
6836
6836
|
let t, n, i = { x: 0, y: 0 }, s, a, o = !1;
|
|
@@ -6875,7 +6875,7 @@ var T0 = class extends cn {
|
|
|
6875
6875
|
top: A + ie.y,
|
|
6876
6876
|
left: E + ie.x
|
|
6877
6877
|
};
|
|
6878
|
-
m.setAttribute(
|
|
6878
|
+
m.setAttribute(sr, "true"), P.set(
|
|
6879
6879
|
{
|
|
6880
6880
|
width: j,
|
|
6881
6881
|
height: T,
|
|
@@ -6981,7 +6981,7 @@ var T0 = class extends cn {
|
|
|
6981
6981
|
Ce instanceof HTMLElement && Ce.focus();
|
|
6982
6982
|
};
|
|
6983
6983
|
let Ae = () => {
|
|
6984
|
-
Se == null || Se.disconnect(), ke == null || ke.disconnect(), Ie.disconnect(), P.reset(), o && m.isConnected && (V == null || V.replaceWith(m)), V == null || V.remove(), m.removeAttribute(
|
|
6984
|
+
Se == null || Se.disconnect(), ke == null || ke.disconnect(), Ie.disconnect(), P.reset(), o && m.isConnected && (V == null || V.replaceWith(m)), V == null || V.remove(), m.removeAttribute(sr), Lo(m) && m.removeAttribute("popover"), dt(), $e(), W && (W.placeholder = void 0), p.status = "idle", o = !1;
|
|
6985
6985
|
};
|
|
6986
6986
|
const $e = Pt(function() {
|
|
6987
6987
|
if (u.status.dropped) {
|
|
@@ -7033,11 +7033,11 @@ var T0 = class extends cn {
|
|
|
7033
7033
|
l(), c(), t == null || t.remove();
|
|
7034
7034
|
};
|
|
7035
7035
|
}
|
|
7036
|
-
}, Ii = !0, A0 = !1, Mm, Em, Lm, Am,
|
|
7036
|
+
}, Ii = !0, A0 = !1, Mm, Em, Lm, Am, or, Gl, Ql;
|
|
7037
7037
|
Am = (Lm = [qe], tn.Forward), Em = (Mm = [qe], tn.Reverse);
|
|
7038
7038
|
var Ui = class {
|
|
7039
7039
|
constructor() {
|
|
7040
|
-
rn(this, Gl, vt(
|
|
7040
|
+
rn(this, Gl, vt(or, 8, this, Ii)), vt(or, 11, this), rn(this, Ql, vt(or, 12, this, Ii)), vt(or, 15, this);
|
|
7041
7041
|
}
|
|
7042
7042
|
isLocked(e) {
|
|
7043
7043
|
return e === tn.Idle ? !1 : e == null ? this[tn.Forward] === Ii && this[tn.Reverse] === Ii : this[e] === Ii;
|
|
@@ -7046,12 +7046,12 @@ var Ui = class {
|
|
|
7046
7046
|
e !== tn.Idle && (this[e] = A0);
|
|
7047
7047
|
}
|
|
7048
7048
|
};
|
|
7049
|
-
|
|
7049
|
+
or = ja(null);
|
|
7050
7050
|
Gl = /* @__PURE__ */ new WeakMap();
|
|
7051
7051
|
Ql = /* @__PURE__ */ new WeakMap();
|
|
7052
|
-
yr(
|
|
7053
|
-
yr(
|
|
7054
|
-
wa(
|
|
7052
|
+
yr(or, 4, Am, Lm, Ui, Gl);
|
|
7053
|
+
yr(or, 4, Em, Mm, Ui, Ql);
|
|
7054
|
+
wa(or, Ui);
|
|
7055
7055
|
var R0 = [tn.Forward, tn.Reverse], Hd = class {
|
|
7056
7056
|
constructor() {
|
|
7057
7057
|
this.x = new Ui(), this.y = new Ui();
|
|
@@ -7093,12 +7093,12 @@ var R0 = [tn.Forward, tn.Reverse], Hd = class {
|
|
|
7093
7093
|
function Gd(e, t) {
|
|
7094
7094
|
return Math.sign(e - t);
|
|
7095
7095
|
}
|
|
7096
|
-
var Rm, Ro, Yi, Ul,
|
|
7096
|
+
var Rm, Ro, Yi, Ul, rr, Po, Sa = class extends (Ro = Hw, Rm = [qe], Ro) {
|
|
7097
7097
|
constructor(e) {
|
|
7098
|
-
super(e), rn(this, Ul, vt(Yi, 8, this, !1)), vt(Yi, 11, this), rn(this,
|
|
7099
|
-
if (!An(this,
|
|
7098
|
+
super(e), rn(this, Ul, vt(Yi, 8, this, !1)), vt(Yi, 11, this), rn(this, rr), rn(this, Po, () => {
|
|
7099
|
+
if (!An(this, rr))
|
|
7100
7100
|
return;
|
|
7101
|
-
const { element: a, by: o } = An(this,
|
|
7101
|
+
const { element: a, by: o } = An(this, rr);
|
|
7102
7102
|
a.scrollBy(o.x, o.y);
|
|
7103
7103
|
}), this.scroll = (a) => {
|
|
7104
7104
|
var o;
|
|
@@ -7106,7 +7106,7 @@ var Rm, Ro, Yi, Ul, nr, Po, Sa = class extends (Ro = Hw, Rm = [qe], Ro) {
|
|
|
7106
7106
|
return !1;
|
|
7107
7107
|
const l = this.getScrollableElements();
|
|
7108
7108
|
if (!l)
|
|
7109
|
-
return si(this,
|
|
7109
|
+
return si(this, rr, void 0), !1;
|
|
7110
7110
|
const { position: c } = this.manager.dragOperation, d = c == null ? void 0 : c.current;
|
|
7111
7111
|
if (d) {
|
|
7112
7112
|
const { by: u } = a ?? {}, h = u ? {
|
|
@@ -7129,10 +7129,10 @@ var Rm, Ro, Yi, Ul, nr, Po, Sa = class extends (Ro = Hw, Rm = [qe], Ro) {
|
|
|
7129
7129
|
if (k.x || k.y) {
|
|
7130
7130
|
const { x: j, y: T } = u ?? k, A = j * b.x, E = T * b.y;
|
|
7131
7131
|
if (A || E) {
|
|
7132
|
-
const P = (o = An(this,
|
|
7132
|
+
const P = (o = An(this, rr)) == null ? void 0 : o.by;
|
|
7133
7133
|
if (this.autoScrolling && P && (P.x && !A || P.y && !E))
|
|
7134
7134
|
continue;
|
|
7135
|
-
return si(this,
|
|
7135
|
+
return si(this, rr, {
|
|
7136
7136
|
element: f,
|
|
7137
7137
|
by: {
|
|
7138
7138
|
x: A,
|
|
@@ -7144,7 +7144,7 @@ var Rm, Ro, Yi, Ul, nr, Po, Sa = class extends (Ro = Hw, Rm = [qe], Ro) {
|
|
|
7144
7144
|
}
|
|
7145
7145
|
}
|
|
7146
7146
|
}
|
|
7147
|
-
return si(this,
|
|
7147
|
+
return si(this, rr, void 0), !1;
|
|
7148
7148
|
};
|
|
7149
7149
|
let t = null, n = null;
|
|
7150
7150
|
const i = Ys(() => {
|
|
@@ -7180,7 +7180,7 @@ var Rm, Ro, Yi, Ul, nr, Po, Sa = class extends (Ro = Hw, Rm = [qe], Ro) {
|
|
|
7180
7180
|
};
|
|
7181
7181
|
Yi = ja(Ro);
|
|
7182
7182
|
Ul = /* @__PURE__ */ new WeakMap();
|
|
7183
|
-
|
|
7183
|
+
rr = /* @__PURE__ */ new WeakMap();
|
|
7184
7184
|
Po = /* @__PURE__ */ new WeakMap();
|
|
7185
7185
|
yr(Yi, 4, "autoScrolling", Rm, Sa, Ul);
|
|
7186
7186
|
wa(Yi, Sa);
|
|
@@ -7547,7 +7547,7 @@ yr(fn, 4, "handle", Fm, us, Yl);
|
|
|
7547
7547
|
yr(fn, 4, "element", Om, us, Kl);
|
|
7548
7548
|
yr(fn, 4, "feedback", $m, us, Xl);
|
|
7549
7549
|
wa(fn, us);
|
|
7550
|
-
var Vm, Nm, Fo,
|
|
7550
|
+
var Vm, Nm, Fo, lr, Jl, Zl, ka = class extends (Fo = gr, Nm = [qe], Vm = [qe], Fo) {
|
|
7551
7551
|
constructor(e, t) {
|
|
7552
7552
|
var n = e, { element: i, effects: s = () => [] } = n, a = Cm(n, ["element", "effects"]), o;
|
|
7553
7553
|
const { collisionDetector: l = cm } = a;
|
|
@@ -7604,7 +7604,7 @@ var Vm, Nm, Fo, or, Jl, Zl, ka = class extends (Fo = gr, Nm = [qe], Vm = [qe], F
|
|
|
7604
7604
|
]
|
|
7605
7605
|
}),
|
|
7606
7606
|
t
|
|
7607
|
-
), rn(this, Jl, vt(
|
|
7607
|
+
), rn(this, Jl, vt(lr, 8, this)), vt(lr, 11, this), rn(this, Zl, vt(lr, 12, this)), vt(lr, 15, this), this.internal = {
|
|
7608
7608
|
element: _a(i)
|
|
7609
7609
|
}, this.refreshShape = this.refreshShape.bind(this), (o = this.manager) != null && o.dragOperation.status.initialized && (this.visible = !0);
|
|
7610
7610
|
}
|
|
@@ -7625,12 +7625,12 @@ var Vm, Nm, Fo, or, Jl, Zl, ka = class extends (Fo = gr, Nm = [qe], Vm = [qe], F
|
|
|
7625
7625
|
return i && (n != null && n.equals(i)) ? n : (this.shape = i, i);
|
|
7626
7626
|
}
|
|
7627
7627
|
};
|
|
7628
|
-
|
|
7628
|
+
lr = ja(Fo);
|
|
7629
7629
|
Jl = /* @__PURE__ */ new WeakMap();
|
|
7630
7630
|
Zl = /* @__PURE__ */ new WeakMap();
|
|
7631
|
-
yr(
|
|
7632
|
-
yr(
|
|
7633
|
-
wa(
|
|
7631
|
+
yr(lr, 4, "visible", Nm, ka, Jl);
|
|
7632
|
+
yr(lr, 4, "placeholder", Vm, ka, Zl);
|
|
7633
|
+
wa(lr, ka);
|
|
7634
7634
|
var B0 = Object.create, qm = Object.defineProperty, W0 = Object.defineProperties, H0 = Object.getOwnPropertyDescriptor, G0 = Object.getOwnPropertyDescriptors, ra = Object.getOwnPropertySymbols, Bm = Object.prototype.hasOwnProperty, Wm = Object.prototype.propertyIsEnumerable, Q0 = (e, t) => (t = Symbol[e]) ? t : Symbol.for("Symbol." + e), hs = (e) => {
|
|
7635
7635
|
throw TypeError(e);
|
|
7636
7636
|
}, Vo = (e, t, n) => t in e ? qm(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, U0 = (e, t) => {
|
|
@@ -7851,11 +7851,11 @@ var aS = [
|
|
|
7851
7851
|
duration: 250,
|
|
7852
7852
|
easing: "cubic-bezier(0.25, 1, 0.5, 1)",
|
|
7853
7853
|
idle: !1
|
|
7854
|
-
}, Ym, Km,
|
|
7854
|
+
}, Ym, Km, cr, ec, tc;
|
|
7855
7855
|
Km = [qe], Ym = [qe];
|
|
7856
7856
|
var Ca = class {
|
|
7857
7857
|
constructor(e, t) {
|
|
7858
|
-
Xd(this, ec, Ss(
|
|
7858
|
+
Xd(this, ec, Ss(cr, 8, this)), Ss(cr, 11, this), Xd(this, tc, Ss(cr, 12, this)), Ss(cr, 15, this);
|
|
7859
7859
|
var n = e, {
|
|
7860
7860
|
effects: i = () => [],
|
|
7861
7861
|
group: s,
|
|
@@ -8042,12 +8042,12 @@ var Ca = class {
|
|
|
8042
8042
|
this.draggable.destroy(), this.droppable.destroy();
|
|
8043
8043
|
}
|
|
8044
8044
|
};
|
|
8045
|
-
|
|
8045
|
+
cr = X0();
|
|
8046
8046
|
ec = /* @__PURE__ */ new WeakMap();
|
|
8047
8047
|
tc = /* @__PURE__ */ new WeakMap();
|
|
8048
|
-
Gm(
|
|
8049
|
-
Gm(
|
|
8050
|
-
Z0(
|
|
8048
|
+
Gm(cr, 4, "index", Km, Ca, ec);
|
|
8049
|
+
Gm(cr, 4, "group", Ym, Ca, tc);
|
|
8050
|
+
Z0(cr, Ca);
|
|
8051
8051
|
var Xm = class extends us {
|
|
8052
8052
|
constructor(e, t, n) {
|
|
8053
8053
|
super(e, t), this.sortable = n;
|
|
@@ -8067,10 +8067,10 @@ var Xm = class extends us {
|
|
|
8067
8067
|
}
|
|
8068
8068
|
};
|
|
8069
8069
|
function Jm(e) {
|
|
8070
|
-
const t =
|
|
8070
|
+
const t = Kn();
|
|
8071
8071
|
return t.current || (t.current = e()), t.current;
|
|
8072
8072
|
}
|
|
8073
|
-
var oS = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", Zm = oS ? Ng :
|
|
8073
|
+
var oS = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", Zm = oS ? Ng : G;
|
|
8074
8074
|
function lS(e, t = !1) {
|
|
8075
8075
|
const n = Jm(
|
|
8076
8076
|
() => e instanceof Tt ? e : _a(e)
|
|
@@ -8093,8 +8093,8 @@ function uo(e, t = !1) {
|
|
|
8093
8093
|
function cS(e, t) {
|
|
8094
8094
|
e();
|
|
8095
8095
|
}
|
|
8096
|
-
function bt(e, t, n =
|
|
8097
|
-
const s =
|
|
8096
|
+
function bt(e, t, n = G, i = Object.is) {
|
|
8097
|
+
const s = Kn(e);
|
|
8098
8098
|
n(() => {
|
|
8099
8099
|
const a = s.current;
|
|
8100
8100
|
i(e, a) || (s.current = e, t(e, a));
|
|
@@ -8243,7 +8243,7 @@ const tf = {
|
|
|
8243
8243
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
8244
8244
|
/* @__PURE__ */ r.jsx(R, { sx: {
|
|
8245
8245
|
width: "50%"
|
|
8246
|
-
}, children: /* @__PURE__ */ r.jsx(M, { color: "grape", variant: "filled", leftIcon: /* @__PURE__ */ r.jsx(
|
|
8246
|
+
}, children: /* @__PURE__ */ r.jsx(M, { color: "grape", variant: "filled", leftIcon: /* @__PURE__ */ r.jsx(er, { size: 16 }), mt: 24, onClick: s, sx: {
|
|
8247
8247
|
flexGrow: 0
|
|
8248
8248
|
}, children: n("chart.number_or_dynamic_value.dynamic.setup") }) }),
|
|
8249
8249
|
/* @__PURE__ */ r.jsx(He, { size: 800, title: n("chart.number_or_dynamic_value.dynamic.setup_title"), opened: i, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: i && /* @__PURE__ */ r.jsxs(C, { children: [
|
|
@@ -8381,7 +8381,7 @@ function vS() {
|
|
|
8381
8381
|
categories: []
|
|
8382
8382
|
};
|
|
8383
8383
|
}
|
|
8384
|
-
function
|
|
8384
|
+
function Zn() {
|
|
8385
8385
|
return nf();
|
|
8386
8386
|
}
|
|
8387
8387
|
function jS() {
|
|
@@ -8539,7 +8539,7 @@ const wS = jS(), SS = ({
|
|
|
8539
8539
|
minWidth: "40px",
|
|
8540
8540
|
maxWidth: "40px",
|
|
8541
8541
|
flex: 0
|
|
8542
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
8542
|
+
}, children: /* @__PURE__ */ r.jsx(Xn, { onClick: i }) })
|
|
8543
8543
|
] });
|
|
8544
8544
|
}, sf = re(({
|
|
8545
8545
|
value: e,
|
|
@@ -8603,7 +8603,7 @@ const wS = jS(), SS = ({
|
|
|
8603
8603
|
handleSubmit: o,
|
|
8604
8604
|
reset: l
|
|
8605
8605
|
} = s;
|
|
8606
|
-
|
|
8606
|
+
G(() => {
|
|
8607
8607
|
l(e);
|
|
8608
8608
|
}, [e]);
|
|
8609
8609
|
const c = je(() => l(e), [l, e]);
|
|
@@ -8762,7 +8762,7 @@ const wS = jS(), SS = ({
|
|
|
8762
8762
|
content: e,
|
|
8763
8763
|
editable: !1
|
|
8764
8764
|
});
|
|
8765
|
-
|
|
8765
|
+
G(() => {
|
|
8766
8766
|
c == null || c.commands.setContent(e);
|
|
8767
8767
|
}, [e, c]);
|
|
8768
8768
|
const d = D(() => new DOMParser().parseFromString(e, "text/html"), [e]), u = D(() => Yj(d, i, s), [d, i, s]), h = D(() => dw(d, s), [d, s]), p = D(() => S.defaultsDeep({}, {
|
|
@@ -8918,13 +8918,13 @@ const hr = re(({
|
|
|
8918
8918
|
k.view.dom.setAttribute("spellcheck", "false"), k.view.dom.setAttribute("autocomplete", "off"), k.view.dom.setAttribute("autocapitalize", "off");
|
|
8919
8919
|
}
|
|
8920
8920
|
});
|
|
8921
|
-
|
|
8921
|
+
G(() => {
|
|
8922
8922
|
h((k) => e === k ? k : (p == null || p.commands.setContent(e), e));
|
|
8923
8923
|
}, [e]);
|
|
8924
8924
|
const f = () => {
|
|
8925
8925
|
t(u), a == null || a();
|
|
8926
8926
|
}, m = e !== u;
|
|
8927
|
-
|
|
8927
|
+
G(() => {
|
|
8928
8928
|
s && f();
|
|
8929
8929
|
}, [s, m]);
|
|
8930
8930
|
const b = D(() => S.defaultsDeep({}, {
|
|
@@ -9014,7 +9014,7 @@ const df = ({
|
|
|
9014
9014
|
const {
|
|
9015
9015
|
t: i
|
|
9016
9016
|
} = y(), [s, a] = K(e);
|
|
9017
|
-
|
|
9017
|
+
G(() => {
|
|
9018
9018
|
n && a(e);
|
|
9019
9019
|
}, [e, n]);
|
|
9020
9020
|
const o = je((l) => {
|
|
@@ -9659,7 +9659,7 @@ class oc {
|
|
|
9659
9659
|
}), this.instanceRegistry.clear(), this.factoryRegistry.clear();
|
|
9660
9660
|
}
|
|
9661
9661
|
}
|
|
9662
|
-
const bf = "13.
|
|
9662
|
+
const bf = "13.41.0", h1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9663
9663
|
__proto__: null,
|
|
9664
9664
|
version: bf
|
|
9665
9665
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -9782,7 +9782,7 @@ const ne = (e, t) => {
|
|
|
9782
9782
|
const [n, {
|
|
9783
9783
|
setFalse: i
|
|
9784
9784
|
}] = pt(!0), [s, a] = K();
|
|
9785
|
-
|
|
9785
|
+
G(() => (e.getItem(t).then((l) => {
|
|
9786
9786
|
a(l), i();
|
|
9787
9787
|
}), e.watchItem(t, (l) => {
|
|
9788
9788
|
a(l);
|
|
@@ -9945,7 +9945,7 @@ function g1({
|
|
|
9945
9945
|
} = Ne({
|
|
9946
9946
|
defaultValues: i
|
|
9947
9947
|
});
|
|
9948
|
-
return
|
|
9948
|
+
return G(() => {
|
|
9949
9949
|
o(i);
|
|
9950
9950
|
}, [t]), t ? /* @__PURE__ */ r.jsx(C, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: a(n), children: [
|
|
9951
9951
|
/* @__PURE__ */ r.jsx(I, { children: "X Axis" }),
|
|
@@ -10123,7 +10123,7 @@ const Sn = re(({
|
|
|
10123
10123
|
setTrue: o,
|
|
10124
10124
|
setFalse: l
|
|
10125
10125
|
}] = pt(), [c, d] = K(e);
|
|
10126
|
-
|
|
10126
|
+
G(() => {
|
|
10127
10127
|
d(e);
|
|
10128
10128
|
}, [e]);
|
|
10129
10129
|
const u = (k) => {
|
|
@@ -10152,7 +10152,7 @@ const Sn = re(({
|
|
|
10152
10152
|
f(St().func_content);
|
|
10153
10153
|
}, b = n ?? s("chart.axis.customize_label");
|
|
10154
10154
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
10155
|
-
/* @__PURE__ */ r.jsx(M, { variant: "filled", color: "grape", leftIcon: /* @__PURE__ */ r.jsx(
|
|
10155
|
+
/* @__PURE__ */ r.jsx(M, { variant: "filled", color: "grape", leftIcon: /* @__PURE__ */ r.jsx(er, { size: 16 }), mt: 24, onClick: o, sx: {
|
|
10156
10156
|
flexGrow: 0
|
|
10157
10157
|
}, children: b }),
|
|
10158
10158
|
/* @__PURE__ */ r.jsx(He, { size: 800, title: b, opened: a, onClose: l, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: a && /* @__PURE__ */ r.jsxs(C, { children: [
|
|
@@ -10387,7 +10387,7 @@ function Wr(e, t) {
|
|
|
10387
10387
|
}
|
|
10388
10388
|
const Xt = (e, t) => {
|
|
10389
10389
|
const [n, i] = K([]);
|
|
10390
|
-
return
|
|
10390
|
+
return G(() => e.watchTriggerSnapshotList((s) => i(s.filter((a) => a.schemaRef === t))), []), n;
|
|
10391
10391
|
};
|
|
10392
10392
|
class ei {
|
|
10393
10393
|
constructor(t, n) {
|
|
@@ -10457,7 +10457,7 @@ function M1(e, t) {
|
|
|
10457
10457
|
} = ne(e.operation.operationData, "config"), [s, a] = K(Ee({}, n, t)), o = async () => {
|
|
10458
10458
|
await i(s);
|
|
10459
10459
|
};
|
|
10460
|
-
return
|
|
10460
|
+
return G(() => {
|
|
10461
10461
|
a(Ee({}, n, t));
|
|
10462
10462
|
}, [n]), {
|
|
10463
10463
|
config: s,
|
|
@@ -10596,7 +10596,7 @@ const q1 = {
|
|
|
10596
10596
|
onChange: t
|
|
10597
10597
|
}) => {
|
|
10598
10598
|
const [n, i] = K(e);
|
|
10599
|
-
|
|
10599
|
+
G(() => {
|
|
10600
10600
|
i(e);
|
|
10601
10601
|
}, [e]);
|
|
10602
10602
|
const s = () => {
|
|
@@ -11177,8 +11177,8 @@ const fk = z(({
|
|
|
11177
11177
|
data: t
|
|
11178
11178
|
} = Nt(), n = e.viz, {
|
|
11179
11179
|
vizManager: i
|
|
11180
|
-
} = pr(
|
|
11181
|
-
return
|
|
11180
|
+
} = pr(nr), s = e.json, a = yn(() => i.getOrCreateInstance(s), [i, s]), o = yn(() => new uc(a, i.resolveComponent(n.type), za), [a, n.type]);
|
|
11181
|
+
return G(() => a.instanceData.watchItem(
|
|
11182
11182
|
null,
|
|
11183
11183
|
// avoid too many updates
|
|
11184
11184
|
ob((l) => {
|
|
@@ -11974,7 +11974,7 @@ function Yk(e) {
|
|
|
11974
11974
|
backgroundColor: i
|
|
11975
11975
|
} }) }),
|
|
11976
11976
|
/* @__PURE__ */ r.jsxs(nn.Dropdown, { children: [
|
|
11977
|
-
/* @__PURE__ */ r.jsx(we, { withinPortal: !0, zIndex: 340, label: t("common.actions.close"), children: /* @__PURE__ */ r.jsx(
|
|
11977
|
+
/* @__PURE__ */ r.jsx(we, { withinPortal: !0, zIndex: 340, label: t("common.actions.close"), children: /* @__PURE__ */ r.jsx(Xn, { "data-testid": "palette-item-cancel", size: "sm", color: "gray", onClick: k, style: {
|
|
11978
11978
|
position: "absolute",
|
|
11979
11979
|
top: "0.5em",
|
|
11980
11980
|
right: "0.8em"
|
|
@@ -12005,7 +12005,7 @@ const Kk = z(({
|
|
|
12005
12005
|
return /* @__PURE__ */ r.jsx("div", { className: t.palette, children: n.map(([i, s], a) => /* @__PURE__ */ r.jsx(Yk, { index: a, color: i, value: e.getStepFromValue(s), onChange: (o) => e.changeStep(o, s) }, i)) });
|
|
12006
12006
|
}), Xk = z(function(t) {
|
|
12007
12007
|
const n = yn(() => new Uk(), []);
|
|
12008
|
-
return
|
|
12008
|
+
return G(() => {
|
|
12009
12009
|
n.fromProps(t);
|
|
12010
12010
|
}), n.interpolation == null ? null : /* @__PURE__ */ r.jsx(Kk, { model: n });
|
|
12011
12011
|
}), Jk = (e) => {
|
|
@@ -12192,7 +12192,7 @@ const Kk = z(({
|
|
|
12192
12192
|
})), b = ((E = S.last(m)) == null ? void 0 : E.id) ?? null, [k, j] = K(b), T = (P) => {
|
|
12193
12193
|
P !== "add" && j(P);
|
|
12194
12194
|
};
|
|
12195
|
-
|
|
12195
|
+
G(() => {
|
|
12196
12196
|
j((P) => b === P ? P : b);
|
|
12197
12197
|
}, [b]);
|
|
12198
12198
|
const A = () => {
|
|
@@ -12405,7 +12405,7 @@ function dC({
|
|
|
12405
12405
|
}) {
|
|
12406
12406
|
return /* @__PURE__ */ r.jsx(C, { children: /* @__PURE__ */ r.jsx(cC, { control: e, watch: t }) });
|
|
12407
12407
|
}
|
|
12408
|
-
const
|
|
12408
|
+
const tr = re(({
|
|
12409
12409
|
label: e,
|
|
12410
12410
|
value: t,
|
|
12411
12411
|
onChange: n,
|
|
@@ -12445,7 +12445,7 @@ const er = re(({
|
|
|
12445
12445
|
/* @__PURE__ */ r.jsxs(_, { grow: !0, noWrap: !0, children: [
|
|
12446
12446
|
/* @__PURE__ */ r.jsx(g, { name: "x_axis.axisLabel.rotate", control: e, render: ({
|
|
12447
12447
|
field: i
|
|
12448
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
12448
|
+
}) => /* @__PURE__ */ r.jsx(tr, { sx: {
|
|
12449
12449
|
width: "48%"
|
|
12450
12450
|
}, ...i }) }),
|
|
12451
12451
|
/* @__PURE__ */ r.jsx(g, { name: "x_axis.axisLabel.formatter", control: e, render: ({
|
|
@@ -12608,7 +12608,7 @@ function xC({
|
|
|
12608
12608
|
} = Ne({
|
|
12609
12609
|
defaultValues: a
|
|
12610
12610
|
});
|
|
12611
|
-
return
|
|
12611
|
+
return G(() => {
|
|
12612
12612
|
u(a);
|
|
12613
12613
|
}, [a]), c(["x_axis", "y_axis", "reference_lines", "color", "dataZoom"]), /* @__PURE__ */ r.jsx(C, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: l(i), children: [
|
|
12614
12614
|
/* @__PURE__ */ r.jsx(ct, { canSubmit: d.isDirty }),
|
|
@@ -13015,7 +13015,7 @@ function RC({
|
|
|
13015
13015
|
value: t,
|
|
13016
13016
|
set: n
|
|
13017
13017
|
} = ne(e.instanceData, "config"), i = D(() => kt({}, t, mc), [t]), s = i;
|
|
13018
|
-
|
|
13018
|
+
G(() => {
|
|
13019
13019
|
!zt(i, s) && (console.log("config malformed, resetting to defaults", i, s), n(s));
|
|
13020
13020
|
}, [i, s]);
|
|
13021
13021
|
const {
|
|
@@ -13027,7 +13027,7 @@ function RC({
|
|
|
13027
13027
|
} = Ne({
|
|
13028
13028
|
defaultValues: s
|
|
13029
13029
|
});
|
|
13030
|
-
return
|
|
13030
|
+
return G(() => {
|
|
13031
13031
|
d(s);
|
|
13032
13032
|
}, [s]), l(["content", "variant", "color", "size", "compact", "horizontal_align", "vertical_align"]), /* @__PURE__ */ r.jsxs("form", { onSubmit: o(n), children: [
|
|
13033
13033
|
/* @__PURE__ */ r.jsx(ct, { canSubmit: c.isDirty }),
|
|
@@ -13166,7 +13166,7 @@ const VC = {
|
|
|
13166
13166
|
onChange: t,
|
|
13167
13167
|
label: n,
|
|
13168
13168
|
placeholder: i
|
|
13169
|
-
}) => /* @__PURE__ */ r.jsx(Fr, { label: n, placeholder: i, value: e, onChange: t, size: "xs", withinPortal: !0, dropdownZIndex: 340, rightSection: e ? /* @__PURE__ */ r.jsx(
|
|
13169
|
+
}) => /* @__PURE__ */ r.jsx(Fr, { label: n, placeholder: i, value: e, onChange: t, size: "xs", withinPortal: !0, dropdownZIndex: 340, rightSection: e ? /* @__PURE__ */ r.jsx(Xn, { onClick: () => {
|
|
13170
13170
|
t("");
|
|
13171
13171
|
} }) : null })), BC = re(({
|
|
13172
13172
|
value: e,
|
|
@@ -13789,7 +13789,7 @@ const zf = {
|
|
|
13789
13789
|
variables: o,
|
|
13790
13790
|
data: l
|
|
13791
13791
|
} = t, c = D(() => Ta(e, o, s.payloadForViz, l), [e, o, l]), d = ((h = i.current) == null ? void 0 : h.textContent) === "";
|
|
13792
|
-
|
|
13792
|
+
G(() => {
|
|
13793
13793
|
if (!n || !i.current)
|
|
13794
13794
|
return;
|
|
13795
13795
|
const p = d ? 0 : i.current.offsetHeight;
|
|
@@ -13866,13 +13866,13 @@ function yI(e) {
|
|
|
13866
13866
|
function La(e, t) {
|
|
13867
13867
|
switch (e.config.method) {
|
|
13868
13868
|
case "linear":
|
|
13869
|
-
return [...
|
|
13869
|
+
return [...ar.regressionLinear()(t)];
|
|
13870
13870
|
case "exponential":
|
|
13871
|
-
return [...
|
|
13871
|
+
return [...ar.regressionExp()(t)];
|
|
13872
13872
|
case "logistic":
|
|
13873
|
-
return [...
|
|
13873
|
+
return [...ar.regressionLog()(t)];
|
|
13874
13874
|
case "polynomial":
|
|
13875
|
-
return [...
|
|
13875
|
+
return [...ar.regressionPoly().order(e.config.order)(t)];
|
|
13876
13876
|
default:
|
|
13877
13877
|
return [];
|
|
13878
13878
|
}
|
|
@@ -14388,7 +14388,7 @@ function qI({
|
|
|
14388
14388
|
}), [c]), p = (f) => {
|
|
14389
14389
|
u.current = f, ou(f);
|
|
14390
14390
|
};
|
|
14391
|
-
return
|
|
14391
|
+
return G(() => {
|
|
14392
14392
|
u.current && ou(u.current);
|
|
14393
14393
|
}, [d]), !n || !i ? null : /* @__PURE__ */ r.jsx(It, { echarts: gt, option: d, style: {
|
|
14394
14394
|
width: n,
|
|
@@ -14848,7 +14848,7 @@ const KI = ({
|
|
|
14848
14848
|
width: "50%"
|
|
14849
14849
|
}, children: /* @__PURE__ */ r.jsx(M, { color: "grape", variant: "filled", mt: 24, onClick: s, sx: {
|
|
14850
14850
|
flexGrow: 0
|
|
14851
|
-
}, leftIcon: /* @__PURE__ */ r.jsx(
|
|
14851
|
+
}, leftIcon: /* @__PURE__ */ r.jsx(er, { size: 16 }), children: n("chart.symbol_size.setup.label") }) }),
|
|
14852
14852
|
/* @__PURE__ */ r.jsx(He, { size: 800, title: n("chart.symbol_size.setup.title"), opened: i, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: i && /* @__PURE__ */ r.jsxs(C, { children: [
|
|
14853
14853
|
/* @__PURE__ */ r.jsx($, { mt: 10, mb: -10, label: n("chart.symbol_size.setup.description"), labelPosition: "center", variant: "dashed" }),
|
|
14854
14854
|
/* @__PURE__ */ r.jsx(KI, { value: o.func_content, onChange: u }),
|
|
@@ -14915,7 +14915,7 @@ function eT({
|
|
|
14915
14915
|
t: o,
|
|
14916
14916
|
i18n: l
|
|
14917
14917
|
} = y();
|
|
14918
|
-
|
|
14918
|
+
G(() => {
|
|
14919
14919
|
typeof t == "string" && n({
|
|
14920
14920
|
type: t,
|
|
14921
14921
|
config: {},
|
|
@@ -15036,7 +15036,7 @@ function eT({
|
|
|
15036
15036
|
alignSelf: "center",
|
|
15037
15037
|
marginTop: "22px"
|
|
15038
15038
|
},
|
|
15039
|
-
leftIcon: /* @__PURE__ */ r.jsx(
|
|
15039
|
+
leftIcon: /* @__PURE__ */ r.jsx(er, { size: 16 }),
|
|
15040
15040
|
color: "grape"
|
|
15041
15041
|
} })
|
|
15042
15042
|
] }),
|
|
@@ -15510,7 +15510,7 @@ function uT({
|
|
|
15510
15510
|
/* @__PURE__ */ r.jsxs(_, { grow: !0, noWrap: !0, children: [
|
|
15511
15511
|
/* @__PURE__ */ r.jsx(g, { name: "x_axis.axisLabel.rotate", control: e, render: ({
|
|
15512
15512
|
field: a
|
|
15513
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
15513
|
+
}) => /* @__PURE__ */ r.jsx(tr, { sx: {
|
|
15514
15514
|
width: "48%"
|
|
15515
15515
|
}, ...a }) }),
|
|
15516
15516
|
/* @__PURE__ */ r.jsx(g, { name: "x_axis.axisLabel.formatter", control: e, render: ({
|
|
@@ -15658,7 +15658,7 @@ function mT({
|
|
|
15658
15658
|
} = Ne({
|
|
15659
15659
|
defaultValues: a
|
|
15660
15660
|
});
|
|
15661
|
-
return
|
|
15661
|
+
return G(() => {
|
|
15662
15662
|
d(a);
|
|
15663
15663
|
}, [a]), c(["dataZoom"]), /* @__PURE__ */ r.jsx(C, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: l(t), children: [
|
|
15664
15664
|
/* @__PURE__ */ r.jsx(ct, { canSubmit: u.isDirty }),
|
|
@@ -16056,7 +16056,7 @@ const TT = ({
|
|
|
16056
16056
|
...u,
|
|
16057
16057
|
...a[h]
|
|
16058
16058
|
})), l = S.get(o, "0.id"), [c, d] = K(l ?? null);
|
|
16059
|
-
return
|
|
16059
|
+
return G(() => {
|
|
16060
16060
|
l && d((u) => u !== null ? u : l);
|
|
16061
16061
|
}, [l]), /* @__PURE__ */ r.jsxs(v, { value: c, onTabChange: (u) => d(u), styles: {
|
|
16062
16062
|
panel: {
|
|
@@ -16086,7 +16086,7 @@ function zT({
|
|
|
16086
16086
|
} = Ne({
|
|
16087
16087
|
defaultValues: i
|
|
16088
16088
|
});
|
|
16089
|
-
return
|
|
16089
|
+
return G(() => {
|
|
16090
16090
|
c(i);
|
|
16091
16091
|
}, [i]), /* @__PURE__ */ r.jsx(C, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: a(n), children: [
|
|
16092
16092
|
/* @__PURE__ */ r.jsx(ct, { canSubmit: l.isDirty }),
|
|
@@ -16505,7 +16505,7 @@ const Cs = ({
|
|
|
16505
16505
|
const {
|
|
16506
16506
|
t: n
|
|
16507
16507
|
} = y();
|
|
16508
|
-
return /* @__PURE__ */ r.jsx(Fr, { label: e, placeholder: n("chart.visual_map.skip_range.follow_visual_map"), size: "xs", withinPortal: !0, dropdownZIndex: 340, rightSection: t.value ? /* @__PURE__ */ r.jsx(
|
|
16508
|
+
return /* @__PURE__ */ r.jsx(Fr, { label: e, placeholder: n("chart.visual_map.skip_range.follow_visual_map"), size: "xs", withinPortal: !0, dropdownZIndex: 340, rightSection: t.value ? /* @__PURE__ */ r.jsx(Xn, { onClick: () => {
|
|
16509
16509
|
t.onChange("");
|
|
16510
16510
|
} }) : null, ...t });
|
|
16511
16511
|
}, KT = ({
|
|
@@ -16671,10 +16671,10 @@ const Cs = ({
|
|
|
16671
16671
|
}) => /* @__PURE__ */ r.jsx(L, { size: "xs", placeholder: "", ...a, onChange: (o) => a.onChange(o.currentTarget.value) }) }) }),
|
|
16672
16672
|
/* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(g, { name: `visualMap.pieces.${t}.color`, control: i, render: ({
|
|
16673
16673
|
field: a
|
|
16674
|
-
}) => /* @__PURE__ */ r.jsx(Fr, { label: s(""), placeholder: s("chart.color.label"), size: "xs", withinPortal: !0, dropdownZIndex: 340, rightSection: a.value ? /* @__PURE__ */ r.jsx(
|
|
16674
|
+
}) => /* @__PURE__ */ r.jsx(Fr, { label: s(""), placeholder: s("chart.color.label"), size: "xs", withinPortal: !0, dropdownZIndex: 340, rightSection: a.value ? /* @__PURE__ */ r.jsx(Xn, { onClick: () => {
|
|
16675
16675
|
a.onChange("");
|
|
16676
16676
|
} }) : null, ...a }) }) }),
|
|
16677
|
-
/* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(
|
|
16677
|
+
/* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(Xn, { onClick: () => n(t) }) })
|
|
16678
16678
|
] });
|
|
16679
16679
|
}, tD = ({
|
|
16680
16680
|
form: e
|
|
@@ -16937,7 +16937,7 @@ const wc = {
|
|
|
16937
16937
|
tooltip: {
|
|
16938
16938
|
metrics: []
|
|
16939
16939
|
},
|
|
16940
|
-
visualMap:
|
|
16940
|
+
visualMap: Zn(),
|
|
16941
16941
|
pagination: Lf({
|
|
16942
16942
|
page_size: 20
|
|
16943
16943
|
})
|
|
@@ -17133,7 +17133,7 @@ function xD({
|
|
|
17133
17133
|
/* @__PURE__ */ r.jsxs(_, { grow: !0, noWrap: !0, children: [
|
|
17134
17134
|
/* @__PURE__ */ r.jsx(g, { name: "x_axis.axisLabel.rotate", control: e, render: ({
|
|
17135
17135
|
field: i
|
|
17136
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
17136
|
+
}) => /* @__PURE__ */ r.jsx(tr, { sx: {
|
|
17137
17137
|
width: "48%"
|
|
17138
17138
|
}, ...i }) }),
|
|
17139
17139
|
/* @__PURE__ */ r.jsx(g, { name: "x_axis.axisLabel.formatter", control: e, render: ({
|
|
@@ -17176,7 +17176,7 @@ function gD({
|
|
|
17176
17176
|
/* @__PURE__ */ r.jsxs(_, { grow: !0, noWrap: !0, children: [
|
|
17177
17177
|
/* @__PURE__ */ r.jsx(g, { name: "y_axis.axisLabel.rotate", control: e, render: ({
|
|
17178
17178
|
field: i
|
|
17179
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
17179
|
+
}) => /* @__PURE__ */ r.jsx(tr, { sx: {
|
|
17180
17180
|
width: "48%"
|
|
17181
17181
|
}, ...i }) }),
|
|
17182
17182
|
/* @__PURE__ */ r.jsx(g, { name: "y_axis.axisLabel.formatter", control: e, render: ({
|
|
@@ -17194,7 +17194,7 @@ function bD({
|
|
|
17194
17194
|
value: n,
|
|
17195
17195
|
set: i
|
|
17196
17196
|
} = ne(e.instanceData, "config"), s = D(() => n ? Ee({}, n) : wc, [n]), a = D(() => S.cloneDeep(s), [s]);
|
|
17197
|
-
|
|
17197
|
+
G(() => {
|
|
17198
17198
|
!zt(s, a) && (console.log("config malformed, resetting to defaults", s, a), i(a));
|
|
17199
17199
|
}, [s, a]);
|
|
17200
17200
|
const o = Ne({
|
|
@@ -17206,7 +17206,7 @@ function bD({
|
|
|
17206
17206
|
formState: u,
|
|
17207
17207
|
reset: h
|
|
17208
17208
|
} = o;
|
|
17209
|
-
return
|
|
17209
|
+
return G(() => {
|
|
17210
17210
|
h(a);
|
|
17211
17211
|
}, [a]), /* @__PURE__ */ r.jsx("form", { onSubmit: c(i), style: {
|
|
17212
17212
|
flexGrow: 1
|
|
@@ -17351,7 +17351,7 @@ function SD(e) {
|
|
|
17351
17351
|
}
|
|
17352
17352
|
function kD(e) {
|
|
17353
17353
|
const {
|
|
17354
|
-
visualMap: t =
|
|
17354
|
+
visualMap: t = Zn(),
|
|
17355
17355
|
heat_block: {
|
|
17356
17356
|
min: n,
|
|
17357
17357
|
max: i,
|
|
@@ -17363,7 +17363,7 @@ function kD(e) {
|
|
|
17363
17363
|
...a,
|
|
17364
17364
|
heat_block: s,
|
|
17365
17365
|
visualMap: {
|
|
17366
|
-
...
|
|
17366
|
+
...Zn(),
|
|
17367
17367
|
min: n,
|
|
17368
17368
|
max: i
|
|
17369
17369
|
}
|
|
@@ -17924,7 +17924,7 @@ const YD = (e, t) => `
|
|
|
17924
17924
|
} = y(), [n, i] = K(!1), s = D(() => YD(e("viz.pareto_chart.line_80_20.param_section_note_1"), e("viz.pareto_chart.line_80_20.param_section_note_2")), [t.language]);
|
|
17925
17925
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
17926
17926
|
/* @__PURE__ */ r.jsx(M, { variant: "subtle", compact: !0, onClick: () => i((a) => !a), children: e(n ? "common.actions.close" : "viz.pareto_chart.line_80_20.click_to_see_params") }),
|
|
17927
|
-
/* @__PURE__ */ r.jsx(Ji, { in: n, children: /* @__PURE__ */ r.jsx(
|
|
17927
|
+
/* @__PURE__ */ r.jsx(Ji, { in: n, children: /* @__PURE__ */ r.jsx(Jn, { language: "typescript", noCopy: !0, colorScheme: "dark", children: s }) })
|
|
17928
17928
|
] });
|
|
17929
17929
|
};
|
|
17930
17930
|
function XD({
|
|
@@ -18082,7 +18082,7 @@ function ez({
|
|
|
18082
18082
|
/* @__PURE__ */ r.jsxs(_, { grow: !0, noWrap: !0, children: [
|
|
18083
18083
|
/* @__PURE__ */ r.jsx(g, { name: "x_axis.axisLabel.rotate", control: e, render: ({
|
|
18084
18084
|
field: i
|
|
18085
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
18085
|
+
}) => /* @__PURE__ */ r.jsx(tr, { sx: {
|
|
18086
18086
|
width: "48%"
|
|
18087
18087
|
}, ...i }) }),
|
|
18088
18088
|
/* @__PURE__ */ r.jsx(g, { name: "x_axis.axisLabel.formatter", control: e, render: ({
|
|
@@ -18126,7 +18126,7 @@ function nz({
|
|
|
18126
18126
|
} = Ne({
|
|
18127
18127
|
defaultValues: a
|
|
18128
18128
|
});
|
|
18129
|
-
return
|
|
18129
|
+
return G(() => {
|
|
18130
18130
|
u(a);
|
|
18131
18131
|
}, [a]), c(["x_axis", "data_key", "bar", "line", "dataZoom"]), /* @__PURE__ */ r.jsxs("form", { onSubmit: l(i), children: [
|
|
18132
18132
|
/* @__PURE__ */ r.jsx(ct, { canSubmit: d.isDirty }),
|
|
@@ -18524,7 +18524,7 @@ function jz({
|
|
|
18524
18524
|
} = Ne({
|
|
18525
18525
|
defaultValues: s
|
|
18526
18526
|
});
|
|
18527
|
-
return
|
|
18527
|
+
return G(() => {
|
|
18528
18528
|
d(s);
|
|
18529
18529
|
}, [s]), l(["label_field", "value_field", "color_field"]), /* @__PURE__ */ r.jsx(C, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: o(t), children: [
|
|
18530
18530
|
/* @__PURE__ */ r.jsx(ct, { canSubmit: c.isDirty }),
|
|
@@ -19092,7 +19092,7 @@ function Uz({
|
|
|
19092
19092
|
defaultValues: s,
|
|
19093
19093
|
mode: "all"
|
|
19094
19094
|
});
|
|
19095
|
-
return
|
|
19095
|
+
return G(() => {
|
|
19096
19096
|
c(s);
|
|
19097
19097
|
}, [s]), l(["series_name_key", "background", "label"]), /* @__PURE__ */ r.jsx("form", { onSubmit: o(i), children: /* @__PURE__ */ r.jsxs(C, { spacing: "xs", children: [
|
|
19098
19098
|
/* @__PURE__ */ r.jsx(ct, { canSubmit: d.isDirty && d.isValid }),
|
|
@@ -19556,7 +19556,7 @@ function fM(e, t, n, i) {
|
|
|
19556
19556
|
const {
|
|
19557
19557
|
x_axis: s,
|
|
19558
19558
|
y_axis: a
|
|
19559
|
-
} = i, o =
|
|
19559
|
+
} = i, o = ar.regressionLinear()(n), {
|
|
19560
19560
|
a: l,
|
|
19561
19561
|
b: c,
|
|
19562
19562
|
rSquared: d
|
|
@@ -19584,7 +19584,7 @@ function xM(e, t, n, i) {
|
|
|
19584
19584
|
a: o,
|
|
19585
19585
|
b: l,
|
|
19586
19586
|
rSquared: c
|
|
19587
|
-
} =
|
|
19587
|
+
} = ar.regressionExp()(n);
|
|
19588
19588
|
return {
|
|
19589
19589
|
name: e,
|
|
19590
19590
|
expression: /* @__PURE__ */ r.jsxs(_, { position: "center", noWrap: !0, spacing: 10, children: [
|
|
@@ -19612,7 +19612,7 @@ function gM(e, t, n, i) {
|
|
|
19612
19612
|
a: o,
|
|
19613
19613
|
b: l,
|
|
19614
19614
|
rSquared: c
|
|
19615
|
-
} =
|
|
19615
|
+
} = ar.regressionLog()(n);
|
|
19616
19616
|
return {
|
|
19617
19617
|
name: e,
|
|
19618
19618
|
expression: /* @__PURE__ */ r.jsxs(_, { position: "center", noWrap: !0, spacing: 10, children: [
|
|
@@ -19637,7 +19637,7 @@ function bM(e, t, n, i) {
|
|
|
19637
19637
|
x_axis: s,
|
|
19638
19638
|
y_axis: a,
|
|
19639
19639
|
regression: o
|
|
19640
|
-
} = i, l =
|
|
19640
|
+
} = i, l = ar.regressionPoly().order(o.transform.config.order)(n), {
|
|
19641
19641
|
rSquared: c
|
|
19642
19642
|
} = l;
|
|
19643
19643
|
return console.log(l), {
|
|
@@ -19803,7 +19803,7 @@ function SM({
|
|
|
19803
19803
|
...m,
|
|
19804
19804
|
[p.columnKey]: Number(m[p.columnKey])
|
|
19805
19805
|
});
|
|
19806
|
-
}, [e.data, t == null ? void 0 : t.regression.y_axis_data_key]), a = D(() => mM(kt({}, t, kc), s), [t, s]), o =
|
|
19806
|
+
}, [e.data, t == null ? void 0 : t.regression.y_axis_data_key]), a = D(() => mM(kt({}, t, kc), s), [t, s]), o = Kn(null), l = (c) => {
|
|
19807
19807
|
o.current = c;
|
|
19808
19808
|
};
|
|
19809
19809
|
return !n || !i || !t ? null : /* @__PURE__ */ r.jsxs(Wt, { width: n, height: i, children: [
|
|
@@ -19945,7 +19945,7 @@ function TM({
|
|
|
19945
19945
|
} = Ne({
|
|
19946
19946
|
defaultValues: i
|
|
19947
19947
|
});
|
|
19948
|
-
return
|
|
19948
|
+
return G(() => {
|
|
19949
19949
|
c(i);
|
|
19950
19950
|
}, [i]), o(["x_axis", "y_axis", "regression"]), /* @__PURE__ */ r.jsx(C, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: a(n), children: [
|
|
19951
19951
|
/* @__PURE__ */ r.jsx(ct, { canSubmit: l.isDirty }),
|
|
@@ -20112,10 +20112,10 @@ function $M({
|
|
|
20112
20112
|
} = Ne({
|
|
20113
20113
|
defaultValues: s
|
|
20114
20114
|
});
|
|
20115
|
-
l("content"),
|
|
20115
|
+
l("content"), G(() => {
|
|
20116
20116
|
c(s);
|
|
20117
20117
|
}, [s]);
|
|
20118
|
-
const d =
|
|
20118
|
+
const d = Kn(null), u = () => {
|
|
20119
20119
|
var h;
|
|
20120
20120
|
return (h = d.current) == null ? void 0 : h.click();
|
|
20121
20121
|
};
|
|
@@ -21212,7 +21212,7 @@ const CE = ({
|
|
|
21212
21212
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
21213
21213
|
/* @__PURE__ */ r.jsx(R, { sx: {
|
|
21214
21214
|
width: "50%"
|
|
21215
|
-
}, children: /* @__PURE__ */ r.jsx(M, { color: "grape", variant: "filled", leftIcon: /* @__PURE__ */ r.jsx(
|
|
21215
|
+
}, children: /* @__PURE__ */ r.jsx(M, { color: "grape", variant: "filled", leftIcon: /* @__PURE__ */ r.jsx(er, { size: 16 }), mt: 24, onClick: s, sx: {
|
|
21216
21216
|
flexGrow: 0
|
|
21217
21217
|
}, children: n("viz.scatter_chart.color.dynamic.setup") }) }),
|
|
21218
21218
|
/* @__PURE__ */ r.jsx(He, { size: 800, title: n("viz.scatter_chart.color.dynamic.setup_title"), opened: i, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: i && /* @__PURE__ */ r.jsxs(C, { children: [
|
|
@@ -21454,7 +21454,7 @@ function $E({
|
|
|
21454
21454
|
/* @__PURE__ */ r.jsxs(_, { grow: !0, noWrap: !0, children: [
|
|
21455
21455
|
/* @__PURE__ */ r.jsx(g, { name: "x_axis.axisLabel.rotate", control: e, render: ({
|
|
21456
21456
|
field: i
|
|
21457
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
21457
|
+
}) => /* @__PURE__ */ r.jsx(tr, { sx: {
|
|
21458
21458
|
width: "48%"
|
|
21459
21459
|
}, ...i }) }),
|
|
21460
21460
|
/* @__PURE__ */ r.jsx(g, { name: "x_axis.axisLabel.formatter", control: e, render: ({
|
|
@@ -21559,7 +21559,7 @@ function VE({
|
|
|
21559
21559
|
} = Ne({
|
|
21560
21560
|
defaultValues: a
|
|
21561
21561
|
});
|
|
21562
|
-
return
|
|
21562
|
+
return G(() => {
|
|
21563
21563
|
d(a);
|
|
21564
21564
|
}, [a]), c(["dataZoom"]), /* @__PURE__ */ r.jsx(C, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: l(t), children: [
|
|
21565
21565
|
/* @__PURE__ */ r.jsx(ct, { canSubmit: u.isDirty }),
|
|
@@ -21793,47 +21793,66 @@ const tL = z(({
|
|
|
21793
21793
|
context: e,
|
|
21794
21794
|
instance: t
|
|
21795
21795
|
}) => {
|
|
21796
|
-
const n = Jt({
|
|
21796
|
+
const n = Kn(null), i = Jt({
|
|
21797
21797
|
vizManager: e.vizManager,
|
|
21798
21798
|
instance: t
|
|
21799
|
-
}),
|
|
21800
|
-
value:
|
|
21799
|
+
}), s = Xt(i.triggerManager, Gf.id), a = Ye(), {
|
|
21800
|
+
value: o = Ho
|
|
21801
21801
|
} = ne(e.instanceData, "config"), {
|
|
21802
|
-
panel:
|
|
21802
|
+
panel: l
|
|
21803
21803
|
} = Nt(), {
|
|
21804
|
-
data:
|
|
21805
|
-
variables:
|
|
21804
|
+
data: c,
|
|
21805
|
+
variables: d
|
|
21806
21806
|
} = e, {
|
|
21807
|
-
width:
|
|
21808
|
-
height:
|
|
21809
|
-
} = e.viewport,
|
|
21810
|
-
const
|
|
21811
|
-
return
|
|
21812
|
-
}, [
|
|
21813
|
-
|
|
21814
|
-
|
|
21815
|
-
variables:
|
|
21807
|
+
width: u,
|
|
21808
|
+
height: h
|
|
21809
|
+
} = e.viewport, p = D(() => {
|
|
21810
|
+
const m = Ee({}, o, Ho);
|
|
21811
|
+
return m.content ? Ta(m.content, d, a.payloadForViz, c) : "";
|
|
21812
|
+
}, [c, o, d, a.payloadForViz]), f = je(() => {
|
|
21813
|
+
s.forEach((m) => {
|
|
21814
|
+
i.runInteraction(m.id, {
|
|
21815
|
+
variables: l.variableValueMap
|
|
21816
21816
|
});
|
|
21817
21817
|
});
|
|
21818
|
-
}, [
|
|
21819
|
-
return
|
|
21820
|
-
|
|
21821
|
-
|
|
21822
|
-
|
|
21818
|
+
}, [l.variableValueMap, s, i]);
|
|
21819
|
+
return G(() => {
|
|
21820
|
+
if (!n.current)
|
|
21821
|
+
return;
|
|
21822
|
+
const m = n.current.querySelector(".ProseMirror > p");
|
|
21823
|
+
if (!m)
|
|
21824
|
+
return;
|
|
21825
|
+
const {
|
|
21826
|
+
offsetWidth: b,
|
|
21827
|
+
offsetHeight: k
|
|
21828
|
+
} = m, j = u / b, T = h / k, A = Math.min(j, T);
|
|
21829
|
+
m.style.transform = `scale(${A})`;
|
|
21830
|
+
}, [n.current, u, h, p]), /* @__PURE__ */ r.jsx(an, { className: "viz-stats", sx: {
|
|
21831
|
+
width: u,
|
|
21832
|
+
height: h
|
|
21833
|
+
}, align: ZE[o.vertical_align], direction: "row", children: /* @__PURE__ */ r.jsx(R, { className: "viz-stats--clickable-wrapper", sx: eL(s.length), onClick: f, children: /* @__PURE__ */ r.jsx(_i, { ref: n, value: p, styles: {
|
|
21823
21834
|
root: {
|
|
21824
21835
|
border: "none",
|
|
21825
|
-
maxWidth:
|
|
21826
|
-
maxHeight:
|
|
21836
|
+
maxWidth: u,
|
|
21837
|
+
maxHeight: h,
|
|
21827
21838
|
"&.mantine-RichTextEditor-root": {
|
|
21828
|
-
overflow: "
|
|
21839
|
+
overflow: "hidden !important"
|
|
21829
21840
|
}
|
|
21830
21841
|
},
|
|
21831
21842
|
content: {
|
|
21832
21843
|
"&.mantine-RichTextEditor-content .ProseMirror": {
|
|
21833
|
-
padding: 0
|
|
21844
|
+
padding: 0,
|
|
21845
|
+
height: h
|
|
21846
|
+
},
|
|
21847
|
+
"&.mantine-RichTextEditor-content .ProseMirror > p": {
|
|
21848
|
+
display: "table",
|
|
21849
|
+
margin: "0 auto !important",
|
|
21850
|
+
transformOrigin: "top center",
|
|
21851
|
+
fontSize: "initial",
|
|
21852
|
+
lineHeight: "initial"
|
|
21834
21853
|
}
|
|
21835
21854
|
}
|
|
21836
|
-
}, dashboardState:
|
|
21855
|
+
}, dashboardState: a.dashboardState, variableAggValueMap: l.variableAggValueMap }) }) });
|
|
21837
21856
|
});
|
|
21838
21857
|
function nL({
|
|
21839
21858
|
conf: e,
|
|
@@ -22205,7 +22224,7 @@ function vL({
|
|
|
22205
22224
|
} = Ne({
|
|
22206
22225
|
defaultValues: a
|
|
22207
22226
|
});
|
|
22208
|
-
|
|
22227
|
+
G(() => {
|
|
22209
22228
|
u(a);
|
|
22210
22229
|
}, [a]), c(["label_key", "value_key", "group_key", "levels"]);
|
|
22211
22230
|
const [h, p] = K("Data");
|
|
@@ -22797,7 +22816,7 @@ class YL {
|
|
|
22797
22816
|
const KL = (e) => {
|
|
22798
22817
|
const t = Jt(e), n = Xt(t.triggerManager, Ic.id), {
|
|
22799
22818
|
colorManager: i
|
|
22800
|
-
} = pr(
|
|
22819
|
+
} = pr(nr);
|
|
22801
22820
|
return je((s) => new YL(e.getColIndex, s, n, t, i), [n, t, e.getColIndex]);
|
|
22802
22821
|
};
|
|
22803
22822
|
function xu({
|
|
@@ -22976,7 +22995,7 @@ const rA = re((e, t) => {
|
|
|
22976
22995
|
t: n
|
|
22977
22996
|
} = y(), {
|
|
22978
22997
|
colorManager: i
|
|
22979
|
-
} = pr(
|
|
22998
|
+
} = pr(nr), [s, a] = K(ex(e.value)), [o, l] = K(tA(i, e.value)), c = ld(o), [d, u] = K(nA(i, e.value)), h = ld(d), p = (b) => {
|
|
22980
22999
|
var k, j, T;
|
|
22981
23000
|
a(b || "none"), b === "static" ? (k = e.onChange) == null || k.call(e, c.current) : b === "none" || !b ? (j = e.onChange) == null || j.call(e, "none") : (T = e.onChange) == null || T.call(e, h.current);
|
|
22982
23001
|
}, f = (b) => {
|
|
@@ -23020,10 +23039,10 @@ const rA = re((e, t) => {
|
|
|
23020
23039
|
}, h = () => {
|
|
23021
23040
|
c(Qf);
|
|
23022
23041
|
};
|
|
23023
|
-
return
|
|
23042
|
+
return G(() => {
|
|
23024
23043
|
c(e);
|
|
23025
23044
|
}, [e]), /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
23026
|
-
/* @__PURE__ */ r.jsx(M, { color: "grape", variant: "filled", leftIcon: /* @__PURE__ */ r.jsx(
|
|
23045
|
+
/* @__PURE__ */ r.jsx(M, { color: "grape", variant: "filled", leftIcon: /* @__PURE__ */ r.jsx(er, { size: 16 }), mt: 24, onClick: a, sx: {
|
|
23027
23046
|
flexGrow: 0
|
|
23028
23047
|
}, children: i("viz.table.column.custom_cell_content") }),
|
|
23029
23048
|
/* @__PURE__ */ r.jsx(He, { size: 800, title: i("viz.table.column.custom_cell_content"), opened: s, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(C, { children: [
|
|
@@ -23192,7 +23211,7 @@ function dA({
|
|
|
23192
23211
|
value: n,
|
|
23193
23212
|
set: i
|
|
23194
23213
|
} = ne(e.instanceData, "config"), s = D(() => kt({}, n, Uf), [n]), a = D(() => cA(s), [s]);
|
|
23195
|
-
|
|
23214
|
+
G(() => {
|
|
23196
23215
|
!zt(s, a) && (console.log("config malformed, resetting to defaults", s, a), i(a));
|
|
23197
23216
|
}, [s, a]);
|
|
23198
23217
|
const {
|
|
@@ -23204,7 +23223,7 @@ function dA({
|
|
|
23204
23223
|
} = Ne({
|
|
23205
23224
|
defaultValues: a
|
|
23206
23225
|
});
|
|
23207
|
-
return
|
|
23226
|
+
return G(() => {
|
|
23208
23227
|
u(a);
|
|
23209
23228
|
}, [a]), c(["query_id"]), /* @__PURE__ */ r.jsxs("form", { onSubmit: l(i), children: [
|
|
23210
23229
|
/* @__PURE__ */ r.jsx(ct, { canSubmit: d.isDirty }),
|
|
@@ -23557,10 +23576,10 @@ const jA = N.forwardRef(vA), wA = ({
|
|
|
23557
23576
|
}, h = () => {
|
|
23558
23577
|
c(tx);
|
|
23559
23578
|
};
|
|
23560
|
-
return
|
|
23579
|
+
return G(() => {
|
|
23561
23580
|
c(e);
|
|
23562
23581
|
}, [e]), /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
23563
|
-
/* @__PURE__ */ r.jsx(M, { color: "grape", variant: "filled", leftIcon: /* @__PURE__ */ r.jsx(
|
|
23582
|
+
/* @__PURE__ */ r.jsx(M, { color: "grape", variant: "filled", leftIcon: /* @__PURE__ */ r.jsx(er, { size: 16 }), mt: 24, onClick: a, sx: {
|
|
23564
23583
|
flexGrow: 0
|
|
23565
23584
|
}, children: i("viz.text.content.edit") }),
|
|
23566
23585
|
/* @__PURE__ */ r.jsx(He, { size: 800, title: i("viz.text.content.label"), opened: s, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(C, { children: [
|
|
@@ -23597,7 +23616,7 @@ function kA({
|
|
|
23597
23616
|
font_weight: m
|
|
23598
23617
|
};
|
|
23599
23618
|
}, [s]);
|
|
23600
|
-
|
|
23619
|
+
G(() => {
|
|
23601
23620
|
!zt(s, a) && (console.log("config malformed, resetting to defaults", s, a), i(a));
|
|
23602
23621
|
}, [s, a]);
|
|
23603
23622
|
const {
|
|
@@ -23810,7 +23829,7 @@ function PA({
|
|
|
23810
23829
|
} = Ne({
|
|
23811
23830
|
defaultValues: i
|
|
23812
23831
|
});
|
|
23813
|
-
return
|
|
23832
|
+
return G(() => {
|
|
23814
23833
|
c(i);
|
|
23815
23834
|
}, [i]), o(["expertSystemURL", "goal", "path", "question"]), /* @__PURE__ */ r.jsx("form", { onSubmit: a(n), children: /* @__PURE__ */ r.jsxs(C, { children: [
|
|
23816
23835
|
/* @__PURE__ */ r.jsxs(_, { grow: !0, children: [
|
|
@@ -23937,7 +23956,7 @@ function BA(e) {
|
|
|
23937
23956
|
}
|
|
23938
23957
|
function WA(e) {
|
|
23939
23958
|
const {
|
|
23940
|
-
visualMap: t =
|
|
23959
|
+
visualMap: t = Zn(),
|
|
23941
23960
|
heat_block: {
|
|
23942
23961
|
min: n,
|
|
23943
23962
|
max: i,
|
|
@@ -23949,7 +23968,7 @@ function WA(e) {
|
|
|
23949
23968
|
...a,
|
|
23950
23969
|
heat_block: s,
|
|
23951
23970
|
visualMap: {
|
|
23952
|
-
...
|
|
23971
|
+
...Zn(),
|
|
23953
23972
|
min: n,
|
|
23954
23973
|
max: i
|
|
23955
23974
|
}
|
|
@@ -24040,7 +24059,7 @@ const nx = {
|
|
|
24040
24059
|
tooltip: {
|
|
24041
24060
|
metrics: []
|
|
24042
24061
|
},
|
|
24043
|
-
visualMap:
|
|
24062
|
+
visualMap: Zn()
|
|
24044
24063
|
};
|
|
24045
24064
|
function KA(e, t, n) {
|
|
24046
24065
|
if (!e)
|
|
@@ -24413,7 +24432,7 @@ function xR({
|
|
|
24413
24432
|
value: n,
|
|
24414
24433
|
set: i
|
|
24415
24434
|
} = ne(e.instanceData, "config"), s = D(() => n ? Ee({}, n) : zc, [n]), a = D(() => S.cloneDeep(s), [s]);
|
|
24416
|
-
|
|
24435
|
+
G(() => {
|
|
24417
24436
|
!zt(s, a) && (console.log("config malformed, resetting to defaults", s, a), i(a));
|
|
24418
24437
|
}, [s, a]);
|
|
24419
24438
|
const o = Ne({
|
|
@@ -24425,7 +24444,7 @@ function xR({
|
|
|
24425
24444
|
formState: u,
|
|
24426
24445
|
reset: h
|
|
24427
24446
|
} = o;
|
|
24428
|
-
return
|
|
24447
|
+
return G(() => {
|
|
24429
24448
|
h(a);
|
|
24430
24449
|
}, [a]), /* @__PURE__ */ r.jsx(C, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: c(i), children: [
|
|
24431
24450
|
/* @__PURE__ */ r.jsx(ct, { canSubmit: u.isDirty }),
|
|
@@ -25287,7 +25306,7 @@ function KR({
|
|
|
25287
25306
|
} = Ne({
|
|
25288
25307
|
defaultValues: a
|
|
25289
25308
|
});
|
|
25290
|
-
return
|
|
25309
|
+
return G(() => {
|
|
25291
25310
|
u(a);
|
|
25292
25311
|
}, [a]), /* @__PURE__ */ r.jsx(C, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: l(i), children: [
|
|
25293
25312
|
/* @__PURE__ */ r.jsx(ct, { canSubmit: d.isDirty }),
|
|
@@ -26085,7 +26104,7 @@ function CP({
|
|
|
26085
26104
|
estimated_value: c,
|
|
26086
26105
|
actual_value: d
|
|
26087
26106
|
} = l.data_keys, [u, h] = K(d);
|
|
26088
|
-
if (
|
|
26107
|
+
if (G(() => {
|
|
26089
26108
|
h((m) => m || d);
|
|
26090
26109
|
}, [d]), !o.data_key || !c || !d || !s || !a)
|
|
26091
26110
|
return null;
|
|
@@ -26192,7 +26211,7 @@ function zP({
|
|
|
26192
26211
|
/* @__PURE__ */ r.jsxs(_, { grow: !0, noWrap: !0, children: [
|
|
26193
26212
|
/* @__PURE__ */ r.jsx(g, { name: "x_axis.axisLabel.rotate", control: e, render: ({
|
|
26194
26213
|
field: n
|
|
26195
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
26214
|
+
}) => /* @__PURE__ */ r.jsx(tr, { sx: {
|
|
26196
26215
|
width: "48%"
|
|
26197
26216
|
}, ...n }) }),
|
|
26198
26217
|
/* @__PURE__ */ r.jsx(g, { name: "x_axis.axisLabel.formatter", control: e, render: ({
|
|
@@ -26216,7 +26235,7 @@ function MP({
|
|
|
26216
26235
|
} = Ne({
|
|
26217
26236
|
defaultValues: i
|
|
26218
26237
|
});
|
|
26219
|
-
return
|
|
26238
|
+
return G(() => {
|
|
26220
26239
|
c(i);
|
|
26221
26240
|
}, [i]), /* @__PURE__ */ r.jsx(C, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: a(n), children: [
|
|
26222
26241
|
/* @__PURE__ */ r.jsx(ct, { canSubmit: l.isDirty }),
|
|
@@ -26562,7 +26581,7 @@ function HP({
|
|
|
26562
26581
|
} = Ne({
|
|
26563
26582
|
defaultValues: s
|
|
26564
26583
|
});
|
|
26565
|
-
return
|
|
26584
|
+
return G(() => {
|
|
26566
26585
|
d(s);
|
|
26567
26586
|
}, [s]), /* @__PURE__ */ r.jsx("form", { onSubmit: o(n), children: /* @__PURE__ */ r.jsxs(C, { spacing: "xs", children: [
|
|
26568
26587
|
/* @__PURE__ */ r.jsx(ct, { canSubmit: c.isDirty }),
|
|
@@ -26698,7 +26717,7 @@ const XP = {
|
|
|
26698
26717
|
tooltip: {
|
|
26699
26718
|
metrics: []
|
|
26700
26719
|
},
|
|
26701
|
-
visualMap:
|
|
26720
|
+
visualMap: Zn()
|
|
26702
26721
|
};
|
|
26703
26722
|
function JP({
|
|
26704
26723
|
control: e,
|
|
@@ -26823,7 +26842,7 @@ function n$({
|
|
|
26823
26842
|
/* @__PURE__ */ r.jsxs(_, { grow: !0, noWrap: !0, children: [
|
|
26824
26843
|
/* @__PURE__ */ r.jsx(g, { name: "x_axis.axisLabel.rotate", control: e, render: ({
|
|
26825
26844
|
field: i
|
|
26826
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
26845
|
+
}) => /* @__PURE__ */ r.jsx(tr, { sx: {
|
|
26827
26846
|
width: "48%"
|
|
26828
26847
|
}, ...i }) }),
|
|
26829
26848
|
/* @__PURE__ */ r.jsx(g, { name: "x_axis.axisLabel.formatter", control: e, render: ({
|
|
@@ -26866,7 +26885,7 @@ function r$({
|
|
|
26866
26885
|
/* @__PURE__ */ r.jsxs(_, { grow: !0, noWrap: !0, children: [
|
|
26867
26886
|
/* @__PURE__ */ r.jsx(g, { name: "y_axis.axisLabel.rotate", control: e, render: ({
|
|
26868
26887
|
field: i
|
|
26869
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
26888
|
+
}) => /* @__PURE__ */ r.jsx(tr, { sx: {
|
|
26870
26889
|
width: "48%"
|
|
26871
26890
|
}, ...i }) }),
|
|
26872
26891
|
/* @__PURE__ */ r.jsx(g, { name: "y_axis.axisLabel.formatter", control: e, render: ({
|
|
@@ -26884,7 +26903,7 @@ function i$({
|
|
|
26884
26903
|
value: n,
|
|
26885
26904
|
set: i
|
|
26886
26905
|
} = ne(e.instanceData, "config"), s = D(() => n ? Ee({}, n) : Ac, [n]), a = D(() => S.cloneDeep(s), [s]);
|
|
26887
|
-
|
|
26906
|
+
G(() => {
|
|
26888
26907
|
!zt(s, a) && (console.log("config malformed, resetting to defaults", s, a), i(a));
|
|
26889
26908
|
}, [s, a]);
|
|
26890
26909
|
const o = Ne({
|
|
@@ -26896,7 +26915,7 @@ function i$({
|
|
|
26896
26915
|
formState: u,
|
|
26897
26916
|
reset: h
|
|
26898
26917
|
} = o;
|
|
26899
|
-
return
|
|
26918
|
+
return G(() => {
|
|
26900
26919
|
h(a);
|
|
26901
26920
|
}, [a]), /* @__PURE__ */ r.jsx("form", { onSubmit: c(i), style: {
|
|
26902
26921
|
flexGrow: 1
|
|
@@ -27304,7 +27323,7 @@ const y$ = {
|
|
|
27304
27323
|
}];
|
|
27305
27324
|
function j$(e) {
|
|
27306
27325
|
const {
|
|
27307
|
-
visualMap: t =
|
|
27326
|
+
visualMap: t = Zn(),
|
|
27308
27327
|
heat_block: {
|
|
27309
27328
|
min: n,
|
|
27310
27329
|
max: i,
|
|
@@ -27316,7 +27335,7 @@ function j$(e) {
|
|
|
27316
27335
|
...a,
|
|
27317
27336
|
heat_block: s,
|
|
27318
27337
|
visualMap: {
|
|
27319
|
-
...
|
|
27338
|
+
...Zn(),
|
|
27320
27339
|
min: n,
|
|
27321
27340
|
max: i
|
|
27322
27341
|
}
|
|
@@ -27428,7 +27447,7 @@ const S$ = {
|
|
|
27428
27447
|
vizManager: e,
|
|
27429
27448
|
colorManager: t
|
|
27430
27449
|
};
|
|
27431
|
-
},
|
|
27450
|
+
}, nr = Ru(Rc());
|
|
27432
27451
|
try {
|
|
27433
27452
|
Pi.install(ax());
|
|
27434
27453
|
} catch {
|
|
@@ -28570,7 +28589,7 @@ const F$ = x.model("FilterDateRangeConfigMeta", {
|
|
|
28570
28589
|
} = y(), [t, n] = K(!1);
|
|
28571
28590
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
28572
28591
|
/* @__PURE__ */ r.jsx(M, { variant: "subtle", compact: !0, onClick: () => n((i) => !i), children: e(t ? "common.actions.close" : "filter.widget.common.see_data_structure") }),
|
|
28573
|
-
/* @__PURE__ */ r.jsx(Ji, { in: t, children: /* @__PURE__ */ r.jsx(
|
|
28592
|
+
/* @__PURE__ */ r.jsx(Ji, { in: t, children: /* @__PURE__ */ r.jsx(Jn, { language: "typescript", noCopy: !0, colorScheme: "dark", children: W$ }) })
|
|
28574
28593
|
] });
|
|
28575
28594
|
}, H$ = {
|
|
28576
28595
|
[Z.Checkbox]: "true",
|
|
@@ -28594,7 +28613,7 @@ const F$ = x.model("FilterDateRangeConfigMeta", {
|
|
|
28594
28613
|
flexGrow: 0,
|
|
28595
28614
|
alignSelf: "flex-start"
|
|
28596
28615
|
},
|
|
28597
|
-
leftIcon: /* @__PURE__ */ r.jsx(
|
|
28616
|
+
leftIcon: /* @__PURE__ */ r.jsx(er, { size: 16 })
|
|
28598
28617
|
}, description: /* @__PURE__ */ r.jsx(Xi, { title: t("filter.field.custom_default_value.tips"), color: "gray", mb: 16, children: /* @__PURE__ */ r.jsxs(Ut, { size: 13, type: "ordered", children: [
|
|
28599
28618
|
/* @__PURE__ */ r.jsx(Ut.Item, { children: t("filter.field.custom_default_value.tip_1") }),
|
|
28600
28619
|
/* @__PURE__ */ r.jsx(Ut.Item, { children: t("filter.field.custom_default_value.tip_2") })
|
|
@@ -28979,7 +28998,7 @@ const F$ = x.model("FilterDateRangeConfigMeta", {
|
|
|
28979
28998
|
style: a,
|
|
28980
28999
|
listHeight: 510,
|
|
28981
29000
|
treeLine: !0,
|
|
28982
|
-
clearIcon: () => /* @__PURE__ */ r.jsx(
|
|
29001
|
+
clearIcon: () => /* @__PURE__ */ r.jsx(Xn, {}),
|
|
28983
29002
|
switcherIcon: bx,
|
|
28984
29003
|
treeIcon: yx,
|
|
28985
29004
|
maxTagTextLength: 10,
|
|
@@ -29323,7 +29342,7 @@ const F$ = x.model("FilterDateRangeConfigMeta", {
|
|
|
29323
29342
|
style: a,
|
|
29324
29343
|
listHeight: 510,
|
|
29325
29344
|
treeLine: !0,
|
|
29326
|
-
clearIcon: () => /* @__PURE__ */ r.jsx(
|
|
29345
|
+
clearIcon: () => /* @__PURE__ */ r.jsx(Xn, {}),
|
|
29327
29346
|
switcherIcon: bx,
|
|
29328
29347
|
treeIcon: yx,
|
|
29329
29348
|
value: l,
|
|
@@ -31480,7 +31499,7 @@ const k2 = (e) => new S2(e), C2 = ({
|
|
|
31480
31499
|
count: l.length
|
|
31481
31500
|
}), children: /* @__PURE__ */ r.jsx(ur, { children: l.length }) })
|
|
31482
31501
|
] }),
|
|
31483
|
-
/* @__PURE__ */ r.jsx(n_, { disabled: e, allowClear: !0, className: m(f.root, "check-select"), dropdownClassName: m(f.dropdown, ""), onDropdownVisibleChange: j, transitionName: "rc-select-dropdown-slide-up", choiceTransitionName: "rc-select-selection__choice-zoom", style: a, clearIcon: () => /* @__PURE__ */ r.jsx(
|
|
31502
|
+
/* @__PURE__ */ r.jsx(n_, { disabled: e, allowClear: !0, className: m(f.root, "check-select"), dropdownClassName: m(f.dropdown, ""), onDropdownVisibleChange: j, transitionName: "rc-select-dropdown-slide-up", choiceTransitionName: "rc-select-selection__choice-zoom", style: a, clearIcon: () => /* @__PURE__ */ r.jsx(Xn, {}), value: l, onChange: c, onSelect: console.log, mode: "multiple", maxTagCount: 0, notFoundContent: /* @__PURE__ */ r.jsx(Va, { errorMessage: u }), maxTagTextLength: 10, maxTagPlaceholder: (ee) => p("filter.widget.common.x_selected", {
|
|
31484
31503
|
count: ee.length
|
|
31485
31504
|
}), searchValue: A, onSearch: E, filterOption: !1, children: P.map((ee) => /* @__PURE__ */ r.jsxs(r_, { title: ee.label, children: [
|
|
31486
31505
|
/* @__PURE__ */ r.jsx(I, { size: "sm", "data-role": "label", children: ee.label }),
|
|
@@ -31610,7 +31629,7 @@ const F2 = z(({
|
|
|
31610
31629
|
};
|
|
31611
31630
|
function q2(e) {
|
|
31612
31631
|
const t = ye();
|
|
31613
|
-
|
|
31632
|
+
G(() => {
|
|
31614
31633
|
var n, i;
|
|
31615
31634
|
(i = (n = t.filters).updatePreviewValues) == null || i.call(n, e);
|
|
31616
31635
|
}, [e]);
|
|
@@ -31639,7 +31658,7 @@ const B2 = ({
|
|
|
31639
31658
|
}), c = vy({
|
|
31640
31659
|
control: a
|
|
31641
31660
|
});
|
|
31642
|
-
|
|
31661
|
+
G(() => {
|
|
31643
31662
|
l(s.filters.values);
|
|
31644
31663
|
}, [s.filters.values, l]), q2(c);
|
|
31645
31664
|
const d = s.filters.visibleInView(t.id), u = D(() => d.every((m) => m.should_auto_submit), [d]), h = D(() => d.filter((m) => S.get(m, "config.required", !1)), [d]), p = D(() => h.length === 0 ? !1 : h.some((m) => !m.requiredAndPass(c[m.key])), [c, h]);
|
|
@@ -31795,7 +31814,7 @@ const Y2 = z(function() {
|
|
|
31795
31814
|
}, children: /* @__PURE__ */ r.jsx(I, { align: "center", lineClamp: 1, className: "panel-title-text", children: n }) }) : null;
|
|
31796
31815
|
});
|
|
31797
31816
|
function K2(e) {
|
|
31798
|
-
const t =
|
|
31817
|
+
const t = Kn(null);
|
|
31799
31818
|
return {
|
|
31800
31819
|
ref: t,
|
|
31801
31820
|
downloadPanelScreenshot: () => {
|
|
@@ -31894,7 +31913,7 @@ function Kx(e) {
|
|
|
31894
31913
|
}
|
|
31895
31914
|
function Xx(e, t) {
|
|
31896
31915
|
const n = ox().getRequired(Ze.instanceScope.vizInstance);
|
|
31897
|
-
return
|
|
31916
|
+
return G(() => (n.instanceData.setItem(null, t.viz.conf), n.instanceData.watchItem(null, (i) => {
|
|
31898
31917
|
e(i);
|
|
31899
31918
|
})), [e, t.viz.type]), n;
|
|
31900
31919
|
}
|
|
@@ -31933,7 +31952,7 @@ function Z2(e) {
|
|
|
31933
31952
|
function eO(e, t) {
|
|
31934
31953
|
const {
|
|
31935
31954
|
vizManager: n
|
|
31936
|
-
} = pr(
|
|
31955
|
+
} = pr(nr), {
|
|
31937
31956
|
panel: {
|
|
31938
31957
|
viz: i,
|
|
31939
31958
|
title: s,
|
|
@@ -32144,7 +32163,7 @@ const pO = N.forwardRef(({
|
|
|
32144
32163
|
className: t = "layout"
|
|
32145
32164
|
}) => {
|
|
32146
32165
|
const i = ye().layouts, s = i.items(e.panelIDs), a = i.gridLayouts(e.panelIDs), o = (d, u, h, p) => {
|
|
32147
|
-
|
|
32166
|
+
h.h < 30 && (h.h = 30, p.h = 30), h.w < 4 && (h.w = 4, p.w = 4);
|
|
32148
32167
|
}, l = (d, u, h) => {
|
|
32149
32168
|
console.log("🔴 onResizeStop", {
|
|
32150
32169
|
layouts: d,
|
|
@@ -32170,7 +32189,7 @@ const pO = N.forwardRef(({
|
|
|
32170
32189
|
return /* @__PURE__ */ r.jsx(gO, { 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(eg, { view: e, panel: a.panel }) }, a.id)) });
|
|
32171
32190
|
});
|
|
32172
32191
|
function Vc(e) {
|
|
32173
|
-
const t =
|
|
32192
|
+
const t = Kn(null);
|
|
32174
32193
|
return {
|
|
32175
32194
|
ref: t,
|
|
32176
32195
|
downloadScreenshot: () => {
|
|
@@ -32316,7 +32335,7 @@ const yO = z(({
|
|
|
32316
32335
|
view: t
|
|
32317
32336
|
}) => {
|
|
32318
32337
|
const i = ye().layouts, [s, a] = fb();
|
|
32319
|
-
return
|
|
32338
|
+
return G(() => {
|
|
32320
32339
|
i.setCurrentLayoutWrapperWidth(a.width);
|
|
32321
32340
|
}, [a.width]), /* @__PURE__ */ r.jsx(R, { sx: {
|
|
32322
32341
|
height: "100%"
|
|
@@ -36033,7 +36052,7 @@ function sg({
|
|
|
36033
36052
|
lang: e,
|
|
36034
36053
|
children: t
|
|
36035
36054
|
}) {
|
|
36036
|
-
return
|
|
36055
|
+
return G(() => {
|
|
36037
36056
|
la.changeLanguage(e);
|
|
36038
36057
|
}, [e]), /* @__PURE__ */ r.jsx(Kb, { i18n: la, children: t });
|
|
36039
36058
|
}
|
|
@@ -36041,7 +36060,7 @@ function Ds(e) {
|
|
|
36041
36060
|
console.groupCollapsed("Running operation ", e.type), console.log(e), console.groupEnd();
|
|
36042
36061
|
}
|
|
36043
36062
|
function ag(e, t) {
|
|
36044
|
-
|
|
36063
|
+
G(() => {
|
|
36045
36064
|
const n = (i) => {
|
|
36046
36065
|
Ds(i);
|
|
36047
36066
|
const {
|
|
@@ -36056,7 +36075,7 @@ function ag(e, t) {
|
|
|
36056
36075
|
return window.addEventListener("open-view", n), () => {
|
|
36057
36076
|
window.removeEventListener("open-view", n);
|
|
36058
36077
|
};
|
|
36059
|
-
}, [e, t]),
|
|
36078
|
+
}, [e, t]), G(() => {
|
|
36060
36079
|
const n = (i) => {
|
|
36061
36080
|
Ds(i);
|
|
36062
36081
|
const {
|
|
@@ -36076,7 +36095,7 @@ function ag(e, t) {
|
|
|
36076
36095
|
return window.addEventListener("set-filter-values", n), () => {
|
|
36077
36096
|
window.removeEventListener("set-filter-values", n);
|
|
36078
36097
|
};
|
|
36079
|
-
}, [e]),
|
|
36098
|
+
}, [e]), G(() => {
|
|
36080
36099
|
function n(s) {
|
|
36081
36100
|
return Array.isArray(s) ? [] : typeof s == "object" ? {} : typeof s == "boolean" ? !1 : typeof s == "string" ? "" : typeof s == "number" ? 0 : s;
|
|
36082
36101
|
}
|
|
@@ -36093,7 +36112,7 @@ function ag(e, t) {
|
|
|
36093
36112
|
return window.addEventListener("clear-filter-values", i), () => {
|
|
36094
36113
|
window.removeEventListener("clear-filter-values", i);
|
|
36095
36114
|
};
|
|
36096
|
-
}, [e]),
|
|
36115
|
+
}, [e]), G(() => {
|
|
36097
36116
|
const n = (i) => {
|
|
36098
36117
|
Ds(i);
|
|
36099
36118
|
const {
|
|
@@ -36568,7 +36587,7 @@ const CF = z(({
|
|
|
36568
36587
|
});
|
|
36569
36588
|
}
|
|
36570
36589
|
}, [p, f] = K(null);
|
|
36571
|
-
|
|
36590
|
+
G(() => {
|
|
36572
36591
|
if (!p)
|
|
36573
36592
|
return;
|
|
36574
36593
|
const A = new FileReader();
|
|
@@ -36590,7 +36609,7 @@ const CF = z(({
|
|
|
36590
36609
|
};
|
|
36591
36610
|
}, [p]);
|
|
36592
36611
|
const [m] = c(["content"]), b = !m, k = (j = o == null ? void 0 : o.content) == null ? void 0 : j.message;
|
|
36593
|
-
return
|
|
36612
|
+
return G(() => {
|
|
36594
36613
|
!m || k ? n() : t();
|
|
36595
36614
|
}, [m, k]), /* @__PURE__ */ r.jsx(R, { mx: "auto", sx: {
|
|
36596
36615
|
position: "relative"
|
|
@@ -37258,7 +37277,7 @@ const nV = z(() => {
|
|
|
37258
37277
|
} = y(), [t, n] = K(!1);
|
|
37259
37278
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
37260
37279
|
/* @__PURE__ */ r.jsx(M, { variant: "subtle", compact: !0, onClick: () => n((i) => !i), children: e(t ? "common.actions.close" : "filter.widget.common.see_data_structure") }),
|
|
37261
|
-
/* @__PURE__ */ r.jsx(Ji, { in: t, children: /* @__PURE__ */ r.jsx(
|
|
37280
|
+
/* @__PURE__ */ r.jsx(Ji, { in: t, children: /* @__PURE__ */ r.jsx(Jn, { language: "typescript", noCopy: !0, colorScheme: "dark", children: oV }) })
|
|
37262
37281
|
] });
|
|
37263
37282
|
}, lV = z(function({
|
|
37264
37283
|
filter: t
|
|
@@ -37426,7 +37445,7 @@ const nV = z(() => {
|
|
|
37426
37445
|
maxWidth: "480px"
|
|
37427
37446
|
}, children: [
|
|
37428
37447
|
/* @__PURE__ */ r.jsx(I, { pt: "0", pb: "md", color: "gray", children: n("common.titles.config") }),
|
|
37429
|
-
/* @__PURE__ */ r.jsx(
|
|
37448
|
+
/* @__PURE__ */ r.jsx(Jn, { mt: 22, language: "json", colorScheme: "dark", noCopy: !0, children: JSON.stringify(t, null, 4) })
|
|
37430
37449
|
] });
|
|
37431
37450
|
}), hV = {
|
|
37432
37451
|
[Z.Select]: cV,
|
|
@@ -37436,7 +37455,7 @@ const nV = z(() => {
|
|
|
37436
37455
|
[Z.TextInput]: dV,
|
|
37437
37456
|
[Z.Checkbox]: iV,
|
|
37438
37457
|
[Z.DateRange]: aV
|
|
37439
|
-
},
|
|
37458
|
+
}, ir = {
|
|
37440
37459
|
[Z.Select]: "filter.widget.names.select",
|
|
37441
37460
|
[Z.MultiSelect]: "filter.widget.names.multi_select",
|
|
37442
37461
|
[Z.TreeSelect]: "filter.widget.names.tree_select",
|
|
@@ -37451,25 +37470,25 @@ const nV = z(() => {
|
|
|
37451
37470
|
t: n,
|
|
37452
37471
|
i18n: i
|
|
37453
37472
|
} = y(), s = ye(), a = N.useMemo(() => hV[t.type], [t.type]), o = D(() => [{
|
|
37454
|
-
label: n(
|
|
37473
|
+
label: n(ir[Z.Select]),
|
|
37455
37474
|
value: "select"
|
|
37456
37475
|
}, {
|
|
37457
|
-
label: n(
|
|
37476
|
+
label: n(ir[Z.MultiSelect]),
|
|
37458
37477
|
value: "multi-select"
|
|
37459
37478
|
}, {
|
|
37460
|
-
label: n(
|
|
37479
|
+
label: n(ir[Z.TreeSelect]),
|
|
37461
37480
|
value: "tree-select"
|
|
37462
37481
|
}, {
|
|
37463
|
-
label: n(
|
|
37482
|
+
label: n(ir[Z.TreeSingleSelect]),
|
|
37464
37483
|
value: "tree-single-select"
|
|
37465
37484
|
}, {
|
|
37466
|
-
label: n(
|
|
37485
|
+
label: n(ir[Z.TextInput]),
|
|
37467
37486
|
value: "text-input"
|
|
37468
37487
|
}, {
|
|
37469
|
-
label: n(
|
|
37488
|
+
label: n(ir[Z.Checkbox]),
|
|
37470
37489
|
value: "checkbox"
|
|
37471
37490
|
}, {
|
|
37472
|
-
label: n(
|
|
37491
|
+
label: n(ir[Z.DateRange]),
|
|
37473
37492
|
value: "date-range"
|
|
37474
37493
|
}], [i.language]);
|
|
37475
37494
|
return /* @__PURE__ */ r.jsxs(_, { grow: !0, spacing: 20, align: "top", children: [
|
|
@@ -37621,7 +37640,7 @@ const nV = z(() => {
|
|
|
37621
37640
|
} }) }),
|
|
37622
37641
|
/* @__PURE__ */ r.jsx("td", { children: d.label }),
|
|
37623
37642
|
/* @__PURE__ */ r.jsx("td", { children: d.key }),
|
|
37624
|
-
/* @__PURE__ */ r.jsx("td", { children: e(
|
|
37643
|
+
/* @__PURE__ */ r.jsx("td", { children: e(ir[d.type]) }),
|
|
37625
37644
|
/* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(M, { variant: "subtle", size: "xs", onClick: () => s(d.id), children: e("common.actions.open") }) })
|
|
37626
37645
|
] }, d.id)) })
|
|
37627
37646
|
] }) }) })
|
|
@@ -37733,7 +37752,7 @@ const nV = z(() => {
|
|
|
37733
37752
|
} = t, [i, s] = eh(n), a = n !== i, o = N.useCallback(() => {
|
|
37734
37753
|
a && t.setName(i);
|
|
37735
37754
|
}, [a, i]);
|
|
37736
|
-
|
|
37755
|
+
G(() => {
|
|
37737
37756
|
s(n);
|
|
37738
37757
|
}, [n]);
|
|
37739
37758
|
const l = !i.trim();
|
|
@@ -37944,7 +37963,7 @@ const SV = [{
|
|
|
37944
37963
|
}, [e, s]), d = () => {
|
|
37945
37964
|
s.queries.downloadDataByQueryID(e);
|
|
37946
37965
|
};
|
|
37947
|
-
|
|
37966
|
+
G(() => {
|
|
37948
37967
|
n && c();
|
|
37949
37968
|
}, [c, n]);
|
|
37950
37969
|
const u = !Array.isArray(a) || a.length === 0;
|
|
@@ -38020,7 +38039,7 @@ function EV() {
|
|
|
38020
38039
|
t: e
|
|
38021
38040
|
} = y(), {
|
|
38022
38041
|
vizManager: t
|
|
38023
|
-
} = pr(
|
|
38042
|
+
} = pr(nr);
|
|
38024
38043
|
return D(() => {
|
|
38025
38044
|
const n = t.availableVizList.map((i) => ({
|
|
38026
38045
|
value: i.name,
|
|
@@ -38037,7 +38056,7 @@ const LV = z(({
|
|
|
38037
38056
|
const {
|
|
38038
38057
|
t: n
|
|
38039
38058
|
} = y(), [i, s] = eh(e);
|
|
38040
|
-
|
|
38059
|
+
G(() => {
|
|
38041
38060
|
s(e);
|
|
38042
38061
|
}, [e]);
|
|
38043
38062
|
const a = EV(), o = e !== i;
|
|
@@ -38064,7 +38083,7 @@ function RV() {
|
|
|
38064
38083
|
}
|
|
38065
38084
|
} = qt(), {
|
|
38066
38085
|
vizManager: c
|
|
38067
|
-
} = pr(
|
|
38086
|
+
} = pr(nr), d = {
|
|
38068
38087
|
name: s,
|
|
38069
38088
|
title: i,
|
|
38070
38089
|
description: o,
|
|
@@ -38086,7 +38105,7 @@ const PV = z(() => {
|
|
|
38086
38105
|
}
|
|
38087
38106
|
} = qt(), {
|
|
38088
38107
|
vizManager: n
|
|
38089
|
-
} = pr(
|
|
38108
|
+
} = pr(nr), i = N.useCallback((d) => {
|
|
38090
38109
|
if (d === t.type)
|
|
38091
38110
|
return;
|
|
38092
38111
|
const u = AV(n, d);
|
|
@@ -38126,7 +38145,7 @@ const PV = z(() => {
|
|
|
38126
38145
|
const {
|
|
38127
38146
|
t: n
|
|
38128
38147
|
} = y(), i = ye(), [s, a] = K(t);
|
|
38129
|
-
|
|
38148
|
+
G(() => {
|
|
38130
38149
|
a(t);
|
|
38131
38150
|
}, [t]);
|
|
38132
38151
|
const [o, {
|
|
@@ -38177,10 +38196,10 @@ const PV = z(() => {
|
|
|
38177
38196
|
/* @__PURE__ */ r.jsx(v.Tab, { value: "guide", icon: /* @__PURE__ */ r.jsx(qi, { size: 14 }), children: t("panel.variable.guide.tabs.guide") }),
|
|
38178
38197
|
/* @__PURE__ */ r.jsx(v.Tab, { value: "vars", icon: /* @__PURE__ */ r.jsx(ts, { size: 14 }), children: t("panel.variable.guide.tabs.vars") })
|
|
38179
38198
|
] }),
|
|
38180
|
-
/* @__PURE__ */ r.jsx(v.Panel, { value: "guide", pt: "xs", children: /* @__PURE__ */ r.jsx(
|
|
38199
|
+
/* @__PURE__ */ r.jsx(v.Panel, { value: "guide", pt: "xs", children: /* @__PURE__ */ r.jsx(Jn, { language: "sql", sx: {
|
|
38181
38200
|
width: "100%"
|
|
38182
38201
|
}, noCopy: !0, colorScheme: "dark", children: t("panel.variable.guide.text") }) }),
|
|
38183
|
-
/* @__PURE__ */ r.jsx(v.Panel, { value: "vars", pt: "xs", children: /* @__PURE__ */ r.jsx(
|
|
38202
|
+
/* @__PURE__ */ r.jsx(v.Panel, { value: "vars", pt: "xs", children: /* @__PURE__ */ r.jsx(Jn, { language: "json", sx: {
|
|
38184
38203
|
width: "100%"
|
|
38185
38204
|
}, noCopy: !0, colorScheme: "dark", children: a }) })
|
|
38186
38205
|
] }) });
|
|
@@ -38387,7 +38406,7 @@ const QV = z(({
|
|
|
38387
38406
|
const {
|
|
38388
38407
|
t
|
|
38389
38408
|
} = y(), n = $n(), i = ze(), s = ye(), [a, o] = K(i.editor.panelTab), l = e.queries, d = GV(e.viz.type) && e.dataLoading, u = d || e.queryErrors.length > 0 || e.queryStateMessages !== "" || l.length === 0, h = i.editor.path[1];
|
|
38390
|
-
|
|
38409
|
+
G(() => {
|
|
38391
38410
|
o((b) => u && b === "Visualization" ? "Data" : b);
|
|
38392
38411
|
}, [e.id, u]);
|
|
38393
38412
|
const p = je((b) => {
|
|
@@ -38914,7 +38933,7 @@ const sN = z(({
|
|
|
38914
38933
|
const {
|
|
38915
38934
|
t
|
|
38916
38935
|
} = y();
|
|
38917
|
-
return
|
|
38936
|
+
return G(() => {
|
|
38918
38937
|
e.loadTablesIfEmpty();
|
|
38919
38938
|
}, [e]), e.tables.error ? /* @__PURE__ */ r.jsx(I, { color: "red", size: "md", align: "center", sx: {
|
|
38920
38939
|
fontFamily: "monospace"
|
|
@@ -39063,7 +39082,7 @@ const sN = z(({
|
|
|
39063
39082
|
const {
|
|
39064
39083
|
t
|
|
39065
39084
|
} = y(), [n, i] = K(e.name);
|
|
39066
|
-
return
|
|
39085
|
+
return G(() => {
|
|
39067
39086
|
i(e.name);
|
|
39068
39087
|
}, [e.name]), /* @__PURE__ */ r.jsx(mr, { ml: 20, mt: 20, sx: {
|
|
39069
39088
|
maxWidth: "600px"
|
|
@@ -39099,7 +39118,7 @@ function gN({
|
|
|
39099
39118
|
}) {
|
|
39100
39119
|
return /* @__PURE__ */ r.jsxs(Xe, { width: "60vw", shadow: "md", children: [
|
|
39101
39120
|
/* @__PURE__ */ r.jsx(Xe.Target, { children: /* @__PURE__ */ r.jsx(ue, { size: 16, color: "blue", children: /* @__PURE__ */ r.jsx(hh, {}) }) }),
|
|
39102
|
-
/* @__PURE__ */ r.jsx(Xe.Dropdown, { children: /* @__PURE__ */ r.jsx(
|
|
39121
|
+
/* @__PURE__ */ r.jsx(Xe.Dropdown, { children: /* @__PURE__ */ r.jsx(Jn, { language: "sql", noCopy: !0, withLineNumbers: !0, children: e }) })
|
|
39103
39122
|
] });
|
|
39104
39123
|
}
|
|
39105
39124
|
const bN = z(() => {
|
|
@@ -39158,10 +39177,10 @@ WHERE
|
|
|
39158
39177
|
/* @__PURE__ */ r.jsx(v.Tab, { value: "local_query_vars", icon: /* @__PURE__ */ r.jsx(ts, { size: 14 }), children: i("query_variable.guide.tabs.variables_in_this_dashboard") }),
|
|
39159
39178
|
/* @__PURE__ */ r.jsx(v.Tab, { value: "global_sql_snippets", icon: /* @__PURE__ */ r.jsx(Gb, { size: 14 }), children: i("query_variable.guide.tabs.global_sql_snippets") })
|
|
39160
39179
|
] }),
|
|
39161
|
-
/* @__PURE__ */ r.jsx(v.Panel, { value: "guide", pt: "xs", children: /* @__PURE__ */ r.jsx(
|
|
39180
|
+
/* @__PURE__ */ r.jsx(v.Panel, { value: "guide", pt: "xs", children: /* @__PURE__ */ r.jsx(Jn, { language: "sql", sx: {
|
|
39162
39181
|
width: "100%"
|
|
39163
39182
|
}, noCopy: !0, colorScheme: "dark", children: yN }) }),
|
|
39164
|
-
/* @__PURE__ */ r.jsx(v.Panel, { value: "local_query_vars", pt: "xs", children: /* @__PURE__ */ r.jsx(
|
|
39183
|
+
/* @__PURE__ */ r.jsx(v.Panel, { value: "local_query_vars", pt: "xs", children: /* @__PURE__ */ r.jsx(Jn, { language: "json", sx: {
|
|
39165
39184
|
width: "100%"
|
|
39166
39185
|
}, noCopy: !0, colorScheme: "dark", children: l }) }),
|
|
39167
39186
|
/* @__PURE__ */ r.jsx(v.Panel, { value: "global_sql_snippets", pt: "xs", children: /* @__PURE__ */ r.jsxs(C, { spacing: 10, children: [
|
|
@@ -39283,7 +39302,7 @@ WHERE
|
|
|
39283
39302
|
}, o = () => {
|
|
39284
39303
|
i(wN);
|
|
39285
39304
|
};
|
|
39286
|
-
|
|
39305
|
+
G(() => {
|
|
39287
39306
|
i(e.sql);
|
|
39288
39307
|
}, [e.sql]);
|
|
39289
39308
|
const l = n !== e.sql;
|
|
@@ -39388,7 +39407,7 @@ WHERE
|
|
|
39388
39407
|
const {
|
|
39389
39408
|
t
|
|
39390
39409
|
} = y(), n = ye(), i = D(() => e.datasource ? e.typedAsHTTP ? "HTTP" : "SQL" : "Configurations", [e.datasource, e.typedAsHTTP]), [s, a] = K(i);
|
|
39391
|
-
|
|
39410
|
+
G(() => {
|
|
39392
39411
|
a((c) => c !== "Configurations" && i === "Configurations" ? "Configurations" : c);
|
|
39393
39412
|
}, [i]);
|
|
39394
39413
|
const o = n.findQueryUsage(e.id), l = o.length === 0;
|
|
@@ -39444,7 +39463,7 @@ WHERE
|
|
|
39444
39463
|
}, d = o !== e.key, u = e.isADuplicatedKey(o), [h, p] = K(e.value), f = () => {
|
|
39445
39464
|
e.setValue(h);
|
|
39446
39465
|
};
|
|
39447
|
-
|
|
39466
|
+
G(() => {
|
|
39448
39467
|
l(e.key), p(e.value);
|
|
39449
39468
|
}, [e]);
|
|
39450
39469
|
const m = h !== e.value, b = $n(), k = () => {
|
|
@@ -39968,7 +39987,7 @@ WHERE
|
|
|
39968
39987
|
const {
|
|
39969
39988
|
t
|
|
39970
39989
|
} = y(), n = ze().editor, i = n.isOptionActive, s = i(n.path, e), a = n.isOptionOpened, o = n.navigate, l = a(e), [c, d] = K(l);
|
|
39971
|
-
return
|
|
39990
|
+
return G(() => {
|
|
39972
39991
|
d(l);
|
|
39973
39992
|
}, [l]), /* @__PURE__ */ r.jsx(bo, { active: s, defaultOpened: l, opened: c, onChange: d, label: t(e.label), onClick: () => o(e), icon: e.Icon ? /* @__PURE__ */ r.jsx(e.Icon, { size: 18 }) : null, children: (u = e.children) == null ? void 0 : u.map((h) => h._type === "ACTION" ? /* @__PURE__ */ r.jsx(tq, { action_type: h._action_type, parentID: h.parentID }, `_ADD_${h.value}_`) : /* @__PURE__ */ r.jsx(gg, { option: h }, h.value)) }, e.label);
|
|
39974
39993
|
}), nq = z(() => {
|
|
@@ -40043,7 +40062,7 @@ WHERE
|
|
|
40043
40062
|
}, children: /* @__PURE__ */ r.jsx(Nu, { padding: 0, navbar: /* @__PURE__ */ r.jsx(rq, {}), styles: iq, children: /* @__PURE__ */ r.jsx(GN, {}) }) });
|
|
40044
40063
|
}), aq = (e) => e.replace(/([^:])(\/\/+)/g, "$1/");
|
|
40045
40064
|
function oq(e) {
|
|
40046
|
-
|
|
40065
|
+
G(() => {
|
|
40047
40066
|
if (Ya.__getMonacoInstance())
|
|
40048
40067
|
return;
|
|
40049
40068
|
console.log("loading monaco for @devtable/dashboard");
|
|
@@ -40128,7 +40147,7 @@ const lq = {
|
|
|
40128
40147
|
searchButtonProps: a.searchButtonProps
|
|
40129
40148
|
}, children: /* @__PURE__ */ r.jsx(gp, { value: b, children: /* @__PURE__ */ r.jsx(jp, { value: b.content, children: /* @__PURE__ */ r.jsx(jl.Provider, { value: {
|
|
40130
40149
|
inEditMode: !0
|
|
40131
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
40150
|
+
}, children: /* @__PURE__ */ r.jsx(nr.Provider, { value: j, children: /* @__PURE__ */ r.jsxs(Oa, { configure: T, children: [
|
|
40132
40151
|
/* @__PURE__ */ r.jsx(Nu, { padding: 0, header: /* @__PURE__ */ r.jsx(zF, { onExit: u, saveDashboardChanges: k, headerSlot: l }), navbar: /* @__PURE__ */ r.jsx(rV, {}), styles: lq, children: /* @__PURE__ */ r.jsx(R, { className: `${s} dashboard-root`, sx: {
|
|
40133
40152
|
position: "relative"
|
|
40134
40153
|
}, children: b.content.views.visibleViews.map((A) => /* @__PURE__ */ r.jsx(zO, { view: A }, A.id)) }) }),
|
|
@@ -40370,7 +40389,7 @@ const pq = ({
|
|
|
40370
40389
|
setFullScreenPanelID: o
|
|
40371
40390
|
}, children: /* @__PURE__ */ r.jsx(jl.Provider, { value: {
|
|
40372
40391
|
inEditMode: !1
|
|
40373
|
-
}, children: /* @__PURE__ */ r.jsx(R, { className: `${i} dashboard-root`, children: /* @__PURE__ */ r.jsx(
|
|
40392
|
+
}, children: /* @__PURE__ */ r.jsx(R, { className: `${i} dashboard-root`, children: /* @__PURE__ */ r.jsx(nr.Provider, { value: b, children: /* @__PURE__ */ r.jsx(Oa, { configure: k, children: m.content.views.visibleViews.map((j) => /* @__PURE__ */ r.jsx(Nc, { view: j }, j.id)) }) }) }) }) }) }) }) }) }) }) });
|
|
40374
40393
|
}, b5 = z(pq);
|
|
40375
40394
|
F.extend(i_);
|
|
40376
40395
|
F.extend(s_);
|