@devtable/dashboard 5.8.0 → 5.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dashboard.es.js +397 -395
- package/dist/dashboard.umd.js +12 -12
- package/dist/utils/template/render/render-jsx.d.ts +2 -2
- package/package.json +1 -1
package/dist/dashboard.es.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var Za = Object.defineProperty;
|
|
2
2
|
var es = (e, t, n) => t in e ? Za(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var $ = (e, t, n) => (es(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
|
-
import { Box as q, Text as x, Button as B, Checkbox as ft, MultiSelect as Jn, Select as L, TextInput as E, Group as y, Stack as
|
|
4
|
+
import { Box as q, Text as x, Button as B, Checkbox as ft, MultiSelect as Jn, Select as L, TextInput as E, Group as y, Stack as R, JsonInput as Vo, ActionIcon as A, AppShell as tn, LoadingOverlay as Et, Table as nn, Tooltip as gt, Tabs as k, Textarea as Xn, Modal as Le, Divider as te, SimpleGrid as ts, NumberInput as Pe, Menu as xe, Paper as ns, Code as oo, Switch as Ge, useMantineTheme as rs, ColorInput as os, ColorSwatch as io, Slider as Mo, Accordion as G, SegmentedControl as is, createStyles as Kn, Popover as Dn, Badge as as } from "@mantine/core";
|
|
5
5
|
import { useModals as ss, ModalsProvider as ko } from "@mantine/modals";
|
|
6
6
|
import { useCreation as et, usePrevious as ls, useRequest as ct, useBoolean as At, useAsyncEffect as Ot, useLatest as ao } from "ahooks";
|
|
7
7
|
import { observer as I } from "mobx-react-lite";
|
|
8
8
|
import * as so from "react";
|
|
9
|
-
import
|
|
9
|
+
import w, { useEffect as ee, createContext as Fo, useState as he, useMemo as T, forwardRef as Zn, createElement as rn, useCallback as kt, useContext as Be, useRef as cs } from "react";
|
|
10
10
|
import X, { get as Q, isFunction as us, omit as on, values as $o, unset as ds, isObject as Eo, set as Ao, orderBy as gs, last as ps, defaults as le, minBy as fs, maxBy as Oo, isEqual as Ce, groupBy as Ee, cloneDeep as zo, defaultsDeep as He, merge as Po, isEmpty as To, noop as hs, findLastIndex as ms, isNumber as vs, isString as Lo, range as bs, template as No, cloneDeepWith as ys, throttle as xs, pick as qo } from "lodash";
|
|
11
11
|
import { useForm as We, useWatch as Cs, Controller as D, useFieldArray as Ae } from "react-hook-form";
|
|
12
12
|
import { DateRangePicker as ws } from "@mantine/dates";
|
|
@@ -130,7 +130,7 @@ function tl() {
|
|
|
130
130
|
if (uo)
|
|
131
131
|
return St;
|
|
132
132
|
uo = 1;
|
|
133
|
-
var e =
|
|
133
|
+
var e = w, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
134
134
|
function s(l, c, g) {
|
|
135
135
|
var u, f = {}, p = null, m = null;
|
|
136
136
|
g !== void 0 && (p = "" + g), c.key !== void 0 && (p = "" + c.key), c.ref !== void 0 && (m = c.ref);
|
|
@@ -156,29 +156,29 @@ var _t = {};
|
|
|
156
156
|
var go;
|
|
157
157
|
function nl() {
|
|
158
158
|
return go || (go = 1, process.env.NODE_ENV !== "production" && function() {
|
|
159
|
-
var e =
|
|
160
|
-
function
|
|
159
|
+
var e = w, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), b = Symbol.iterator, v = "@@iterator";
|
|
160
|
+
function S(h) {
|
|
161
161
|
if (h === null || typeof h != "object")
|
|
162
162
|
return null;
|
|
163
|
-
var
|
|
164
|
-
return typeof
|
|
163
|
+
var _ = b && h[b] || h[v];
|
|
164
|
+
return typeof _ == "function" ? _ : null;
|
|
165
165
|
}
|
|
166
166
|
var M = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
167
167
|
function F(h) {
|
|
168
168
|
{
|
|
169
|
-
for (var
|
|
169
|
+
for (var _ = arguments.length, V = new Array(_ > 1 ? _ - 1 : 0), O = 1; O < _; O++)
|
|
170
170
|
V[O - 1] = arguments[O];
|
|
171
171
|
z("error", h, V);
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
|
-
function z(h,
|
|
174
|
+
function z(h, _, V) {
|
|
175
175
|
{
|
|
176
176
|
var O = M.ReactDebugCurrentFrame, W = O.getStackAddendum();
|
|
177
|
-
W !== "" && (
|
|
177
|
+
W !== "" && (_ += "%s", V = V.concat([W]));
|
|
178
178
|
var J = V.map(function(H) {
|
|
179
179
|
return String(H);
|
|
180
180
|
});
|
|
181
|
-
J.unshift("Warning: " +
|
|
181
|
+
J.unshift("Warning: " + _), Function.prototype.apply.call(console[h], console, J);
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
var N = !1, Y = !1, pe = !1, ce = !1, Se = !1, ve;
|
|
@@ -186,11 +186,11 @@ function nl() {
|
|
|
186
186
|
function Me(h) {
|
|
187
187
|
return !!(typeof h == "string" || typeof h == "function" || h === r || h === a || Se || h === o || h === g || h === u || ce || h === m || N || Y || pe || typeof h == "object" && h !== null && (h.$$typeof === p || h.$$typeof === f || h.$$typeof === s || h.$$typeof === l || h.$$typeof === c || h.$$typeof === ve || h.getModuleId !== void 0));
|
|
188
188
|
}
|
|
189
|
-
function ue(h,
|
|
189
|
+
function ue(h, _, V) {
|
|
190
190
|
var O = h.displayName;
|
|
191
191
|
if (O)
|
|
192
192
|
return O;
|
|
193
|
-
var W =
|
|
193
|
+
var W = _.displayName || _.name || "";
|
|
194
194
|
return W !== "" ? V + "(" + W + ")" : V;
|
|
195
195
|
}
|
|
196
196
|
function ke(h) {
|
|
@@ -220,8 +220,8 @@ function nl() {
|
|
|
220
220
|
if (typeof h == "object")
|
|
221
221
|
switch (h.$$typeof) {
|
|
222
222
|
case l:
|
|
223
|
-
var
|
|
224
|
-
return ke(
|
|
223
|
+
var _ = h;
|
|
224
|
+
return ke(_) + ".Consumer";
|
|
225
225
|
case s:
|
|
226
226
|
var V = h;
|
|
227
227
|
return ke(V._context) + ".Provider";
|
|
@@ -304,7 +304,7 @@ function nl() {
|
|
|
304
304
|
}
|
|
305
305
|
}
|
|
306
306
|
var bn = M.ReactCurrentDispatcher, yn;
|
|
307
|
-
function Lt(h,
|
|
307
|
+
function Lt(h, _, V) {
|
|
308
308
|
{
|
|
309
309
|
if (yn === void 0)
|
|
310
310
|
try {
|
|
@@ -322,7 +322,7 @@ function nl() {
|
|
|
322
322
|
var ka = typeof WeakMap == "function" ? WeakMap : Map;
|
|
323
323
|
Nt = new ka();
|
|
324
324
|
}
|
|
325
|
-
function Br(h,
|
|
325
|
+
function Br(h, _) {
|
|
326
326
|
if (!h || xn)
|
|
327
327
|
return "";
|
|
328
328
|
{
|
|
@@ -337,7 +337,7 @@ function nl() {
|
|
|
337
337
|
var J;
|
|
338
338
|
J = bn.current, bn.current = null, Va();
|
|
339
339
|
try {
|
|
340
|
-
if (
|
|
340
|
+
if (_) {
|
|
341
341
|
var H = function() {
|
|
342
342
|
throw Error();
|
|
343
343
|
};
|
|
@@ -393,14 +393,14 @@ function nl() {
|
|
|
393
393
|
var dt = h ? h.displayName || h.name : "", ro = dt ? Lt(dt) : "";
|
|
394
394
|
return typeof h == "function" && Nt.set(h, ro), ro;
|
|
395
395
|
}
|
|
396
|
-
function Fa(h,
|
|
396
|
+
function Fa(h, _, V) {
|
|
397
397
|
return Br(h, !1);
|
|
398
398
|
}
|
|
399
399
|
function $a(h) {
|
|
400
|
-
var
|
|
401
|
-
return !!(
|
|
400
|
+
var _ = h.prototype;
|
|
401
|
+
return !!(_ && _.isReactComponent);
|
|
402
402
|
}
|
|
403
|
-
function qt(h,
|
|
403
|
+
function qt(h, _, V) {
|
|
404
404
|
if (h == null)
|
|
405
405
|
return "";
|
|
406
406
|
if (typeof h == "function")
|
|
@@ -418,11 +418,11 @@ function nl() {
|
|
|
418
418
|
case c:
|
|
419
419
|
return Fa(h.render);
|
|
420
420
|
case f:
|
|
421
|
-
return qt(h.type,
|
|
421
|
+
return qt(h.type, _, V);
|
|
422
422
|
case p: {
|
|
423
423
|
var O = h, W = O._payload, J = O._init;
|
|
424
424
|
try {
|
|
425
|
-
return qt(J(W),
|
|
425
|
+
return qt(J(W), _, V);
|
|
426
426
|
} catch {
|
|
427
427
|
}
|
|
428
428
|
}
|
|
@@ -432,12 +432,12 @@ function nl() {
|
|
|
432
432
|
var jt = Object.prototype.hasOwnProperty, Hr = {}, Wr = M.ReactDebugCurrentFrame;
|
|
433
433
|
function Gt(h) {
|
|
434
434
|
if (h) {
|
|
435
|
-
var
|
|
435
|
+
var _ = h._owner, V = qt(h.type, h._source, _ ? _.type : null);
|
|
436
436
|
Wr.setExtraStackFrame(V);
|
|
437
437
|
} else
|
|
438
438
|
Wr.setExtraStackFrame(null);
|
|
439
439
|
}
|
|
440
|
-
function Ea(h,
|
|
440
|
+
function Ea(h, _, V, O, W) {
|
|
441
441
|
{
|
|
442
442
|
var J = Function.call.bind(jt);
|
|
443
443
|
for (var H in h)
|
|
@@ -448,7 +448,7 @@ function nl() {
|
|
|
448
448
|
var fe = Error((O || "React class") + ": " + V + " type `" + H + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof h[H] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
449
449
|
throw fe.name = "Invariant Violation", fe;
|
|
450
450
|
}
|
|
451
|
-
j = h[H](
|
|
451
|
+
j = h[H](_, H, O, V, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
452
452
|
} catch (oe) {
|
|
453
453
|
j = oe;
|
|
454
454
|
}
|
|
@@ -462,7 +462,7 @@ function nl() {
|
|
|
462
462
|
}
|
|
463
463
|
function Oa(h) {
|
|
464
464
|
{
|
|
465
|
-
var
|
|
465
|
+
var _ = typeof Symbol == "function" && Symbol.toStringTag, V = _ && h[Symbol.toStringTag] || h.constructor.name || "Object";
|
|
466
466
|
return V;
|
|
467
467
|
}
|
|
468
468
|
}
|
|
@@ -489,30 +489,30 @@ function nl() {
|
|
|
489
489
|
wn = {};
|
|
490
490
|
function Ta(h) {
|
|
491
491
|
if (jt.call(h, "ref")) {
|
|
492
|
-
var
|
|
493
|
-
if (
|
|
492
|
+
var _ = Object.getOwnPropertyDescriptor(h, "ref").get;
|
|
493
|
+
if (_ && _.isReactWarning)
|
|
494
494
|
return !1;
|
|
495
495
|
}
|
|
496
496
|
return h.ref !== void 0;
|
|
497
497
|
}
|
|
498
498
|
function La(h) {
|
|
499
499
|
if (jt.call(h, "key")) {
|
|
500
|
-
var
|
|
501
|
-
if (
|
|
500
|
+
var _ = Object.getOwnPropertyDescriptor(h, "key").get;
|
|
501
|
+
if (_ && _.isReactWarning)
|
|
502
502
|
return !1;
|
|
503
503
|
}
|
|
504
504
|
return h.key !== void 0;
|
|
505
505
|
}
|
|
506
|
-
function Na(h,
|
|
507
|
-
if (typeof h.ref == "string" && Ct.current &&
|
|
506
|
+
function Na(h, _) {
|
|
507
|
+
if (typeof h.ref == "string" && Ct.current && _ && Ct.current.stateNode !== _) {
|
|
508
508
|
var V = be(Ct.current.type);
|
|
509
509
|
wn[V] || (F('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', be(Ct.current.type), h.ref), wn[V] = !0);
|
|
510
510
|
}
|
|
511
511
|
}
|
|
512
|
-
function qa(h,
|
|
512
|
+
function qa(h, _) {
|
|
513
513
|
{
|
|
514
514
|
var V = function() {
|
|
515
|
-
Qr || (Qr = !0, F("%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)",
|
|
515
|
+
Qr || (Qr = !0, F("%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)", _));
|
|
516
516
|
};
|
|
517
517
|
V.isReactWarning = !0, Object.defineProperty(h, "key", {
|
|
518
518
|
get: V,
|
|
@@ -520,10 +520,10 @@ function nl() {
|
|
|
520
520
|
});
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
|
-
function ja(h,
|
|
523
|
+
function ja(h, _) {
|
|
524
524
|
{
|
|
525
525
|
var V = function() {
|
|
526
|
-
Jr || (Jr = !0, F("%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)",
|
|
526
|
+
Jr || (Jr = !0, F("%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)", _));
|
|
527
527
|
};
|
|
528
528
|
V.isReactWarning = !0, Object.defineProperty(h, "ref", {
|
|
529
529
|
get: V,
|
|
@@ -531,11 +531,11 @@ function nl() {
|
|
|
531
531
|
});
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
|
-
var Ga = function(h,
|
|
534
|
+
var Ga = function(h, _, V, O, W, J, H) {
|
|
535
535
|
var j = {
|
|
536
536
|
$$typeof: t,
|
|
537
537
|
type: h,
|
|
538
|
-
key:
|
|
538
|
+
key: _,
|
|
539
539
|
ref: V,
|
|
540
540
|
props: H,
|
|
541
541
|
_owner: J
|
|
@@ -557,12 +557,12 @@ function nl() {
|
|
|
557
557
|
value: W
|
|
558
558
|
}), Object.freeze && (Object.freeze(j.props), Object.freeze(j)), j;
|
|
559
559
|
};
|
|
560
|
-
function Ba(h,
|
|
560
|
+
function Ba(h, _, V, O, W) {
|
|
561
561
|
{
|
|
562
562
|
var J, H = {}, j = null, fe = null;
|
|
563
|
-
V !== void 0 && (Yr(V), j = "" + V), La(
|
|
564
|
-
for (J in
|
|
565
|
-
jt.call(
|
|
563
|
+
V !== void 0 && (Yr(V), j = "" + V), La(_) && (Yr(_.key), j = "" + _.key), Ta(_) && (fe = _.ref, Na(_, W));
|
|
564
|
+
for (J in _)
|
|
565
|
+
jt.call(_, J) && !Pa.hasOwnProperty(J) && (H[J] = _[J]);
|
|
566
566
|
if (h && h.defaultProps) {
|
|
567
567
|
var oe = h.defaultProps;
|
|
568
568
|
for (J in oe)
|
|
@@ -578,7 +578,7 @@ function nl() {
|
|
|
578
578
|
var Sn = M.ReactCurrentOwner, Xr = M.ReactDebugCurrentFrame;
|
|
579
579
|
function ut(h) {
|
|
580
580
|
if (h) {
|
|
581
|
-
var
|
|
581
|
+
var _ = h._owner, V = qt(h.type, h._source, _ ? _.type : null);
|
|
582
582
|
Xr.setExtraStackFrame(V);
|
|
583
583
|
} else
|
|
584
584
|
Xr.setExtraStackFrame(null);
|
|
@@ -603,10 +603,10 @@ Check the render method of \`` + h + "`.";
|
|
|
603
603
|
function Ha(h) {
|
|
604
604
|
{
|
|
605
605
|
if (h !== void 0) {
|
|
606
|
-
var
|
|
606
|
+
var _ = h.fileName.replace(/^.*[\\\/]/, ""), V = h.lineNumber;
|
|
607
607
|
return `
|
|
608
608
|
|
|
609
|
-
Check your code at ` +
|
|
609
|
+
Check your code at ` + _ + ":" + V + ".";
|
|
610
610
|
}
|
|
611
611
|
return "";
|
|
612
612
|
}
|
|
@@ -614,22 +614,22 @@ Check your code at ` + S + ":" + V + ".";
|
|
|
614
614
|
var Zr = {};
|
|
615
615
|
function Wa(h) {
|
|
616
616
|
{
|
|
617
|
-
var
|
|
618
|
-
if (!
|
|
617
|
+
var _ = Kr();
|
|
618
|
+
if (!_) {
|
|
619
619
|
var V = typeof h == "string" ? h : h.displayName || h.name;
|
|
620
|
-
V && (
|
|
620
|
+
V && (_ = `
|
|
621
621
|
|
|
622
622
|
Check the top-level render call using <` + V + ">.");
|
|
623
623
|
}
|
|
624
|
-
return
|
|
624
|
+
return _;
|
|
625
625
|
}
|
|
626
626
|
}
|
|
627
|
-
function eo(h,
|
|
627
|
+
function eo(h, _) {
|
|
628
628
|
{
|
|
629
629
|
if (!h._store || h._store.validated || h.key != null)
|
|
630
630
|
return;
|
|
631
631
|
h._store.validated = !0;
|
|
632
|
-
var V = Wa(
|
|
632
|
+
var V = Wa(_);
|
|
633
633
|
if (Zr[V])
|
|
634
634
|
return;
|
|
635
635
|
Zr[V] = !0;
|
|
@@ -637,52 +637,52 @@ Check the top-level render call using <` + V + ">.");
|
|
|
637
637
|
h && h._owner && h._owner !== Sn.current && (O = " It was passed a child from " + be(h._owner.type) + "."), ut(h), F('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', V, O), ut(null);
|
|
638
638
|
}
|
|
639
639
|
}
|
|
640
|
-
function to(h,
|
|
640
|
+
function to(h, _) {
|
|
641
641
|
{
|
|
642
642
|
if (typeof h != "object")
|
|
643
643
|
return;
|
|
644
644
|
if (Cn(h))
|
|
645
645
|
for (var V = 0; V < h.length; V++) {
|
|
646
646
|
var O = h[V];
|
|
647
|
-
Rn(O) && eo(O,
|
|
647
|
+
Rn(O) && eo(O, _);
|
|
648
648
|
}
|
|
649
649
|
else if (Rn(h))
|
|
650
650
|
h._store && (h._store.validated = !0);
|
|
651
651
|
else if (h) {
|
|
652
|
-
var W =
|
|
652
|
+
var W = S(h);
|
|
653
653
|
if (typeof W == "function" && W !== h.entries)
|
|
654
654
|
for (var J = W.call(h), H; !(H = J.next()).done; )
|
|
655
|
-
Rn(H.value) && eo(H.value,
|
|
655
|
+
Rn(H.value) && eo(H.value, _);
|
|
656
656
|
}
|
|
657
657
|
}
|
|
658
658
|
}
|
|
659
659
|
function Ua(h) {
|
|
660
660
|
{
|
|
661
|
-
var
|
|
662
|
-
if (
|
|
661
|
+
var _ = h.type;
|
|
662
|
+
if (_ == null || typeof _ == "string")
|
|
663
663
|
return;
|
|
664
664
|
var V;
|
|
665
|
-
if (typeof
|
|
666
|
-
V =
|
|
667
|
-
else if (typeof
|
|
668
|
-
V =
|
|
665
|
+
if (typeof _ == "function")
|
|
666
|
+
V = _.propTypes;
|
|
667
|
+
else if (typeof _ == "object" && (_.$$typeof === c || _.$$typeof === f))
|
|
668
|
+
V = _.propTypes;
|
|
669
669
|
else
|
|
670
670
|
return;
|
|
671
671
|
if (V) {
|
|
672
|
-
var O = be(
|
|
672
|
+
var O = be(_);
|
|
673
673
|
Ea(V, h.props, "prop", O, h);
|
|
674
|
-
} else if (
|
|
674
|
+
} else if (_.PropTypes !== void 0 && !_n) {
|
|
675
675
|
_n = !0;
|
|
676
|
-
var W = be(
|
|
676
|
+
var W = be(_);
|
|
677
677
|
F("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", W || "Unknown");
|
|
678
678
|
}
|
|
679
|
-
typeof
|
|
679
|
+
typeof _.getDefaultProps == "function" && !_.getDefaultProps.isReactClassApproved && F("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
680
680
|
}
|
|
681
681
|
}
|
|
682
682
|
function Ya(h) {
|
|
683
683
|
{
|
|
684
|
-
for (var
|
|
685
|
-
var O =
|
|
684
|
+
for (var _ = Object.keys(h.props), V = 0; V < _.length; V++) {
|
|
685
|
+
var O = _[V];
|
|
686
686
|
if (O !== "children" && O !== "key") {
|
|
687
687
|
ut(h), F("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", O), ut(null);
|
|
688
688
|
break;
|
|
@@ -691,7 +691,7 @@ Check the top-level render call using <` + V + ">.");
|
|
|
691
691
|
h.ref !== null && (ut(h), F("Invalid attribute `ref` supplied to `React.Fragment`."), ut(null));
|
|
692
692
|
}
|
|
693
693
|
}
|
|
694
|
-
function no(h,
|
|
694
|
+
function no(h, _, V, O, W, J) {
|
|
695
695
|
{
|
|
696
696
|
var H = Me(h);
|
|
697
697
|
if (!H) {
|
|
@@ -702,11 +702,11 @@ Check the top-level render call using <` + V + ">.");
|
|
|
702
702
|
var oe;
|
|
703
703
|
h === null ? oe = "null" : Cn(h) ? oe = "array" : h !== void 0 && h.$$typeof === t ? (oe = "<" + (be(h.type) || "Unknown") + " />", j = " Did you accidentally export a JSX literal instead of a component?") : oe = typeof h, F("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", oe, j);
|
|
704
704
|
}
|
|
705
|
-
var ae = Ba(h,
|
|
705
|
+
var ae = Ba(h, _, V, W, J);
|
|
706
706
|
if (ae == null)
|
|
707
707
|
return ae;
|
|
708
708
|
if (H) {
|
|
709
|
-
var _e =
|
|
709
|
+
var _e = _.children;
|
|
710
710
|
if (_e !== void 0)
|
|
711
711
|
if (O)
|
|
712
712
|
if (Cn(_e)) {
|
|
@@ -721,11 +721,11 @@ Check the top-level render call using <` + V + ">.");
|
|
|
721
721
|
return h === r ? Ya(ae) : Ua(ae), ae;
|
|
722
722
|
}
|
|
723
723
|
}
|
|
724
|
-
function Qa(h,
|
|
725
|
-
return no(h,
|
|
724
|
+
function Qa(h, _, V) {
|
|
725
|
+
return no(h, _, V, !0);
|
|
726
726
|
}
|
|
727
|
-
function Ja(h,
|
|
728
|
-
return no(h,
|
|
727
|
+
function Ja(h, _, V) {
|
|
728
|
+
return no(h, _, V, !1);
|
|
729
729
|
}
|
|
730
730
|
var Xa = Ja, Ka = Qa;
|
|
731
731
|
_t.Fragment = r, _t.jsx = Xa, _t.jsxs = Ka;
|
|
@@ -734,28 +734,28 @@ Check the top-level render call using <` + V + ">.");
|
|
|
734
734
|
(function(e) {
|
|
735
735
|
process.env.NODE_ENV === "production" ? e.exports = tl() : e.exports = nl();
|
|
736
736
|
})(cn);
|
|
737
|
-
const
|
|
737
|
+
const re = cn.exports.Fragment, i = cn.exports.jsx, d = cn.exports.jsxs, Tn = Fo(null);
|
|
738
738
|
function ir(e) {
|
|
739
|
-
const t =
|
|
739
|
+
const t = w.useContext(Tn), n = et(() => e.configure(t || new or()), [e.configure]), r = ls(n);
|
|
740
740
|
return r && r !== n && r.dispose(), /* @__PURE__ */ i(Tn.Provider, {
|
|
741
741
|
value: n,
|
|
742
742
|
children: e.children
|
|
743
743
|
});
|
|
744
744
|
}
|
|
745
745
|
function ai() {
|
|
746
|
-
return
|
|
746
|
+
return w.useContext(Tn);
|
|
747
747
|
}
|
|
748
748
|
const rl = {
|
|
749
749
|
viewPanelInFullScreen: X.noop,
|
|
750
750
|
inFullScreen: !1
|
|
751
|
-
}, ar =
|
|
751
|
+
}, ar = w.createContext(rl), si = w.createContext(null), li = si.Provider;
|
|
752
752
|
function K() {
|
|
753
|
-
const e =
|
|
753
|
+
const e = w.useContext(si);
|
|
754
754
|
if (!e)
|
|
755
755
|
throw new Error("Please use ModelContextProvider");
|
|
756
756
|
return e;
|
|
757
757
|
}
|
|
758
|
-
class ht extends
|
|
758
|
+
class ht extends w.Component {
|
|
759
759
|
constructor(t) {
|
|
760
760
|
super(t), this.state = {
|
|
761
761
|
error: null
|
|
@@ -851,13 +851,13 @@ const ci = I(({
|
|
|
851
851
|
freezeLayout: X.noop,
|
|
852
852
|
inEditMode: !1,
|
|
853
853
|
inUseMode: !0
|
|
854
|
-
}, Ne =
|
|
854
|
+
}, Ne = w.createContext(il), ui = w.createContext({
|
|
855
855
|
panel: null,
|
|
856
856
|
data: [],
|
|
857
857
|
loading: !1
|
|
858
858
|
}), al = ui.Provider;
|
|
859
859
|
function me() {
|
|
860
|
-
const e =
|
|
860
|
+
const e = w.useContext(ui);
|
|
861
861
|
if (!e.panel)
|
|
862
862
|
throw new Error("Please use PanelContextProvider");
|
|
863
863
|
return e;
|
|
@@ -1126,7 +1126,7 @@ const hl = I(({
|
|
|
1126
1126
|
default:
|
|
1127
1127
|
return null;
|
|
1128
1128
|
}
|
|
1129
|
-
}), pi = I(
|
|
1129
|
+
}), pi = I(w.forwardRef(({
|
|
1130
1130
|
filter: e,
|
|
1131
1131
|
...t
|
|
1132
1132
|
}, n) => /* @__PURE__ */ i("div", {
|
|
@@ -1251,11 +1251,11 @@ var un = { exports: {} };
|
|
|
1251
1251
|
return r(g, u, f);
|
|
1252
1252
|
var m = g.type === "application/octet-stream", b = /constructor/i.test(s.HTMLElement) || s.safari, v = /CriOS\/[\d]+/.test(navigator.userAgent);
|
|
1253
1253
|
if ((v || m && b || l) && typeof FileReader < "u") {
|
|
1254
|
-
var
|
|
1255
|
-
|
|
1256
|
-
var z =
|
|
1254
|
+
var S = new FileReader();
|
|
1255
|
+
S.onloadend = function() {
|
|
1256
|
+
var z = S.result;
|
|
1257
1257
|
z = v ? z : z.replace(/^data:[^;]*;/, "data:attachment/file;"), p ? p.location.href = z : location = z, p = null;
|
|
1258
|
-
},
|
|
1258
|
+
}, S.readAsDataURL(g);
|
|
1259
1259
|
} else {
|
|
1260
1260
|
var M = s.URL || s.webkitURL, F = M.createObjectURL(g);
|
|
1261
1261
|
p ? p.location = F : location.href = F, p = null, setTimeout(function() {
|
|
@@ -1318,7 +1318,7 @@ WHERE
|
|
|
1318
1318
|
};
|
|
1319
1319
|
return t && (s.sql_snippets = r.sqlSnippets.record), JSON.stringify(s, null, 2);
|
|
1320
1320
|
})();
|
|
1321
|
-
return /* @__PURE__ */ d(
|
|
1321
|
+
return /* @__PURE__ */ d(R, {
|
|
1322
1322
|
sx: {
|
|
1323
1323
|
border: "1px solid #eee",
|
|
1324
1324
|
maxWidth: "40%",
|
|
@@ -1338,7 +1338,7 @@ WHERE
|
|
|
1338
1338
|
weight: 500,
|
|
1339
1339
|
children: "Global Variables"
|
|
1340
1340
|
})
|
|
1341
|
-
}), /* @__PURE__ */ d(
|
|
1341
|
+
}), /* @__PURE__ */ d(R, {
|
|
1342
1342
|
px: "md",
|
|
1343
1343
|
pb: "md",
|
|
1344
1344
|
sx: {
|
|
@@ -1387,7 +1387,7 @@ WHERE
|
|
|
1387
1387
|
return !1;
|
|
1388
1388
|
}
|
|
1389
1389
|
}, [n, t.mock_context.current]);
|
|
1390
|
-
return /* @__PURE__ */ d(
|
|
1390
|
+
return /* @__PURE__ */ d(R, {
|
|
1391
1391
|
sx: {
|
|
1392
1392
|
border: "1px solid #eee",
|
|
1393
1393
|
flexGrow: 1,
|
|
@@ -1415,7 +1415,7 @@ WHERE
|
|
|
1415
1415
|
flexGrow: 1,
|
|
1416
1416
|
position: "relative"
|
|
1417
1417
|
},
|
|
1418
|
-
children: [/* @__PURE__ */ d(
|
|
1418
|
+
children: [/* @__PURE__ */ d(R, {
|
|
1419
1419
|
spacing: 10,
|
|
1420
1420
|
sx: {
|
|
1421
1421
|
maxWidth: "unset !important"
|
|
@@ -1523,7 +1523,7 @@ const mi = I(function({
|
|
|
1523
1523
|
} = n.getDataStuffByID(t), a = o === "loading", s = () => {
|
|
1524
1524
|
n.queries.refetchDataByQueryID(t);
|
|
1525
1525
|
};
|
|
1526
|
-
return /* @__PURE__ */ d(
|
|
1526
|
+
return /* @__PURE__ */ d(R, {
|
|
1527
1527
|
my: "xl",
|
|
1528
1528
|
sx: {
|
|
1529
1529
|
border: "1px solid #eee"
|
|
@@ -1670,7 +1670,7 @@ const Fl = (e) => {
|
|
|
1670
1670
|
}, $l = I(Fl), bi = I(({
|
|
1671
1671
|
value: e
|
|
1672
1672
|
}) => {
|
|
1673
|
-
const t = K(), n = t.context.current, r =
|
|
1673
|
+
const t = K(), n = t.context.current, r = w.useMemo(() => di(e, n, t.mock_context.current, t.sqlSnippets.current, t.filters.values), [e, n, t.mock_context.current, t.sqlSnippets.current, t.filters.values]);
|
|
1674
1674
|
return /* @__PURE__ */ i(Te, {
|
|
1675
1675
|
language: "sql",
|
|
1676
1676
|
colorScheme: "light",
|
|
@@ -1680,12 +1680,12 @@ const Fl = (e) => {
|
|
|
1680
1680
|
queryModel: t,
|
|
1681
1681
|
setCurrentID: n
|
|
1682
1682
|
}) {
|
|
1683
|
-
const r =
|
|
1684
|
-
|
|
1683
|
+
const r = w.useRef(t.id), [o, a] = w.useState(r.current);
|
|
1684
|
+
w.useEffect(() => {
|
|
1685
1685
|
r.current !== t.id && (a(t.id), r.current = t.id);
|
|
1686
1686
|
}, [r, t.id]);
|
|
1687
|
-
const [s, l] =
|
|
1688
|
-
|
|
1687
|
+
const [s, l] = w.useState(t.sql);
|
|
1688
|
+
w.useEffect(() => {
|
|
1689
1689
|
l((f) => f !== t.sql ? t.sql : f);
|
|
1690
1690
|
}, [t.sql]);
|
|
1691
1691
|
const c = s !== t.sql, g = () => {
|
|
@@ -1693,7 +1693,7 @@ const Fl = (e) => {
|
|
|
1693
1693
|
}, u = () => {
|
|
1694
1694
|
n(o), t.setID(o);
|
|
1695
1695
|
};
|
|
1696
|
-
return /* @__PURE__ */ d(
|
|
1696
|
+
return /* @__PURE__ */ d(R, {
|
|
1697
1697
|
sx: {
|
|
1698
1698
|
border: "1px solid #eee",
|
|
1699
1699
|
flexGrow: 1
|
|
@@ -1712,7 +1712,7 @@ const Fl = (e) => {
|
|
|
1712
1712
|
}), /* @__PURE__ */ i($l, {
|
|
1713
1713
|
queryModel: t
|
|
1714
1714
|
})]
|
|
1715
|
-
}), /* @__PURE__ */ d(
|
|
1715
|
+
}), /* @__PURE__ */ d(R, {
|
|
1716
1716
|
my: 0,
|
|
1717
1717
|
p: "md",
|
|
1718
1718
|
pr: 40,
|
|
@@ -1807,7 +1807,7 @@ const Fl = (e) => {
|
|
|
1807
1807
|
id: t,
|
|
1808
1808
|
setID: n
|
|
1809
1809
|
}) {
|
|
1810
|
-
const r = K(), o =
|
|
1810
|
+
const r = K(), o = w.useMemo(() => r.queries.findByID(t), [r.queries, t]);
|
|
1811
1811
|
return t ? o ? /* @__PURE__ */ i(El, {
|
|
1812
1812
|
queryModel: o,
|
|
1813
1813
|
setCurrentID: n
|
|
@@ -1824,7 +1824,7 @@ const Ol = I(function({
|
|
|
1824
1824
|
var s;
|
|
1825
1825
|
n((s = r.queries.firstID) != null ? s : "");
|
|
1826
1826
|
};
|
|
1827
|
-
|
|
1827
|
+
w.useEffect(() => {
|
|
1828
1828
|
if (!t) {
|
|
1829
1829
|
o();
|
|
1830
1830
|
return;
|
|
@@ -1878,7 +1878,7 @@ const Ol = I(function({
|
|
|
1878
1878
|
})
|
|
1879
1879
|
});
|
|
1880
1880
|
}), zl = I(function() {
|
|
1881
|
-
const [t, n] =
|
|
1881
|
+
const [t, n] = w.useState("");
|
|
1882
1882
|
return /* @__PURE__ */ d(tn, {
|
|
1883
1883
|
sx: {
|
|
1884
1884
|
height: "90vh",
|
|
@@ -1899,7 +1899,7 @@ const Ol = I(function({
|
|
|
1899
1899
|
grow: !0,
|
|
1900
1900
|
align: "stretch",
|
|
1901
1901
|
noWrap: !0,
|
|
1902
|
-
children: [/* @__PURE__ */ d(
|
|
1902
|
+
children: [/* @__PURE__ */ d(R, {
|
|
1903
1903
|
sx: {
|
|
1904
1904
|
flexGrow: 1,
|
|
1905
1905
|
maxWidth: "calc(60% - 16px)"
|
|
@@ -1920,7 +1920,7 @@ const Ol = I(function({
|
|
|
1920
1920
|
value: e
|
|
1921
1921
|
}) => {
|
|
1922
1922
|
const t = K(), n = t.context.current, r = sl(e, n, t.mock_context.current, t.filters.values);
|
|
1923
|
-
return /* @__PURE__ */ d(
|
|
1923
|
+
return /* @__PURE__ */ d(R, {
|
|
1924
1924
|
children: [/* @__PURE__ */ i(x, {
|
|
1925
1925
|
children: "Preview"
|
|
1926
1926
|
}), /* @__PURE__ */ i(Te, {
|
|
@@ -1935,7 +1935,7 @@ const Ol = I(function({
|
|
|
1935
1935
|
key: Ie(),
|
|
1936
1936
|
value: ""
|
|
1937
1937
|
}));
|
|
1938
|
-
return /* @__PURE__ */ d(
|
|
1938
|
+
return /* @__PURE__ */ d(R, {
|
|
1939
1939
|
sx: {
|
|
1940
1940
|
border: "1px solid #eee",
|
|
1941
1941
|
flexGrow: 1
|
|
@@ -1957,12 +1957,12 @@ const Ol = I(function({
|
|
|
1957
1957
|
px: "md",
|
|
1958
1958
|
pb: "md",
|
|
1959
1959
|
pt: "md",
|
|
1960
|
-
children: /* @__PURE__ */ d(
|
|
1960
|
+
children: /* @__PURE__ */ d(R, {
|
|
1961
1961
|
sx: {
|
|
1962
1962
|
width: "100%",
|
|
1963
1963
|
position: "relative"
|
|
1964
1964
|
},
|
|
1965
|
-
children: [t.sqlSnippets.current.map((r, o) => /* @__PURE__ */ d(
|
|
1965
|
+
children: [t.sqlSnippets.current.map((r, o) => /* @__PURE__ */ d(R, {
|
|
1966
1966
|
my: 0,
|
|
1967
1967
|
p: "md",
|
|
1968
1968
|
pr: 40,
|
|
@@ -2052,8 +2052,8 @@ const Nl = I(function({
|
|
|
2052
2052
|
}) {
|
|
2053
2053
|
const {
|
|
2054
2054
|
freezeLayout: r
|
|
2055
|
-
} =
|
|
2056
|
-
return
|
|
2055
|
+
} = w.useContext(Ne);
|
|
2056
|
+
return w.useEffect(() => {
|
|
2057
2057
|
r(t);
|
|
2058
2058
|
}, [t]), /* @__PURE__ */ i(Le, {
|
|
2059
2059
|
size: "96vw",
|
|
@@ -2115,7 +2115,7 @@ const yi = C.model({
|
|
|
2115
2115
|
}), ql = I(function({
|
|
2116
2116
|
config: t
|
|
2117
2117
|
}) {
|
|
2118
|
-
return /* @__PURE__ */ i(
|
|
2118
|
+
return /* @__PURE__ */ i(re, {
|
|
2119
2119
|
children: /* @__PURE__ */ i(ft, {
|
|
2120
2120
|
checked: t.default_value,
|
|
2121
2121
|
onChange: (n) => t.setDefaultValue(n.currentTarget.checked),
|
|
@@ -2140,7 +2140,7 @@ const yi = C.model({
|
|
|
2140
2140
|
}], Gl = I(function({
|
|
2141
2141
|
config: t
|
|
2142
2142
|
}) {
|
|
2143
|
-
return /* @__PURE__ */ d(
|
|
2143
|
+
return /* @__PURE__ */ d(re, {
|
|
2144
2144
|
children: [/* @__PURE__ */ d(y, {
|
|
2145
2145
|
children: [/* @__PURE__ */ i(ft, {
|
|
2146
2146
|
checked: t.required,
|
|
@@ -2221,7 +2221,7 @@ const Hl = I(function({
|
|
|
2221
2221
|
} = ct(ul(t), {
|
|
2222
2222
|
refreshDeps: [t]
|
|
2223
2223
|
});
|
|
2224
|
-
return /* @__PURE__ */ d(
|
|
2224
|
+
return /* @__PURE__ */ d(R, {
|
|
2225
2225
|
my: 0,
|
|
2226
2226
|
children: [/* @__PURE__ */ d(y, {
|
|
2227
2227
|
position: "apart",
|
|
@@ -2251,7 +2251,7 @@ const Hl = I(function({
|
|
|
2251
2251
|
value: t,
|
|
2252
2252
|
onChange: n
|
|
2253
2253
|
}) {
|
|
2254
|
-
return /* @__PURE__ */ d(
|
|
2254
|
+
return /* @__PURE__ */ d(R, {
|
|
2255
2255
|
my: 0,
|
|
2256
2256
|
children: [/* @__PURE__ */ i(vi, {
|
|
2257
2257
|
value: t,
|
|
@@ -2319,8 +2319,8 @@ const Hl = I(function({
|
|
|
2319
2319
|
value: ""
|
|
2320
2320
|
});
|
|
2321
2321
|
}, r = t.static_options, o = [...r];
|
|
2322
|
-
return /* @__PURE__ */ d(
|
|
2323
|
-
children: [/* @__PURE__ */ i(
|
|
2322
|
+
return /* @__PURE__ */ d(re, {
|
|
2323
|
+
children: [/* @__PURE__ */ i(te, {
|
|
2324
2324
|
label: "Configure options",
|
|
2325
2325
|
labelPosition: "center"
|
|
2326
2326
|
}), r.length > 0 && /* @__PURE__ */ i(Jn, {
|
|
@@ -2378,7 +2378,7 @@ const Hl = I(function({
|
|
|
2378
2378
|
},
|
|
2379
2379
|
mx: "auto",
|
|
2380
2380
|
children: "Add an Option"
|
|
2381
|
-
}), /* @__PURE__ */ i(
|
|
2381
|
+
}), /* @__PURE__ */ i(te, {
|
|
2382
2382
|
label: "Or fetch options from database",
|
|
2383
2383
|
labelPosition: "center"
|
|
2384
2384
|
}), /* @__PURE__ */ i(wi, {
|
|
@@ -2398,12 +2398,12 @@ const Hl = I(function({
|
|
|
2398
2398
|
label: "No default selection",
|
|
2399
2399
|
value: ""
|
|
2400
2400
|
}, ...r];
|
|
2401
|
-
return /* @__PURE__ */ d(
|
|
2401
|
+
return /* @__PURE__ */ d(re, {
|
|
2402
2402
|
children: [/* @__PURE__ */ i(ft, {
|
|
2403
2403
|
checked: t.required,
|
|
2404
2404
|
onChange: (a) => t.setRequired(a.currentTarget.checked),
|
|
2405
2405
|
label: "Required"
|
|
2406
|
-
}), /* @__PURE__ */ i(
|
|
2406
|
+
}), /* @__PURE__ */ i(te, {
|
|
2407
2407
|
label: "Configure options",
|
|
2408
2408
|
labelPosition: "center"
|
|
2409
2409
|
}), r.length > 0 && /* @__PURE__ */ i(L, {
|
|
@@ -2461,7 +2461,7 @@ const Hl = I(function({
|
|
|
2461
2461
|
},
|
|
2462
2462
|
mx: "auto",
|
|
2463
2463
|
children: "Add an Option"
|
|
2464
|
-
}), /* @__PURE__ */ i(
|
|
2464
|
+
}), /* @__PURE__ */ i(te, {
|
|
2465
2465
|
label: "Or fetch options from database",
|
|
2466
2466
|
labelPosition: "center"
|
|
2467
2467
|
}), /* @__PURE__ */ i(wi, {
|
|
@@ -2472,7 +2472,7 @@ const Hl = I(function({
|
|
|
2472
2472
|
}), Yl = I(function({
|
|
2473
2473
|
config: t
|
|
2474
2474
|
}) {
|
|
2475
|
-
return /* @__PURE__ */ d(
|
|
2475
|
+
return /* @__PURE__ */ d(re, {
|
|
2476
2476
|
children: [/* @__PURE__ */ i(E, {
|
|
2477
2477
|
label: "Default Value",
|
|
2478
2478
|
value: t.default_value,
|
|
@@ -2488,8 +2488,8 @@ const Hl = I(function({
|
|
|
2488
2488
|
}), Ql = I(function({
|
|
2489
2489
|
filter: t
|
|
2490
2490
|
}) {
|
|
2491
|
-
const n = t.plainDefaultValue, [r, o] =
|
|
2492
|
-
return
|
|
2491
|
+
const n = t.plainDefaultValue, [r, o] = w.useState(n);
|
|
2492
|
+
return w.useEffect(() => {
|
|
2493
2493
|
o(n);
|
|
2494
2494
|
}, [n]), /* @__PURE__ */ d(q, {
|
|
2495
2495
|
sx: {
|
|
@@ -2540,7 +2540,7 @@ const Hl = I(function({
|
|
|
2540
2540
|
filter: t,
|
|
2541
2541
|
index: n
|
|
2542
2542
|
}) {
|
|
2543
|
-
const r = K(), o =
|
|
2543
|
+
const r = K(), o = w.useMemo(() => Jl[t.type], [t.type]);
|
|
2544
2544
|
return /* @__PURE__ */ d(ts, {
|
|
2545
2545
|
cols: 2,
|
|
2546
2546
|
children: [/* @__PURE__ */ d(q, {
|
|
@@ -2549,7 +2549,7 @@ const Hl = I(function({
|
|
|
2549
2549
|
pb: "md",
|
|
2550
2550
|
color: "gray",
|
|
2551
2551
|
children: "Edit"
|
|
2552
|
-
}), /* @__PURE__ */ d(
|
|
2552
|
+
}), /* @__PURE__ */ d(R, {
|
|
2553
2553
|
sx: {
|
|
2554
2554
|
maxWidth: "30em"
|
|
2555
2555
|
},
|
|
@@ -2644,7 +2644,7 @@ const Zl = I(function() {
|
|
|
2644
2644
|
sx: {
|
|
2645
2645
|
height: "100%"
|
|
2646
2646
|
},
|
|
2647
|
-
children: [/* @__PURE__ */ d(
|
|
2647
|
+
children: [/* @__PURE__ */ d(R, {
|
|
2648
2648
|
sx: {
|
|
2649
2649
|
height: "100%"
|
|
2650
2650
|
},
|
|
@@ -2681,7 +2681,7 @@ const Zl = I(function() {
|
|
|
2681
2681
|
sx: {
|
|
2682
2682
|
height: "100%"
|
|
2683
2683
|
},
|
|
2684
|
-
children: /* @__PURE__ */ d(
|
|
2684
|
+
children: /* @__PURE__ */ d(R, {
|
|
2685
2685
|
sx: {
|
|
2686
2686
|
height: "100%"
|
|
2687
2687
|
},
|
|
@@ -2721,8 +2721,8 @@ const Zl = I(function() {
|
|
|
2721
2721
|
}) {
|
|
2722
2722
|
const {
|
|
2723
2723
|
freezeLayout: r
|
|
2724
|
-
} =
|
|
2725
|
-
return
|
|
2724
|
+
} = w.useContext(Ne);
|
|
2725
|
+
return w.useEffect(() => {
|
|
2726
2726
|
r(t);
|
|
2727
2727
|
}, [t]), /* @__PURE__ */ i(Le, {
|
|
2728
2728
|
size: "96vw",
|
|
@@ -2741,8 +2741,8 @@ const Zl = I(function() {
|
|
|
2741
2741
|
var tc = /* @__PURE__ */ ((e) => (e.Use = "use", e.Edit = "edit", e))(tc || {}), $e = /* @__PURE__ */ ((e) => (e.Division = "div", e.Modal = "modal", e))($e || {}), nc = /* @__PURE__ */ ((e) => (e.Select = "select", e.MultiSelect = "multi-select", e.TextInput = "text-input", e.Checkbox = "checkbox", e.DateRange = "date-range", e))(nc || {});
|
|
2742
2742
|
const rc = I(() => {
|
|
2743
2743
|
const t = K().views.VIE;
|
|
2744
|
-
return !t || t.type !== $e.Division ? null : /* @__PURE__ */ d(
|
|
2745
|
-
children: [/* @__PURE__ */ i(
|
|
2744
|
+
return !t || t.type !== $e.Division ? null : /* @__PURE__ */ d(R, {
|
|
2745
|
+
children: [/* @__PURE__ */ i(te, {
|
|
2746
2746
|
mt: 8,
|
|
2747
2747
|
mb: 0,
|
|
2748
2748
|
label: "Division settings",
|
|
@@ -2756,8 +2756,8 @@ const rc = I(() => {
|
|
|
2756
2756
|
});
|
|
2757
2757
|
}), oc = I(() => {
|
|
2758
2758
|
const t = K().views.VIE;
|
|
2759
|
-
return !t || t.type !== $e.Modal ? null : /* @__PURE__ */ d(
|
|
2760
|
-
children: [/* @__PURE__ */ i(
|
|
2759
|
+
return !t || t.type !== $e.Modal ? null : /* @__PURE__ */ d(R, {
|
|
2760
|
+
children: [/* @__PURE__ */ i(te, {
|
|
2761
2761
|
mt: 8,
|
|
2762
2762
|
label: "Modal settings",
|
|
2763
2763
|
labelPosition: "center"
|
|
@@ -2776,7 +2776,7 @@ const rc = I(() => {
|
|
|
2776
2776
|
})]
|
|
2777
2777
|
})]
|
|
2778
2778
|
});
|
|
2779
|
-
}), ic = I(() => /* @__PURE__ */ d(
|
|
2779
|
+
}), ic = I(() => /* @__PURE__ */ d(re, {
|
|
2780
2780
|
children: [/* @__PURE__ */ i(rc, {}), /* @__PURE__ */ i(oc, {})]
|
|
2781
2781
|
})), ac = [{
|
|
2782
2782
|
label: "Division",
|
|
@@ -2786,7 +2786,7 @@ const rc = I(() => {
|
|
|
2786
2786
|
value: $e.Modal
|
|
2787
2787
|
}], sc = I(() => {
|
|
2788
2788
|
const t = K().views.VIE;
|
|
2789
|
-
return t ? /* @__PURE__ */ d(
|
|
2789
|
+
return t ? /* @__PURE__ */ d(R, {
|
|
2790
2790
|
sx: {
|
|
2791
2791
|
position: "relative"
|
|
2792
2792
|
},
|
|
@@ -2810,8 +2810,8 @@ const rc = I(() => {
|
|
|
2810
2810
|
var o;
|
|
2811
2811
|
const n = K(), {
|
|
2812
2812
|
freezeLayout: r
|
|
2813
|
-
} =
|
|
2814
|
-
return
|
|
2813
|
+
} = w.useContext(Ne);
|
|
2814
|
+
return w.useEffect(() => {
|
|
2815
2815
|
r(e);
|
|
2816
2816
|
}, [e]), /* @__PURE__ */ i(Le, {
|
|
2817
2817
|
size: "500px",
|
|
@@ -2944,7 +2944,7 @@ const rc = I(() => {
|
|
|
2944
2944
|
}, o = () => {
|
|
2945
2945
|
n(!1);
|
|
2946
2946
|
};
|
|
2947
|
-
return /* @__PURE__ */ d(
|
|
2947
|
+
return /* @__PURE__ */ d(re, {
|
|
2948
2948
|
children: [/* @__PURE__ */ i(uc, {
|
|
2949
2949
|
value: e.views.idOfVIE,
|
|
2950
2950
|
onChange: e.views.setIDOfVIE,
|
|
@@ -2972,7 +2972,7 @@ const rc = I(() => {
|
|
|
2972
2972
|
}, Si = I(function({
|
|
2973
2973
|
saveChanges: t
|
|
2974
2974
|
}) {
|
|
2975
|
-
const n = K(), r =
|
|
2975
|
+
const n = K(), r = w.useCallback(() => {
|
|
2976
2976
|
const M = n.queries.current, F = n.views.current, z = n.sqlSnippets.current, N = n.filters.current, Y = n.mock_context.current;
|
|
2977
2977
|
return {
|
|
2978
2978
|
filters: N,
|
|
@@ -2988,7 +2988,7 @@ const rc = I(() => {
|
|
|
2988
2988
|
}, a = n.changed, {
|
|
2989
2989
|
inEditMode: s,
|
|
2990
2990
|
inUseMode: l
|
|
2991
|
-
} =
|
|
2991
|
+
} = w.useContext(Ne), [c, g] = w.useState(!1), u = () => g(!0), f = () => g(!1), [p, m] = w.useState(!1), b = () => m(!0), v = () => m(!1), S = () => {
|
|
2992
2992
|
const M = JSON.stringify(r(), null, 2);
|
|
2993
2993
|
vl(n.name, M);
|
|
2994
2994
|
};
|
|
@@ -3007,7 +3007,7 @@ const rc = I(() => {
|
|
|
3007
3007
|
minWidth: "40px"
|
|
3008
3008
|
}
|
|
3009
3009
|
},
|
|
3010
|
-
children: [s && /* @__PURE__ */ d(
|
|
3010
|
+
children: [s && /* @__PURE__ */ d(re, {
|
|
3011
3011
|
children: [/* @__PURE__ */ i(B, {
|
|
3012
3012
|
variant: "filled",
|
|
3013
3013
|
size: "xs",
|
|
@@ -3092,7 +3092,7 @@ const rc = I(() => {
|
|
|
3092
3092
|
icon: /* @__PURE__ */ i(Is, {
|
|
3093
3093
|
size: 14
|
|
3094
3094
|
}),
|
|
3095
|
-
onClick:
|
|
3095
|
+
onClick: S,
|
|
3096
3096
|
children: "Download Schema"
|
|
3097
3097
|
})]
|
|
3098
3098
|
})]
|
|
@@ -3109,12 +3109,12 @@ const rc = I(() => {
|
|
|
3109
3109
|
const _i = I(() => {
|
|
3110
3110
|
const {
|
|
3111
3111
|
freezeLayout: e
|
|
3112
|
-
} =
|
|
3112
|
+
} = w.useContext(Ne), [t, n] = w.useState(!1), {
|
|
3113
3113
|
panel: r
|
|
3114
3114
|
} = me();
|
|
3115
|
-
return
|
|
3115
|
+
return w.useEffect(() => {
|
|
3116
3116
|
e(t);
|
|
3117
|
-
}, [t]), !r.description || r.description === "<p><br></p>" ? null : /* @__PURE__ */ d(
|
|
3117
|
+
}, [t]), !r.description || r.description === "<p><br></p>" ? null : /* @__PURE__ */ d(re, {
|
|
3118
3118
|
children: [/* @__PURE__ */ i(Le, {
|
|
3119
3119
|
opened: t,
|
|
3120
3120
|
onClose: () => n(!1),
|
|
@@ -3164,7 +3164,7 @@ const _i = I(() => {
|
|
|
3164
3164
|
color: "dimmed",
|
|
3165
3165
|
mb: "sm",
|
|
3166
3166
|
children: t
|
|
3167
|
-
}), /* @__PURE__ */ i(
|
|
3167
|
+
}), /* @__PURE__ */ i(R, {
|
|
3168
3168
|
style: {
|
|
3169
3169
|
maxHeight: "300px"
|
|
3170
3170
|
},
|
|
@@ -3258,7 +3258,7 @@ const vc = I((e) => {
|
|
|
3258
3258
|
} = e, c = et(() => new gc(o, s), [o, s]);
|
|
3259
3259
|
return Ot(async () => {
|
|
3260
3260
|
await c.configOperation(a, l);
|
|
3261
|
-
}, [a, c]), pc(c) ? /* @__PURE__ */ d(
|
|
3261
|
+
}, [a, c]), pc(c) ? /* @__PURE__ */ d(re, {
|
|
3262
3262
|
children: [/* @__PURE__ */ i(fc, {
|
|
3263
3263
|
model: c,
|
|
3264
3264
|
onClick: n
|
|
@@ -3267,7 +3267,7 @@ const vc = I((e) => {
|
|
|
3267
3267
|
onClose: r,
|
|
3268
3268
|
title: "Operation Settings",
|
|
3269
3269
|
closeButtonLabel: "close",
|
|
3270
|
-
children: /* @__PURE__ */ d(
|
|
3270
|
+
children: /* @__PURE__ */ d(R, {
|
|
3271
3271
|
children: [/* @__PURE__ */ i(mc, {
|
|
3272
3272
|
model: c
|
|
3273
3273
|
}), /* @__PURE__ */ i(hc, {
|
|
@@ -3354,13 +3354,13 @@ const Cc = I(({
|
|
|
3354
3354
|
setTrue: n,
|
|
3355
3355
|
setFalse: r
|
|
3356
3356
|
}] = At(!1), o = e.model;
|
|
3357
|
-
return /* @__PURE__ */ d(
|
|
3357
|
+
return /* @__PURE__ */ d(re, {
|
|
3358
3358
|
children: [/* @__PURE__ */ i(Le, {
|
|
3359
3359
|
opened: t,
|
|
3360
3360
|
onClose: r,
|
|
3361
3361
|
title: "Setup Trigger",
|
|
3362
3362
|
closeButtonLabel: "close setup",
|
|
3363
|
-
children: /* @__PURE__ */ d(
|
|
3363
|
+
children: /* @__PURE__ */ d(R, {
|
|
3364
3364
|
children: [/* @__PURE__ */ i(wc, {
|
|
3365
3365
|
model: o
|
|
3366
3366
|
}), /* @__PURE__ */ i(Sc, {
|
|
@@ -3614,7 +3614,7 @@ const Ic = (e) => {
|
|
|
3614
3614
|
getColor: dn(["#fff7f1", "darkorange", "#b60000"]),
|
|
3615
3615
|
name: "orange",
|
|
3616
3616
|
category: "sequential"
|
|
3617
|
-
}, Oc = "5.8.
|
|
3617
|
+
}, Oc = "5.8.2";
|
|
3618
3618
|
class zc {
|
|
3619
3619
|
constructor(t) {
|
|
3620
3620
|
$(this, "staticColors", /* @__PURE__ */ new Map());
|
|
@@ -3824,7 +3824,7 @@ function Nc({
|
|
|
3824
3824
|
sx: s,
|
|
3825
3825
|
...l
|
|
3826
3826
|
}, c) {
|
|
3827
|
-
const g =
|
|
3827
|
+
const g = w.useMemo(() => {
|
|
3828
3828
|
if (!Array.isArray(o) || o.length === 0)
|
|
3829
3829
|
return [];
|
|
3830
3830
|
const f = Object.keys(o[0]).map((p) => ({
|
|
@@ -3847,7 +3847,7 @@ function Nc({
|
|
|
3847
3847
|
...l
|
|
3848
3848
|
});
|
|
3849
3849
|
}
|
|
3850
|
-
const
|
|
3850
|
+
const ne = w.forwardRef(Nc);
|
|
3851
3851
|
function qc({
|
|
3852
3852
|
context: e
|
|
3853
3853
|
}) {
|
|
@@ -3863,7 +3863,7 @@ function qc({
|
|
|
3863
3863
|
});
|
|
3864
3864
|
return ee(() => {
|
|
3865
3865
|
l(o);
|
|
3866
|
-
}, [t]), t ? /* @__PURE__ */ i(
|
|
3866
|
+
}, [t]), t ? /* @__PURE__ */ i(R, {
|
|
3867
3867
|
mt: "md",
|
|
3868
3868
|
spacing: "xs",
|
|
3869
3869
|
children: /* @__PURE__ */ d("form", {
|
|
@@ -3883,7 +3883,7 @@ function qc({
|
|
|
3883
3883
|
control: a,
|
|
3884
3884
|
render: ({
|
|
3885
3885
|
field: c
|
|
3886
|
-
}) => /* @__PURE__ */ i(
|
|
3886
|
+
}) => /* @__PURE__ */ i(ne, {
|
|
3887
3887
|
label: "Data Field",
|
|
3888
3888
|
required: !0,
|
|
3889
3889
|
data: r,
|
|
@@ -3919,7 +3919,7 @@ function qc({
|
|
|
3919
3919
|
control: a,
|
|
3920
3920
|
render: ({
|
|
3921
3921
|
field: c
|
|
3922
|
-
}) => /* @__PURE__ */ i(
|
|
3922
|
+
}) => /* @__PURE__ */ i(ne, {
|
|
3923
3923
|
label: "Data Field",
|
|
3924
3924
|
required: !0,
|
|
3925
3925
|
data: r,
|
|
@@ -3955,7 +3955,7 @@ function qc({
|
|
|
3955
3955
|
control: a,
|
|
3956
3956
|
render: ({
|
|
3957
3957
|
field: c
|
|
3958
|
-
}) => /* @__PURE__ */ i(
|
|
3958
|
+
}) => /* @__PURE__ */ i(ne, {
|
|
3959
3959
|
label: "Data Field",
|
|
3960
3960
|
required: !0,
|
|
3961
3961
|
data: r,
|
|
@@ -4060,7 +4060,7 @@ function Bc({
|
|
|
4060
4060
|
average: l.currentTarget.checked
|
|
4061
4061
|
});
|
|
4062
4062
|
};
|
|
4063
|
-
return /* @__PURE__ */ d(
|
|
4063
|
+
return /* @__PURE__ */ d(R, {
|
|
4064
4064
|
ref: n,
|
|
4065
4065
|
children: [/* @__PURE__ */ d(y, {
|
|
4066
4066
|
grow: !0,
|
|
@@ -4079,7 +4079,7 @@ function Bc({
|
|
|
4079
4079
|
flexGrow: 1
|
|
4080
4080
|
}
|
|
4081
4081
|
}), /* @__PURE__ */ i(Ge, {
|
|
4082
|
-
label: /* @__PURE__ */ d(
|
|
4082
|
+
label: /* @__PURE__ */ d(R, {
|
|
4083
4083
|
spacing: 0,
|
|
4084
4084
|
children: [/* @__PURE__ */ i(x, {
|
|
4085
4085
|
children: "Average"
|
|
@@ -4131,7 +4131,7 @@ function Bc({
|
|
|
4131
4131
|
}
|
|
4132
4132
|
}
|
|
4133
4133
|
})]
|
|
4134
|
-
}), /* @__PURE__ */ d(
|
|
4134
|
+
}), /* @__PURE__ */ d(R, {
|
|
4135
4135
|
spacing: 0,
|
|
4136
4136
|
children: [/* @__PURE__ */ i(x, {
|
|
4137
4137
|
weight: "bold",
|
|
@@ -4163,7 +4163,7 @@ function Bc({
|
|
|
4163
4163
|
})]
|
|
4164
4164
|
});
|
|
4165
4165
|
}
|
|
4166
|
-
const fr =
|
|
4166
|
+
const fr = w.forwardRef(Bc);
|
|
4167
4167
|
function gn() {
|
|
4168
4168
|
return {
|
|
4169
4169
|
name: Ie(),
|
|
@@ -4250,20 +4250,20 @@ function Wc({
|
|
|
4250
4250
|
})]
|
|
4251
4251
|
});
|
|
4252
4252
|
}
|
|
4253
|
-
const Uc =
|
|
4253
|
+
const Uc = w.forwardRef(Wc);
|
|
4254
4254
|
function Yc({
|
|
4255
4255
|
label: e,
|
|
4256
4256
|
value: t,
|
|
4257
4257
|
onChange: n
|
|
4258
4258
|
}, r) {
|
|
4259
|
-
const [o, a] =
|
|
4259
|
+
const [o, a] = w.useState(Array.isArray(t) ? [...t] : []), s = w.useCallback(() => {
|
|
4260
4260
|
a((p) => [...p, ""]);
|
|
4261
|
-
}, [a]), l =
|
|
4261
|
+
}, [a]), l = w.useCallback((p) => {
|
|
4262
4262
|
a((m) => (m.splice(p, 1), [...m]));
|
|
4263
|
-
}, [a]), c =
|
|
4263
|
+
}, [a]), c = w.useMemo(() => !X.isEqual(o, t), [o, t]), g = () => {
|
|
4264
4264
|
n(o.map((p) => p.toString()));
|
|
4265
|
-
}, u = rs(), f =
|
|
4266
|
-
return /* @__PURE__ */ d(
|
|
4265
|
+
}, u = rs(), f = w.useMemo(() => Object.entries(u.colors).map(([p, m]) => m[6]), [u]);
|
|
4266
|
+
return /* @__PURE__ */ d(re, {
|
|
4267
4267
|
children: [/* @__PURE__ */ d(y, {
|
|
4268
4268
|
position: "left",
|
|
4269
4269
|
ref: r,
|
|
@@ -4307,18 +4307,18 @@ function Yc({
|
|
|
4307
4307
|
})]
|
|
4308
4308
|
});
|
|
4309
4309
|
}
|
|
4310
|
-
const Qc =
|
|
4310
|
+
const Qc = w.forwardRef(Yc);
|
|
4311
4311
|
function Jc({
|
|
4312
4312
|
value: e,
|
|
4313
4313
|
onChange: t
|
|
4314
4314
|
}, n) {
|
|
4315
4315
|
const {
|
|
4316
4316
|
colorManager: r
|
|
4317
|
-
} = Be(Ue), o =
|
|
4317
|
+
} = Be(Ue), o = w.useMemo(() => r.getStaticColors().map((l) => ({
|
|
4318
4318
|
label: l.name,
|
|
4319
4319
|
group: l.category,
|
|
4320
4320
|
value: l.value
|
|
4321
|
-
})), [r]), a =
|
|
4321
|
+
})), [r]), a = w.useMemo(() => o.some((s) => s.value === e), [e, o]);
|
|
4322
4322
|
return /* @__PURE__ */ d(y, {
|
|
4323
4323
|
position: "apart",
|
|
4324
4324
|
spacing: 4,
|
|
@@ -4358,7 +4358,7 @@ function Jc({
|
|
|
4358
4358
|
})]
|
|
4359
4359
|
});
|
|
4360
4360
|
}
|
|
4361
|
-
const nt =
|
|
4361
|
+
const nt = w.forwardRef(Jc), Ht = [{
|
|
4362
4362
|
label: "initial",
|
|
4363
4363
|
value: 0
|
|
4364
4364
|
}, {
|
|
@@ -4380,11 +4380,11 @@ function Xc({
|
|
|
4380
4380
|
onChange: n
|
|
4381
4381
|
}, r) {
|
|
4382
4382
|
var s, l;
|
|
4383
|
-
const [o, a] =
|
|
4384
|
-
return
|
|
4383
|
+
const [o, a] = w.useState((l = (s = Ht.find((c) => c.label === t)) == null ? void 0 : s.value) != null ? l : Ht[0].value);
|
|
4384
|
+
return w.useEffect(() => {
|
|
4385
4385
|
const c = Ht.find((g) => g.value === o);
|
|
4386
4386
|
c && n(c.label);
|
|
4387
|
-
}, [o]), /* @__PURE__ */ d(
|
|
4387
|
+
}, [o]), /* @__PURE__ */ d(R, {
|
|
4388
4388
|
spacing: 0,
|
|
4389
4389
|
mt: "sm",
|
|
4390
4390
|
mb: "lg",
|
|
@@ -4402,18 +4402,18 @@ function Xc({
|
|
|
4402
4402
|
})]
|
|
4403
4403
|
});
|
|
4404
4404
|
}
|
|
4405
|
-
const Kc =
|
|
4405
|
+
const Kc = w.forwardRef(Xc);
|
|
4406
4406
|
function Zc({
|
|
4407
4407
|
label: e,
|
|
4408
4408
|
value: t,
|
|
4409
4409
|
onChange: n
|
|
4410
4410
|
}, r) {
|
|
4411
|
-
const [o, a] =
|
|
4411
|
+
const [o, a] = w.useState(Array.isArray(t) ? [...t] : []), s = w.useCallback(() => {
|
|
4412
4412
|
a((u) => [...u, ""]);
|
|
4413
|
-
}, [a]), l =
|
|
4413
|
+
}, [a]), l = w.useCallback((u) => {
|
|
4414
4414
|
a((f) => (f.splice(u, 1), [...f]));
|
|
4415
|
-
}, [a]), c =
|
|
4416
|
-
return /* @__PURE__ */ d(
|
|
4415
|
+
}, [a]), c = w.useMemo(() => !X.isEqual(o, t), [o, t]);
|
|
4416
|
+
return /* @__PURE__ */ d(re, {
|
|
4417
4417
|
children: [/* @__PURE__ */ d(y, {
|
|
4418
4418
|
position: "left",
|
|
4419
4419
|
ref: r,
|
|
@@ -4459,7 +4459,7 @@ function Zc({
|
|
|
4459
4459
|
})]
|
|
4460
4460
|
});
|
|
4461
4461
|
}
|
|
4462
|
-
const eu =
|
|
4462
|
+
const eu = w.forwardRef(Zc), tu = w.forwardRef(function({
|
|
4463
4463
|
value: t,
|
|
4464
4464
|
onChange: n
|
|
4465
4465
|
}, r) {
|
|
@@ -4467,12 +4467,12 @@ const eu = R.forwardRef(Zc), tu = R.forwardRef(function({
|
|
|
4467
4467
|
const c = X.cloneDeep(t);
|
|
4468
4468
|
X.set(c, s, l), n(c);
|
|
4469
4469
|
};
|
|
4470
|
-
return /* @__PURE__ */ d(
|
|
4471
|
-
children: [/* @__PURE__ */ i(
|
|
4470
|
+
return /* @__PURE__ */ d(re, {
|
|
4471
|
+
children: [/* @__PURE__ */ i(te, {
|
|
4472
4472
|
my: "xs",
|
|
4473
4473
|
label: "Typography",
|
|
4474
4474
|
labelPosition: "center"
|
|
4475
|
-
}), /* @__PURE__ */ i(
|
|
4475
|
+
}), /* @__PURE__ */ i(R, {
|
|
4476
4476
|
children: /* @__PURE__ */ i(E, {
|
|
4477
4477
|
label: "Font Size",
|
|
4478
4478
|
placeholder: "10px, 1em, 1rem, 100%...",
|
|
@@ -4496,11 +4496,11 @@ const eu = R.forwardRef(Zc), tu = R.forwardRef(function({
|
|
|
4496
4496
|
value: t.weight,
|
|
4497
4497
|
onChange: (s) => a("weight", s)
|
|
4498
4498
|
})
|
|
4499
|
-
}), /* @__PURE__ */ i(
|
|
4499
|
+
}), /* @__PURE__ */ i(te, {
|
|
4500
4500
|
my: "xs",
|
|
4501
4501
|
label: "Style",
|
|
4502
4502
|
labelPosition: "center"
|
|
4503
|
-
}), /* @__PURE__ */ d(
|
|
4503
|
+
}), /* @__PURE__ */ d(R, {
|
|
4504
4504
|
children: [/* @__PURE__ */ i(L, {
|
|
4505
4505
|
label: "Color Type",
|
|
4506
4506
|
data: [{
|
|
@@ -4515,7 +4515,7 @@ const eu = R.forwardRef(Zc), tu = R.forwardRef(function({
|
|
|
4515
4515
|
}), o === "static" && /* @__PURE__ */ i(nt, {
|
|
4516
4516
|
value: t.color.staticColor,
|
|
4517
4517
|
onChange: (s) => a("color.staticColor", s)
|
|
4518
|
-
}), o === "continuous" && /* @__PURE__ */ d(
|
|
4518
|
+
}), o === "continuous" && /* @__PURE__ */ d(re, {
|
|
4519
4519
|
children: [/* @__PURE__ */ i(eu, {
|
|
4520
4520
|
label: "Value Range",
|
|
4521
4521
|
value: t.color.valueRange,
|
|
@@ -4528,7 +4528,7 @@ const eu = R.forwardRef(Zc), tu = R.forwardRef(function({
|
|
|
4528
4528
|
})]
|
|
4529
4529
|
})]
|
|
4530
4530
|
});
|
|
4531
|
-
}), pn =
|
|
4531
|
+
}), pn = w.forwardRef(function({
|
|
4532
4532
|
value: t,
|
|
4533
4533
|
onChange: n,
|
|
4534
4534
|
data: r,
|
|
@@ -4546,7 +4546,7 @@ const eu = R.forwardRef(Zc), tu = R.forwardRef(function({
|
|
|
4546
4546
|
weight: "bold",
|
|
4547
4547
|
pb: 0,
|
|
4548
4548
|
children: t.name
|
|
4549
|
-
}), /* @__PURE__ */ i(
|
|
4549
|
+
}), /* @__PURE__ */ i(te, {
|
|
4550
4550
|
my: "xs",
|
|
4551
4551
|
label: "Data",
|
|
4552
4552
|
labelPosition: "center"
|
|
@@ -4558,7 +4558,7 @@ const eu = R.forwardRef(Zc), tu = R.forwardRef(function({
|
|
|
4558
4558
|
required: !0,
|
|
4559
4559
|
value: t.name,
|
|
4560
4560
|
onChange: (l) => s("name", l.currentTarget.value)
|
|
4561
|
-
}), /* @__PURE__ */ i(
|
|
4561
|
+
}), /* @__PURE__ */ i(ne, {
|
|
4562
4562
|
label: "Data Field",
|
|
4563
4563
|
required: !0,
|
|
4564
4564
|
data: r,
|
|
@@ -4569,7 +4569,7 @@ const eu = R.forwardRef(Zc), tu = R.forwardRef(function({
|
|
|
4569
4569
|
label: "Aggregation",
|
|
4570
4570
|
value: t.aggregation,
|
|
4571
4571
|
onChange: (l) => s("aggregation", l)
|
|
4572
|
-
}), /* @__PURE__ */ i(
|
|
4572
|
+
}), /* @__PURE__ */ i(te, {
|
|
4573
4573
|
my: "xs",
|
|
4574
4574
|
label: "Format",
|
|
4575
4575
|
labelPosition: "center"
|
|
@@ -4856,9 +4856,9 @@ function Ru(e, t) {
|
|
|
4856
4856
|
}), n;
|
|
4857
4857
|
}
|
|
4858
4858
|
function Du(e) {
|
|
4859
|
-
return e.split(" ").map((t) => /* @__PURE__ */ d(
|
|
4859
|
+
return e.split(" ").map((t, n) => /* @__PURE__ */ d(w.Fragment, {
|
|
4860
4860
|
children: [t, "\xA0"]
|
|
4861
|
-
}));
|
|
4861
|
+
}, n));
|
|
4862
4862
|
}
|
|
4863
4863
|
function Iu(e) {
|
|
4864
4864
|
const n = e.replaceAll("<br />", "<br/>").replaceAll(`
|
|
@@ -4882,7 +4882,7 @@ function jn(e, t, n) {
|
|
|
4882
4882
|
if (!l)
|
|
4883
4883
|
return kn(a);
|
|
4884
4884
|
const c = (g = s[2]) != null ? g : "";
|
|
4885
|
-
return /* @__PURE__ */ d(
|
|
4885
|
+
return /* @__PURE__ */ d(re, {
|
|
4886
4886
|
children: [l, kn(c)]
|
|
4887
4887
|
});
|
|
4888
4888
|
});
|
|
@@ -5027,7 +5027,7 @@ function Fu({
|
|
|
5027
5027
|
remove: n,
|
|
5028
5028
|
variableOptions: r
|
|
5029
5029
|
}) {
|
|
5030
|
-
return /* @__PURE__ */ d(
|
|
5030
|
+
return /* @__PURE__ */ d(R, {
|
|
5031
5031
|
my: 0,
|
|
5032
5032
|
p: "md",
|
|
5033
5033
|
pr: 40,
|
|
@@ -5118,7 +5118,7 @@ function $u({
|
|
|
5118
5118
|
label: u.name,
|
|
5119
5119
|
value: u.name
|
|
5120
5120
|
})), [c]);
|
|
5121
|
-
return /* @__PURE__ */ d(
|
|
5121
|
+
return /* @__PURE__ */ d(R, {
|
|
5122
5122
|
children: [s.map((u, f) => /* @__PURE__ */ i(Fu, {
|
|
5123
5123
|
control: e,
|
|
5124
5124
|
index: f,
|
|
@@ -5140,7 +5140,7 @@ function Eu({
|
|
|
5140
5140
|
remove: n,
|
|
5141
5141
|
data: r
|
|
5142
5142
|
}) {
|
|
5143
|
-
return /* @__PURE__ */ d(
|
|
5143
|
+
return /* @__PURE__ */ d(R, {
|
|
5144
5144
|
my: "sm",
|
|
5145
5145
|
p: 0,
|
|
5146
5146
|
sx: {
|
|
@@ -5190,7 +5190,7 @@ function Au({
|
|
|
5190
5190
|
...g,
|
|
5191
5191
|
...s[u]
|
|
5192
5192
|
})), c = () => o(gn());
|
|
5193
|
-
return /* @__PURE__ */ d(
|
|
5193
|
+
return /* @__PURE__ */ d(R, {
|
|
5194
5194
|
children: [l.map((g, u) => /* @__PURE__ */ i(Eu, {
|
|
5195
5195
|
control: e,
|
|
5196
5196
|
index: u,
|
|
@@ -5225,7 +5225,7 @@ function Ou({
|
|
|
5225
5225
|
g(o);
|
|
5226
5226
|
}, [o]), l(["x_axis", "y_axis", "reference_lines", "color"]);
|
|
5227
5227
|
const u = c(), f = T(() => !Ce(u, t), [u, t]);
|
|
5228
|
-
return /* @__PURE__ */ i(
|
|
5228
|
+
return /* @__PURE__ */ i(R, {
|
|
5229
5229
|
mt: "md",
|
|
5230
5230
|
spacing: "xs",
|
|
5231
5231
|
children: /* @__PURE__ */ d("form", {
|
|
@@ -5277,7 +5277,7 @@ function Ou({
|
|
|
5277
5277
|
control: a,
|
|
5278
5278
|
render: ({
|
|
5279
5279
|
field: p
|
|
5280
|
-
}) => /* @__PURE__ */ i(
|
|
5280
|
+
}) => /* @__PURE__ */ i(ne, {
|
|
5281
5281
|
label: "X Axis Data Field",
|
|
5282
5282
|
required: !0,
|
|
5283
5283
|
data: r,
|
|
@@ -5307,7 +5307,7 @@ function Ou({
|
|
|
5307
5307
|
control: a,
|
|
5308
5308
|
render: ({
|
|
5309
5309
|
field: p
|
|
5310
|
-
}) => /* @__PURE__ */ i(
|
|
5310
|
+
}) => /* @__PURE__ */ i(ne, {
|
|
5311
5311
|
label: "Y Axis Data Field",
|
|
5312
5312
|
required: !0,
|
|
5313
5313
|
data: r,
|
|
@@ -5324,7 +5324,7 @@ function Ou({
|
|
|
5324
5324
|
children: [/* @__PURE__ */ i(G.Control, {
|
|
5325
5325
|
children: "Style"
|
|
5326
5326
|
}), /* @__PURE__ */ i(G.Panel, {
|
|
5327
|
-
children: /* @__PURE__ */ d(
|
|
5327
|
+
children: /* @__PURE__ */ d(R, {
|
|
5328
5328
|
spacing: 4,
|
|
5329
5329
|
children: [/* @__PURE__ */ i(x, {
|
|
5330
5330
|
size: "sm",
|
|
@@ -5531,9 +5531,9 @@ function Gu({ x_axis_data_key: e }, {
|
|
|
5531
5531
|
}), !a)
|
|
5532
5532
|
return m.data = f.map((v) => v[t]), m;
|
|
5533
5533
|
const b = Ee(f, a);
|
|
5534
|
-
return Object.entries(b).map(([v,
|
|
5534
|
+
return Object.entries(b).map(([v, S]) => {
|
|
5535
5535
|
const M = zo(m);
|
|
5536
|
-
return M.data = Nu(u,
|
|
5536
|
+
return M.data = Nu(u, S, e, t), M.name = v, M.color = void 0, M;
|
|
5537
5537
|
});
|
|
5538
5538
|
}
|
|
5539
5539
|
function Bu(e, t, n, r) {
|
|
@@ -5690,7 +5690,7 @@ function Ju({
|
|
|
5690
5690
|
width: n,
|
|
5691
5691
|
height: r
|
|
5692
5692
|
}) {
|
|
5693
|
-
const o =
|
|
5693
|
+
const o = w.useMemo(() => Qu(e, t), [e, t]);
|
|
5694
5694
|
return !n || !r ? null : /* @__PURE__ */ i(it, {
|
|
5695
5695
|
echarts: ge,
|
|
5696
5696
|
option: o,
|
|
@@ -5714,7 +5714,7 @@ function Xu({
|
|
|
5714
5714
|
} = Pn(), {
|
|
5715
5715
|
ref: c,
|
|
5716
5716
|
height: g
|
|
5717
|
-
} = Pn(), u =
|
|
5717
|
+
} = Pn(), u = w.useMemo(() => {
|
|
5718
5718
|
const {
|
|
5719
5719
|
stats: {
|
|
5720
5720
|
templates: p,
|
|
@@ -5760,7 +5760,7 @@ function ed({
|
|
|
5760
5760
|
remove: n,
|
|
5761
5761
|
variableOptions: r
|
|
5762
5762
|
}) {
|
|
5763
|
-
return /* @__PURE__ */ d(
|
|
5763
|
+
return /* @__PURE__ */ d(R, {
|
|
5764
5764
|
my: 0,
|
|
5765
5765
|
p: "md",
|
|
5766
5766
|
pr: 40,
|
|
@@ -5830,7 +5830,7 @@ function ed({
|
|
|
5830
5830
|
...o
|
|
5831
5831
|
})
|
|
5832
5832
|
})]
|
|
5833
|
-
}), /* @__PURE__ */ i(
|
|
5833
|
+
}), /* @__PURE__ */ i(te, {
|
|
5834
5834
|
variant: "dashed",
|
|
5835
5835
|
label: "Data",
|
|
5836
5836
|
labelPosition: "center"
|
|
@@ -5907,7 +5907,7 @@ function td({
|
|
|
5907
5907
|
label: u.name,
|
|
5908
5908
|
value: u.name
|
|
5909
5909
|
})), [c]);
|
|
5910
|
-
return /* @__PURE__ */ d(
|
|
5910
|
+
return /* @__PURE__ */ d(R, {
|
|
5911
5911
|
children: [s.map((u, f) => /* @__PURE__ */ i(ed, {
|
|
5912
5912
|
control: e,
|
|
5913
5913
|
index: f,
|
|
@@ -5929,7 +5929,7 @@ function nd({
|
|
|
5929
5929
|
remove: n,
|
|
5930
5930
|
variableOptions: r
|
|
5931
5931
|
}) {
|
|
5932
|
-
return /* @__PURE__ */ d(
|
|
5932
|
+
return /* @__PURE__ */ d(R, {
|
|
5933
5933
|
my: 0,
|
|
5934
5934
|
p: "md",
|
|
5935
5935
|
pr: 40,
|
|
@@ -6020,7 +6020,7 @@ function rd({
|
|
|
6020
6020
|
label: u.name,
|
|
6021
6021
|
value: u.name
|
|
6022
6022
|
})), [c]);
|
|
6023
|
-
return /* @__PURE__ */ d(
|
|
6023
|
+
return /* @__PURE__ */ d(R, {
|
|
6024
6024
|
children: [s.map((u, f) => /* @__PURE__ */ i(nd, {
|
|
6025
6025
|
control: e,
|
|
6026
6026
|
index: f,
|
|
@@ -6067,7 +6067,7 @@ function ad({
|
|
|
6067
6067
|
data: a
|
|
6068
6068
|
}) {
|
|
6069
6069
|
const s = t.transform.config.method;
|
|
6070
|
-
return /* @__PURE__ */ d(
|
|
6070
|
+
return /* @__PURE__ */ d(R, {
|
|
6071
6071
|
my: 0,
|
|
6072
6072
|
p: "md",
|
|
6073
6073
|
pr: 40,
|
|
@@ -6096,7 +6096,7 @@ function ad({
|
|
|
6096
6096
|
control: e,
|
|
6097
6097
|
render: ({
|
|
6098
6098
|
field: l
|
|
6099
|
-
}) => /* @__PURE__ */ i(
|
|
6099
|
+
}) => /* @__PURE__ */ i(ne, {
|
|
6100
6100
|
label: "Value Field",
|
|
6101
6101
|
required: !0,
|
|
6102
6102
|
data: a,
|
|
@@ -6164,7 +6164,7 @@ function ad({
|
|
|
6164
6164
|
...l
|
|
6165
6165
|
})
|
|
6166
6166
|
})]
|
|
6167
|
-
}), /* @__PURE__ */ i(
|
|
6167
|
+
}), /* @__PURE__ */ i(te, {
|
|
6168
6168
|
mb: -15,
|
|
6169
6169
|
variant: "dashed",
|
|
6170
6170
|
label: "Line Style",
|
|
@@ -6199,7 +6199,7 @@ function ad({
|
|
|
6199
6199
|
...l
|
|
6200
6200
|
})
|
|
6201
6201
|
})]
|
|
6202
|
-
}), /* @__PURE__ */ d(
|
|
6202
|
+
}), /* @__PURE__ */ d(R, {
|
|
6203
6203
|
spacing: 4,
|
|
6204
6204
|
children: [/* @__PURE__ */ i(x, {
|
|
6205
6205
|
size: "sm",
|
|
@@ -6243,7 +6243,7 @@ function sd({
|
|
|
6243
6243
|
}), s = t("regressions"), l = r.map((f, p) => ({
|
|
6244
6244
|
...f,
|
|
6245
6245
|
...s[p]
|
|
6246
|
-
})), c = t("y_axes"), g =
|
|
6246
|
+
})), c = t("y_axes"), g = w.useMemo(() => c.map(({
|
|
6247
6247
|
name: f
|
|
6248
6248
|
}, p) => ({
|
|
6249
6249
|
label: f,
|
|
@@ -6269,7 +6269,7 @@ function sd({
|
|
|
6269
6269
|
}
|
|
6270
6270
|
}
|
|
6271
6271
|
});
|
|
6272
|
-
return /* @__PURE__ */ d(
|
|
6272
|
+
return /* @__PURE__ */ d(R, {
|
|
6273
6273
|
children: [l.map((f, p) => /* @__PURE__ */ i(ad, {
|
|
6274
6274
|
regressionItem: f,
|
|
6275
6275
|
control: e,
|
|
@@ -6298,7 +6298,7 @@ function cd({
|
|
|
6298
6298
|
control: e,
|
|
6299
6299
|
index: t
|
|
6300
6300
|
}) {
|
|
6301
|
-
return /* @__PURE__ */ d(
|
|
6301
|
+
return /* @__PURE__ */ d(re, {
|
|
6302
6302
|
children: [/* @__PURE__ */ d(y, {
|
|
6303
6303
|
grow: !0,
|
|
6304
6304
|
align: "top",
|
|
@@ -6370,8 +6370,8 @@ function gd({
|
|
|
6370
6370
|
control: e,
|
|
6371
6371
|
index: t
|
|
6372
6372
|
}) {
|
|
6373
|
-
return /* @__PURE__ */ d(
|
|
6374
|
-
children: [/* @__PURE__ */ i(
|
|
6373
|
+
return /* @__PURE__ */ d(re, {
|
|
6374
|
+
children: [/* @__PURE__ */ i(te, {
|
|
6375
6375
|
mb: -15,
|
|
6376
6376
|
variant: "dashed",
|
|
6377
6377
|
label: "Line Settings",
|
|
@@ -6428,7 +6428,7 @@ function gd({
|
|
|
6428
6428
|
n.onChange(o);
|
|
6429
6429
|
}
|
|
6430
6430
|
})
|
|
6431
|
-
}), /* @__PURE__ */ d(
|
|
6431
|
+
}), /* @__PURE__ */ d(R, {
|
|
6432
6432
|
children: [/* @__PURE__ */ i(D, {
|
|
6433
6433
|
name: `series.${t}.smooth`,
|
|
6434
6434
|
control: e,
|
|
@@ -6483,7 +6483,7 @@ function fd({
|
|
|
6483
6483
|
control: e,
|
|
6484
6484
|
render: ({
|
|
6485
6485
|
field: n
|
|
6486
|
-
}) => /* @__PURE__ */ d(
|
|
6486
|
+
}) => /* @__PURE__ */ d(R, {
|
|
6487
6487
|
sx: {
|
|
6488
6488
|
flexGrow: 1
|
|
6489
6489
|
},
|
|
@@ -6557,7 +6557,7 @@ function md({
|
|
|
6557
6557
|
data: a
|
|
6558
6558
|
}) {
|
|
6559
6559
|
const s = r.type;
|
|
6560
|
-
return /* @__PURE__ */ d(
|
|
6560
|
+
return /* @__PURE__ */ d(R, {
|
|
6561
6561
|
my: 0,
|
|
6562
6562
|
p: "md",
|
|
6563
6563
|
pr: 40,
|
|
@@ -6565,7 +6565,7 @@ function md({
|
|
|
6565
6565
|
border: "1px solid #eee",
|
|
6566
6566
|
position: "relative"
|
|
6567
6567
|
},
|
|
6568
|
-
children: [/* @__PURE__ */ i(
|
|
6568
|
+
children: [/* @__PURE__ */ i(R, {
|
|
6569
6569
|
children: /* @__PURE__ */ i(D, {
|
|
6570
6570
|
name: `series.${t}.type`,
|
|
6571
6571
|
control: e,
|
|
@@ -6610,7 +6610,7 @@ function md({
|
|
|
6610
6610
|
control: e,
|
|
6611
6611
|
render: ({
|
|
6612
6612
|
field: l
|
|
6613
|
-
}) => /* @__PURE__ */ i(
|
|
6613
|
+
}) => /* @__PURE__ */ i(ne, {
|
|
6614
6614
|
label: "Value Field",
|
|
6615
6615
|
required: !0,
|
|
6616
6616
|
data: a,
|
|
@@ -6657,7 +6657,7 @@ function md({
|
|
|
6657
6657
|
control: e,
|
|
6658
6658
|
render: ({
|
|
6659
6659
|
field: l
|
|
6660
|
-
}) => /* @__PURE__ */ i(
|
|
6660
|
+
}) => /* @__PURE__ */ i(ne, {
|
|
6661
6661
|
label: "Group By",
|
|
6662
6662
|
data: a,
|
|
6663
6663
|
clearable: !0,
|
|
@@ -6686,7 +6686,7 @@ function md({
|
|
|
6686
6686
|
data: hd,
|
|
6687
6687
|
...l
|
|
6688
6688
|
})
|
|
6689
|
-
}), /* @__PURE__ */ d(
|
|
6689
|
+
}), /* @__PURE__ */ d(R, {
|
|
6690
6690
|
spacing: 4,
|
|
6691
6691
|
children: [/* @__PURE__ */ i(x, {
|
|
6692
6692
|
size: "sm",
|
|
@@ -6749,13 +6749,13 @@ function vd({
|
|
|
6749
6749
|
type: "solid",
|
|
6750
6750
|
width: 1
|
|
6751
6751
|
}
|
|
6752
|
-
}), g = t("y_axes"), u =
|
|
6752
|
+
}), g = t("y_axes"), u = w.useMemo(() => g.map(({
|
|
6753
6753
|
name: f
|
|
6754
6754
|
}, p) => ({
|
|
6755
6755
|
label: f,
|
|
6756
6756
|
value: p.toString()
|
|
6757
6757
|
})), [g]);
|
|
6758
|
-
return /* @__PURE__ */ d(
|
|
6758
|
+
return /* @__PURE__ */ d(R, {
|
|
6759
6759
|
children: [l.map((f, p) => /* @__PURE__ */ i(md, {
|
|
6760
6760
|
control: e,
|
|
6761
6761
|
index: p,
|
|
@@ -6779,7 +6779,7 @@ function bd({
|
|
|
6779
6779
|
remove: n,
|
|
6780
6780
|
data: r
|
|
6781
6781
|
}) {
|
|
6782
|
-
return /* @__PURE__ */ d(
|
|
6782
|
+
return /* @__PURE__ */ d(R, {
|
|
6783
6783
|
my: "sm",
|
|
6784
6784
|
p: 0,
|
|
6785
6785
|
sx: {
|
|
@@ -6830,8 +6830,8 @@ function yd({
|
|
|
6830
6830
|
...g,
|
|
6831
6831
|
...s[u]
|
|
6832
6832
|
})), c = () => o(gn());
|
|
6833
|
-
return /* @__PURE__ */ d(
|
|
6834
|
-
children: [/* @__PURE__ */ d(
|
|
6833
|
+
return /* @__PURE__ */ d(R, {
|
|
6834
|
+
children: [/* @__PURE__ */ d(R, {
|
|
6835
6835
|
spacing: 0,
|
|
6836
6836
|
children: [/* @__PURE__ */ i(D, {
|
|
6837
6837
|
name: "stats.templates.top",
|
|
@@ -6881,7 +6881,7 @@ function xd({
|
|
|
6881
6881
|
remove: n,
|
|
6882
6882
|
data: r
|
|
6883
6883
|
}) {
|
|
6884
|
-
return /* @__PURE__ */ d(
|
|
6884
|
+
return /* @__PURE__ */ d(R, {
|
|
6885
6885
|
my: "sm",
|
|
6886
6886
|
p: 0,
|
|
6887
6887
|
sx: {
|
|
@@ -6931,7 +6931,7 @@ function Cd({
|
|
|
6931
6931
|
...g,
|
|
6932
6932
|
...s[u]
|
|
6933
6933
|
})), c = () => o(gn());
|
|
6934
|
-
return /* @__PURE__ */ d(
|
|
6934
|
+
return /* @__PURE__ */ d(R, {
|
|
6935
6935
|
children: [l.map((g, u) => /* @__PURE__ */ i(xd, {
|
|
6936
6936
|
control: e,
|
|
6937
6937
|
index: u,
|
|
@@ -6952,7 +6952,7 @@ function wd({
|
|
|
6952
6952
|
control: t,
|
|
6953
6953
|
watch: n
|
|
6954
6954
|
}) {
|
|
6955
|
-
return n(["x_axis_data_key", "x_axis_name", "x_axis"]), /* @__PURE__ */ d(
|
|
6955
|
+
return n(["x_axis_data_key", "x_axis_name", "x_axis"]), /* @__PURE__ */ d(R, {
|
|
6956
6956
|
children: [/* @__PURE__ */ d(y, {
|
|
6957
6957
|
grow: !0,
|
|
6958
6958
|
noWrap: !0,
|
|
@@ -6961,7 +6961,7 @@ function wd({
|
|
|
6961
6961
|
control: t,
|
|
6962
6962
|
render: ({
|
|
6963
6963
|
field: r
|
|
6964
|
-
}) => /* @__PURE__ */ i(
|
|
6964
|
+
}) => /* @__PURE__ */ i(ne, {
|
|
6965
6965
|
label: "X Axis Data Field",
|
|
6966
6966
|
required: !0,
|
|
6967
6967
|
data: e,
|
|
@@ -6983,7 +6983,7 @@ function wd({
|
|
|
6983
6983
|
...r
|
|
6984
6984
|
})
|
|
6985
6985
|
})]
|
|
6986
|
-
}), /* @__PURE__ */ i(
|
|
6986
|
+
}), /* @__PURE__ */ i(te, {
|
|
6987
6987
|
mb: -15,
|
|
6988
6988
|
label: "Tick Label",
|
|
6989
6989
|
labelPosition: "center"
|
|
@@ -7039,7 +7039,7 @@ function Rd({
|
|
|
7039
7039
|
index: t,
|
|
7040
7040
|
remove: n
|
|
7041
7041
|
}) {
|
|
7042
|
-
return /* @__PURE__ */ d(
|
|
7042
|
+
return /* @__PURE__ */ d(R, {
|
|
7043
7043
|
my: 0,
|
|
7044
7044
|
p: "md",
|
|
7045
7045
|
pr: 40,
|
|
@@ -7047,7 +7047,7 @@ function Rd({
|
|
|
7047
7047
|
border: "1px solid #eee",
|
|
7048
7048
|
position: "relative"
|
|
7049
7049
|
},
|
|
7050
|
-
children: [/* @__PURE__ */ i(
|
|
7050
|
+
children: [/* @__PURE__ */ i(te, {
|
|
7051
7051
|
mb: -15,
|
|
7052
7052
|
variant: "dashed",
|
|
7053
7053
|
label: "Name",
|
|
@@ -7083,7 +7083,7 @@ function Rd({
|
|
|
7083
7083
|
...r
|
|
7084
7084
|
})
|
|
7085
7085
|
})]
|
|
7086
|
-
}), /* @__PURE__ */ i(
|
|
7086
|
+
}), /* @__PURE__ */ i(te, {
|
|
7087
7087
|
mb: -15,
|
|
7088
7088
|
variant: "dashed",
|
|
7089
7089
|
label: "Layout",
|
|
@@ -7106,8 +7106,8 @@ function Rd({
|
|
|
7106
7106
|
...r
|
|
7107
7107
|
})
|
|
7108
7108
|
})
|
|
7109
|
-
}), /* @__PURE__ */ d(
|
|
7110
|
-
children: [/* @__PURE__ */ i(
|
|
7109
|
+
}), /* @__PURE__ */ d(R, {
|
|
7110
|
+
children: [/* @__PURE__ */ i(te, {
|
|
7111
7111
|
mb: -15,
|
|
7112
7112
|
variant: "dashed",
|
|
7113
7113
|
label: "Label Format",
|
|
@@ -7155,7 +7155,7 @@ function Dd({
|
|
|
7155
7155
|
name: "",
|
|
7156
7156
|
label_formatter: zt
|
|
7157
7157
|
});
|
|
7158
|
-
return /* @__PURE__ */ d(
|
|
7158
|
+
return /* @__PURE__ */ d(R, {
|
|
7159
7159
|
children: [s.map((c, g) => /* @__PURE__ */ i(Rd, {
|
|
7160
7160
|
control: e,
|
|
7161
7161
|
index: g,
|
|
@@ -7186,7 +7186,7 @@ function Id(e) {
|
|
|
7186
7186
|
smooth: m = !1,
|
|
7187
7187
|
step: b = !1,
|
|
7188
7188
|
group_by_key: v = "",
|
|
7189
|
-
display_name_on_line:
|
|
7189
|
+
display_name_on_line: S = !1,
|
|
7190
7190
|
lineStyle: M = {
|
|
7191
7191
|
type: "solid",
|
|
7192
7192
|
width: 1
|
|
@@ -7207,7 +7207,7 @@ function Id(e) {
|
|
|
7207
7207
|
smooth: m,
|
|
7208
7208
|
step: b,
|
|
7209
7209
|
group_by_key: v,
|
|
7210
|
-
display_name_on_line:
|
|
7210
|
+
display_name_on_line: S,
|
|
7211
7211
|
lineStyle: M
|
|
7212
7212
|
};
|
|
7213
7213
|
}
|
|
@@ -7256,7 +7256,7 @@ function kd({
|
|
|
7256
7256
|
u(a);
|
|
7257
7257
|
}, [a]);
|
|
7258
7258
|
const f = g(), p = T(() => !Ce(f, o), [f, o]);
|
|
7259
|
-
return /* @__PURE__ */ i(
|
|
7259
|
+
return /* @__PURE__ */ i(R, {
|
|
7260
7260
|
mt: "md",
|
|
7261
7261
|
spacing: "xs",
|
|
7262
7262
|
children: /* @__PURE__ */ d("form", {
|
|
@@ -7470,9 +7470,9 @@ function Od({
|
|
|
7470
7470
|
barData: g,
|
|
7471
7471
|
lineData: u
|
|
7472
7472
|
} = T(() => {
|
|
7473
|
-
const p = n.map((v) => [v[a.data_key], Number(v[s])]).sort((v,
|
|
7473
|
+
const p = n.map((v) => [v[a.data_key], Number(v[s])]).sort((v, S) => S[1] - v[1]), m = p.reduce((v, S) => v + S[1], 0), b = p.reduce((v, S, M) => {
|
|
7474
7474
|
const F = M === 0 ? 0 : v[M - 1][1];
|
|
7475
|
-
return v.push([
|
|
7475
|
+
return v.push([S[0], F + S[1]]), v;
|
|
7476
7476
|
}, []).map((v) => [v[0], v[1] / m]);
|
|
7477
7477
|
return {
|
|
7478
7478
|
barData: p,
|
|
@@ -7574,7 +7574,7 @@ function zd({
|
|
|
7574
7574
|
g(o);
|
|
7575
7575
|
}, [o]), l(["x_axis", "data_key", "bar", "line"]);
|
|
7576
7576
|
const u = c(), f = T(() => !Ce(u, t), [u, t]);
|
|
7577
|
-
return /* @__PURE__ */ i(
|
|
7577
|
+
return /* @__PURE__ */ i(R, {
|
|
7578
7578
|
mt: "md",
|
|
7579
7579
|
spacing: "xs",
|
|
7580
7580
|
children: /* @__PURE__ */ d("form", {
|
|
@@ -7619,7 +7619,7 @@ function zd({
|
|
|
7619
7619
|
control: a,
|
|
7620
7620
|
render: ({
|
|
7621
7621
|
field: p
|
|
7622
|
-
}) => /* @__PURE__ */ i(
|
|
7622
|
+
}) => /* @__PURE__ */ i(ne, {
|
|
7623
7623
|
label: "X Axis Data Field",
|
|
7624
7624
|
required: !0,
|
|
7625
7625
|
data: r,
|
|
@@ -7634,7 +7634,7 @@ function zd({
|
|
|
7634
7634
|
control: a,
|
|
7635
7635
|
render: ({
|
|
7636
7636
|
field: p
|
|
7637
|
-
}) => /* @__PURE__ */ i(
|
|
7637
|
+
}) => /* @__PURE__ */ i(ne, {
|
|
7638
7638
|
label: "Y Axis Data Field",
|
|
7639
7639
|
required: !0,
|
|
7640
7640
|
data: r,
|
|
@@ -7643,7 +7643,7 @@ function zd({
|
|
|
7643
7643
|
},
|
|
7644
7644
|
...p
|
|
7645
7645
|
})
|
|
7646
|
-
}), /* @__PURE__ */ i(
|
|
7646
|
+
}), /* @__PURE__ */ i(te, {
|
|
7647
7647
|
my: "md",
|
|
7648
7648
|
label: "Bar",
|
|
7649
7649
|
labelPosition: "center"
|
|
@@ -7662,7 +7662,7 @@ function zd({
|
|
|
7662
7662
|
},
|
|
7663
7663
|
...p
|
|
7664
7664
|
})
|
|
7665
|
-
}), /* @__PURE__ */ d(
|
|
7665
|
+
}), /* @__PURE__ */ d(R, {
|
|
7666
7666
|
spacing: 4,
|
|
7667
7667
|
children: [/* @__PURE__ */ i(x, {
|
|
7668
7668
|
size: "sm",
|
|
@@ -7677,7 +7677,7 @@ function zd({
|
|
|
7677
7677
|
})
|
|
7678
7678
|
})]
|
|
7679
7679
|
})]
|
|
7680
|
-
}), /* @__PURE__ */ i(
|
|
7680
|
+
}), /* @__PURE__ */ i(te, {
|
|
7681
7681
|
my: "md",
|
|
7682
7682
|
label: "Line",
|
|
7683
7683
|
labelPosition: "center"
|
|
@@ -7696,7 +7696,7 @@ function zd({
|
|
|
7696
7696
|
},
|
|
7697
7697
|
...p
|
|
7698
7698
|
})
|
|
7699
|
-
}), /* @__PURE__ */ d(
|
|
7699
|
+
}), /* @__PURE__ */ d(R, {
|
|
7700
7700
|
spacing: 4,
|
|
7701
7701
|
children: [/* @__PURE__ */ i(x, {
|
|
7702
7702
|
size: "sm",
|
|
@@ -7830,7 +7830,7 @@ function qd({
|
|
|
7830
7830
|
label_field: r,
|
|
7831
7831
|
value_field: o
|
|
7832
7832
|
});
|
|
7833
|
-
}, [r, o]), /* @__PURE__ */ i(
|
|
7833
|
+
}, [r, o]), /* @__PURE__ */ i(R, {
|
|
7834
7834
|
mt: "md",
|
|
7835
7835
|
spacing: "xs",
|
|
7836
7836
|
children: /* @__PURE__ */ d("form", {
|
|
@@ -7852,7 +7852,7 @@ function qd({
|
|
|
7852
7852
|
size: 20
|
|
7853
7853
|
})
|
|
7854
7854
|
})]
|
|
7855
|
-
}), /* @__PURE__ */ d(
|
|
7855
|
+
}), /* @__PURE__ */ d(R, {
|
|
7856
7856
|
mt: "md",
|
|
7857
7857
|
spacing: "xs",
|
|
7858
7858
|
p: "md",
|
|
@@ -7861,12 +7861,12 @@ function qd({
|
|
|
7861
7861
|
border: "1px solid #eee",
|
|
7862
7862
|
borderRadius: "5px"
|
|
7863
7863
|
},
|
|
7864
|
-
children: [/* @__PURE__ */ i(
|
|
7864
|
+
children: [/* @__PURE__ */ i(ne, {
|
|
7865
7865
|
label: "Label Field",
|
|
7866
7866
|
required: !0,
|
|
7867
7867
|
data: a,
|
|
7868
7868
|
...s.getInputProps("label_field")
|
|
7869
|
-
}), /* @__PURE__ */ i(
|
|
7869
|
+
}), /* @__PURE__ */ i(ne, {
|
|
7870
7870
|
label: "Value Field",
|
|
7871
7871
|
required: !0,
|
|
7872
7872
|
data: a,
|
|
@@ -8050,7 +8050,7 @@ function Qd({
|
|
|
8050
8050
|
remove: n,
|
|
8051
8051
|
data: r
|
|
8052
8052
|
}) {
|
|
8053
|
-
return /* @__PURE__ */ d(
|
|
8053
|
+
return /* @__PURE__ */ d(R, {
|
|
8054
8054
|
my: 0,
|
|
8055
8055
|
p: "md",
|
|
8056
8056
|
pr: 40,
|
|
@@ -8079,7 +8079,7 @@ function Qd({
|
|
|
8079
8079
|
control: e,
|
|
8080
8080
|
render: ({
|
|
8081
8081
|
field: o
|
|
8082
|
-
}) => /* @__PURE__ */ i(
|
|
8082
|
+
}) => /* @__PURE__ */ i(ne, {
|
|
8083
8083
|
label: "Data Key",
|
|
8084
8084
|
required: !0,
|
|
8085
8085
|
data: r,
|
|
@@ -8103,8 +8103,8 @@ function Qd({
|
|
|
8103
8103
|
...o
|
|
8104
8104
|
})
|
|
8105
8105
|
})]
|
|
8106
|
-
}), /* @__PURE__ */ d(
|
|
8107
|
-
children: [/* @__PURE__ */ i(
|
|
8106
|
+
}), /* @__PURE__ */ d(R, {
|
|
8107
|
+
children: [/* @__PURE__ */ i(te, {
|
|
8108
8108
|
mb: -15,
|
|
8109
8109
|
variant: "dashed",
|
|
8110
8110
|
label: "Value Formatter",
|
|
@@ -8155,7 +8155,7 @@ function Jd({
|
|
|
8155
8155
|
max: 100,
|
|
8156
8156
|
formatter: zt
|
|
8157
8157
|
});
|
|
8158
|
-
return /* @__PURE__ */ d(
|
|
8158
|
+
return /* @__PURE__ */ d(R, {
|
|
8159
8159
|
children: [l.map((g, u) => /* @__PURE__ */ i(Qd, {
|
|
8160
8160
|
data: n,
|
|
8161
8161
|
control: e,
|
|
@@ -8216,7 +8216,7 @@ function Kd({
|
|
|
8216
8216
|
Ce(f(), l) || p(l);
|
|
8217
8217
|
}, [o]), u(["series_name_key"]);
|
|
8218
8218
|
const m = f(), b = T(() => !Ce(m, o), [m, o]);
|
|
8219
|
-
return /* @__PURE__ */ i(
|
|
8219
|
+
return /* @__PURE__ */ i(R, {
|
|
8220
8220
|
mt: "md",
|
|
8221
8221
|
spacing: "xs",
|
|
8222
8222
|
children: /* @__PURE__ */ d("form", {
|
|
@@ -8248,7 +8248,7 @@ function Kd({
|
|
|
8248
8248
|
control: c,
|
|
8249
8249
|
render: ({
|
|
8250
8250
|
field: v
|
|
8251
|
-
}) => /* @__PURE__ */ i(
|
|
8251
|
+
}) => /* @__PURE__ */ i(ne, {
|
|
8252
8252
|
label: "Series Name Field",
|
|
8253
8253
|
required: !0,
|
|
8254
8254
|
data: t,
|
|
@@ -8654,7 +8654,7 @@ function lg({
|
|
|
8654
8654
|
data: n
|
|
8655
8655
|
}) {
|
|
8656
8656
|
const r = t("regression.transform.config.method");
|
|
8657
|
-
return /* @__PURE__ */ d(
|
|
8657
|
+
return /* @__PURE__ */ d(R, {
|
|
8658
8658
|
children: [/* @__PURE__ */ d(y, {
|
|
8659
8659
|
grow: !0,
|
|
8660
8660
|
noWrap: !0,
|
|
@@ -8676,7 +8676,7 @@ function lg({
|
|
|
8676
8676
|
control: e,
|
|
8677
8677
|
render: ({
|
|
8678
8678
|
field: o
|
|
8679
|
-
}) => /* @__PURE__ */ i(
|
|
8679
|
+
}) => /* @__PURE__ */ i(ne, {
|
|
8680
8680
|
label: "Value Field",
|
|
8681
8681
|
required: !0,
|
|
8682
8682
|
data: n,
|
|
@@ -8715,7 +8715,7 @@ function lg({
|
|
|
8715
8715
|
...o
|
|
8716
8716
|
})
|
|
8717
8717
|
})]
|
|
8718
|
-
}), /* @__PURE__ */ d(
|
|
8718
|
+
}), /* @__PURE__ */ d(R, {
|
|
8719
8719
|
spacing: 4,
|
|
8720
8720
|
children: [/* @__PURE__ */ i(x, {
|
|
8721
8721
|
size: "sm",
|
|
@@ -8751,7 +8751,7 @@ function cg({
|
|
|
8751
8751
|
g(o);
|
|
8752
8752
|
}, [o]), l(["x_axis", "y_axis", "regression"]);
|
|
8753
8753
|
const u = c(), f = T(() => !Ce(u, t), [u, t]);
|
|
8754
|
-
return /* @__PURE__ */ i(
|
|
8754
|
+
return /* @__PURE__ */ i(R, {
|
|
8755
8755
|
mt: "md",
|
|
8756
8756
|
spacing: "xs",
|
|
8757
8757
|
children: /* @__PURE__ */ d("form", {
|
|
@@ -8804,7 +8804,7 @@ function cg({
|
|
|
8804
8804
|
control: a,
|
|
8805
8805
|
render: ({
|
|
8806
8806
|
field: p
|
|
8807
|
-
}) => /* @__PURE__ */ i(
|
|
8807
|
+
}) => /* @__PURE__ */ i(ne, {
|
|
8808
8808
|
label: "X Axis Data Field",
|
|
8809
8809
|
required: !0,
|
|
8810
8810
|
data: r,
|
|
@@ -8920,7 +8920,7 @@ function pg({
|
|
|
8920
8920
|
});
|
|
8921
8921
|
s("content");
|
|
8922
8922
|
const c = l(), g = T(() => !Ce(c, t), [c, t]), u = Ui(t == null ? void 0 : t.content);
|
|
8923
|
-
return /* @__PURE__ */ i(
|
|
8923
|
+
return /* @__PURE__ */ i(R, {
|
|
8924
8924
|
mt: "md",
|
|
8925
8925
|
spacing: "xs",
|
|
8926
8926
|
children: /* @__PURE__ */ d("form", {
|
|
@@ -9059,7 +9059,9 @@ function bg({
|
|
|
9059
9059
|
} = t, a = T(() => jn(n, r, e.data), [n, r, e.data]);
|
|
9060
9060
|
return /* @__PURE__ */ i(x, {
|
|
9061
9061
|
align: o,
|
|
9062
|
-
children: Object.values(a).map((s) =>
|
|
9062
|
+
children: Object.values(a).map((s, l) => /* @__PURE__ */ i(w.Fragment, {
|
|
9063
|
+
children: s
|
|
9064
|
+
}, l))
|
|
9063
9065
|
});
|
|
9064
9066
|
}
|
|
9065
9067
|
function yg({
|
|
@@ -9068,7 +9070,7 @@ function yg({
|
|
|
9068
9070
|
remove: n,
|
|
9069
9071
|
data: r
|
|
9070
9072
|
}) {
|
|
9071
|
-
return /* @__PURE__ */ d(
|
|
9073
|
+
return /* @__PURE__ */ d(R, {
|
|
9072
9074
|
my: "sm",
|
|
9073
9075
|
p: 0,
|
|
9074
9076
|
sx: {
|
|
@@ -9117,7 +9119,7 @@ function xg({
|
|
|
9117
9119
|
...g,
|
|
9118
9120
|
...s[u]
|
|
9119
9121
|
})), c = () => o(gn());
|
|
9120
|
-
return /* @__PURE__ */ d(
|
|
9122
|
+
return /* @__PURE__ */ d(R, {
|
|
9121
9123
|
children: [l.map((g, u) => /* @__PURE__ */ i(yg, {
|
|
9122
9124
|
control: e,
|
|
9123
9125
|
index: u,
|
|
@@ -9139,7 +9141,7 @@ function Cg({
|
|
|
9139
9141
|
const t = e.data || [], {
|
|
9140
9142
|
value: n,
|
|
9141
9143
|
set: r
|
|
9142
|
-
} = U(e.instanceData, "config"), o =
|
|
9144
|
+
} = U(e.instanceData, "config"), o = w.useMemo(() => {
|
|
9143
9145
|
const {
|
|
9144
9146
|
align: p,
|
|
9145
9147
|
template: m = "",
|
|
@@ -9159,11 +9161,11 @@ function Cg({
|
|
|
9159
9161
|
} = We({
|
|
9160
9162
|
defaultValues: o
|
|
9161
9163
|
});
|
|
9162
|
-
|
|
9164
|
+
w.useEffect(() => {
|
|
9163
9165
|
g(o);
|
|
9164
9166
|
}, [o]), l(["variables", "template"]);
|
|
9165
|
-
const u = c(), f =
|
|
9166
|
-
return /* @__PURE__ */ i(
|
|
9167
|
+
const u = c(), f = w.useMemo(() => !X.isEqual(u, n), [u, n]);
|
|
9168
|
+
return /* @__PURE__ */ i(R, {
|
|
9167
9169
|
mt: "md",
|
|
9168
9170
|
spacing: "xs",
|
|
9169
9171
|
children: /* @__PURE__ */ d("form", {
|
|
@@ -9304,7 +9306,7 @@ function Rg({
|
|
|
9304
9306
|
label_field: r,
|
|
9305
9307
|
value_field: o
|
|
9306
9308
|
});
|
|
9307
|
-
}, [r, o]), /* @__PURE__ */ i(
|
|
9309
|
+
}, [r, o]), /* @__PURE__ */ i(R, {
|
|
9308
9310
|
mt: "md",
|
|
9309
9311
|
spacing: "xs",
|
|
9310
9312
|
children: /* @__PURE__ */ d("form", {
|
|
@@ -9326,7 +9328,7 @@ function Rg({
|
|
|
9326
9328
|
size: 20
|
|
9327
9329
|
})
|
|
9328
9330
|
})]
|
|
9329
|
-
}), /* @__PURE__ */ d(
|
|
9331
|
+
}), /* @__PURE__ */ d(R, {
|
|
9330
9332
|
mt: "md",
|
|
9331
9333
|
spacing: "xs",
|
|
9332
9334
|
p: "md",
|
|
@@ -9335,12 +9337,12 @@ function Rg({
|
|
|
9335
9337
|
border: "1px solid #eee",
|
|
9336
9338
|
borderRadius: "5px"
|
|
9337
9339
|
},
|
|
9338
|
-
children: [/* @__PURE__ */ i(
|
|
9340
|
+
children: [/* @__PURE__ */ i(ne, {
|
|
9339
9341
|
label: "Label Field",
|
|
9340
9342
|
required: !0,
|
|
9341
9343
|
data: a,
|
|
9342
9344
|
...s.getInputProps("label_field")
|
|
9343
|
-
}), /* @__PURE__ */ i(
|
|
9345
|
+
}), /* @__PURE__ */ i(ne, {
|
|
9344
9346
|
label: "Value Field",
|
|
9345
9347
|
required: !0,
|
|
9346
9348
|
data: a,
|
|
@@ -9673,22 +9675,22 @@ function Ut(e, t, n, r) {
|
|
|
9673
9675
|
id: [r, "" + m].filter(Boolean).join("_"),
|
|
9674
9676
|
headers: []
|
|
9675
9677
|
}, v = [];
|
|
9676
|
-
p.forEach((
|
|
9677
|
-
const M = [...v].reverse()[0], F =
|
|
9678
|
+
p.forEach((S) => {
|
|
9679
|
+
const M = [...v].reverse()[0], F = S.column.depth === b.depth;
|
|
9678
9680
|
let z, N = !1;
|
|
9679
|
-
if (F &&
|
|
9680
|
-
M.subHeaders.push(
|
|
9681
|
+
if (F && S.column.parent ? z = S.column.parent : (z = S.column, N = !0), M && (M == null ? void 0 : M.column) === z)
|
|
9682
|
+
M.subHeaders.push(S);
|
|
9681
9683
|
else {
|
|
9682
9684
|
const Y = xo(n, z, {
|
|
9683
|
-
id: [r, m, z.id,
|
|
9685
|
+
id: [r, m, z.id, S == null ? void 0 : S.id].filter(Boolean).join("_"),
|
|
9684
9686
|
isPlaceholder: N,
|
|
9685
9687
|
placeholderId: N ? "" + v.filter((pe) => pe.column === z).length : void 0,
|
|
9686
9688
|
depth: m,
|
|
9687
9689
|
index: v.length
|
|
9688
9690
|
});
|
|
9689
|
-
Y.subHeaders.push(
|
|
9691
|
+
Y.subHeaders.push(S), v.push(Y);
|
|
9690
9692
|
}
|
|
9691
|
-
b.headers.push(
|
|
9693
|
+
b.headers.push(S), S.headerGroup = b;
|
|
9692
9694
|
}), c.push(b), m > 0 && g(v, m - 1);
|
|
9693
9695
|
}, u = t.map((p, m) => xo(n, p, {
|
|
9694
9696
|
depth: s,
|
|
@@ -9696,7 +9698,7 @@ function Ut(e, t, n, r) {
|
|
|
9696
9698
|
}));
|
|
9697
9699
|
g(u, s - 1), c.reverse();
|
|
9698
9700
|
const f = (p) => p.filter((b) => b.column.getIsVisible()).map((b) => {
|
|
9699
|
-
let v = 0,
|
|
9701
|
+
let v = 0, S = 0, M = [0];
|
|
9700
9702
|
b.subHeaders && b.subHeaders.length ? (M = [], f(b.subHeaders).forEach((z) => {
|
|
9701
9703
|
let {
|
|
9702
9704
|
colSpan: N,
|
|
@@ -9705,9 +9707,9 @@ function Ut(e, t, n, r) {
|
|
|
9705
9707
|
v += N, M.push(Y);
|
|
9706
9708
|
})) : v = 1;
|
|
9707
9709
|
const F = Math.min(...M);
|
|
9708
|
-
return
|
|
9710
|
+
return S = S + F, b.colSpan = v, b.rowSpan = S, {
|
|
9709
9711
|
colSpan: v,
|
|
9710
|
-
rowSpan:
|
|
9712
|
+
rowSpan: S
|
|
9711
9713
|
};
|
|
9712
9714
|
});
|
|
9713
9715
|
return f((o = (a = c[0]) == null ? void 0 : a.headers) != null ? o : []), c;
|
|
@@ -9793,19 +9795,19 @@ const Yt = {
|
|
|
9793
9795
|
if (typeof b != "number")
|
|
9794
9796
|
return;
|
|
9795
9797
|
let v = {};
|
|
9796
|
-
t.setColumnSizingInfo((
|
|
9798
|
+
t.setColumnSizingInfo((S) => {
|
|
9797
9799
|
var M, F;
|
|
9798
|
-
const z = b - ((M =
|
|
9799
|
-
return
|
|
9800
|
+
const z = b - ((M = S == null ? void 0 : S.startOffset) != null ? M : 0), N = Math.max(z / ((F = S == null ? void 0 : S.startSize) != null ? F : 0), -0.999999);
|
|
9801
|
+
return S.columnSizingStart.forEach((Y) => {
|
|
9800
9802
|
let [pe, ce] = Y;
|
|
9801
9803
|
v[pe] = Math.round(Math.max(ce + ce * N, 0) * 100) / 100;
|
|
9802
9804
|
}), {
|
|
9803
|
-
...
|
|
9805
|
+
...S,
|
|
9804
9806
|
deltaOffset: z,
|
|
9805
9807
|
deltaPercentage: N
|
|
9806
9808
|
};
|
|
9807
|
-
}), (t.options.columnResizeMode === "onChange" || m === "end") && t.setColumnSizing((
|
|
9808
|
-
...
|
|
9809
|
+
}), (t.options.columnResizeMode === "onChange" || m === "end") && t.setColumnSizing((S) => ({
|
|
9810
|
+
...S,
|
|
9809
9811
|
...v
|
|
9810
9812
|
}));
|
|
9811
9813
|
}, g = (m) => c("move", m), u = (m) => {
|
|
@@ -11052,8 +11054,8 @@ function op(e) {
|
|
|
11052
11054
|
getAllColumns: P(() => [n._getColumnDefs()], (u) => {
|
|
11053
11055
|
const f = function(p, m, b) {
|
|
11054
11056
|
return b === void 0 && (b = 0), p.map((v) => {
|
|
11055
|
-
const
|
|
11056
|
-
return
|
|
11057
|
+
const S = Mg(n, v, b, m), M = v;
|
|
11058
|
+
return S.columns = M.columns ? f(M.columns, S, b + 1) : [], S;
|
|
11057
11059
|
});
|
|
11058
11060
|
};
|
|
11059
11061
|
return f(u);
|
|
@@ -11225,7 +11227,7 @@ function cp() {
|
|
|
11225
11227
|
return g.sort((u, f) => {
|
|
11226
11228
|
for (let m = 0; m < a.length; m += 1) {
|
|
11227
11229
|
var p;
|
|
11228
|
-
const b = a[m], v = s[b.id],
|
|
11230
|
+
const b = a[m], v = s[b.id], S = (p = b == null ? void 0 : b.desc) != null ? p : !1;
|
|
11229
11231
|
if (v.sortUndefined) {
|
|
11230
11232
|
const F = u.getValue(b.id), z = f.getValue(b.id), N = typeof F > "u", Y = typeof z > "u";
|
|
11231
11233
|
if (N || Y)
|
|
@@ -11233,7 +11235,7 @@ function cp() {
|
|
|
11233
11235
|
}
|
|
11234
11236
|
let M = v.sortingFn(u, f, b.id);
|
|
11235
11237
|
if (M !== 0)
|
|
11236
|
-
return
|
|
11238
|
+
return S && (M *= -1), v.invertSorting && (M *= -1), M;
|
|
11237
11239
|
}
|
|
11238
11240
|
return u.index - f.index;
|
|
11239
11241
|
}), g.forEach((u) => {
|
|
@@ -11566,7 +11568,7 @@ function Ap({
|
|
|
11566
11568
|
} = a, {
|
|
11567
11569
|
classes: g,
|
|
11568
11570
|
cx: u
|
|
11569
|
-
} = _p(), f =
|
|
11571
|
+
} = _p(), f = w.useMemo(() => s ? Object.keys(n[0]).map((ue) => ({
|
|
11570
11572
|
label: ue,
|
|
11571
11573
|
value_field: ue,
|
|
11572
11574
|
value_type: Ke.string
|
|
@@ -11591,7 +11593,7 @@ function Ap({
|
|
|
11591
11593
|
header: "#",
|
|
11592
11594
|
size: 10 * (n.length.toString().length + 1)
|
|
11593
11595
|
}), ...ke];
|
|
11594
|
-
}, [f, p]), [b, v] = he([]),
|
|
11596
|
+
}, [f, p]), [b, v] = he([]), S = pp({
|
|
11595
11597
|
data: n,
|
|
11596
11598
|
state: {
|
|
11597
11599
|
sorting: b
|
|
@@ -11602,7 +11604,7 @@ function Ap({
|
|
|
11602
11604
|
getSortedRowModel: cp()
|
|
11603
11605
|
}), {
|
|
11604
11606
|
rows: M
|
|
11605
|
-
} =
|
|
11607
|
+
} = S.getRowModel(), F = w.useRef(null), z = Xs({
|
|
11606
11608
|
parentRef: F,
|
|
11607
11609
|
size: M.length,
|
|
11608
11610
|
estimateSize: kt(() => 28, []),
|
|
@@ -11628,7 +11630,7 @@ function Ap({
|
|
|
11628
11630
|
striped: a.striped,
|
|
11629
11631
|
children: [/* @__PURE__ */ i("thead", {
|
|
11630
11632
|
className: g.thead,
|
|
11631
|
-
children:
|
|
11633
|
+
children: S.getHeaderGroups().map((ue) => /* @__PURE__ */ i("tr", {
|
|
11632
11634
|
children: ue.headers.map((ke) => /* @__PURE__ */ i("th", {
|
|
11633
11635
|
style: {
|
|
11634
11636
|
width: ke.getSize()
|
|
@@ -11783,7 +11785,7 @@ function Tp(e) {
|
|
|
11783
11785
|
setFalse: u
|
|
11784
11786
|
}] = At(!1), f = r % 2 === 1, p = f && o != null, m = !f && o != null, b = `map ${o} to color ${r}`, v = () => {
|
|
11785
11787
|
l(o), u();
|
|
11786
|
-
},
|
|
11788
|
+
}, S = () => {
|
|
11787
11789
|
u(), t == null || t(s);
|
|
11788
11790
|
}, M = De(o).format({
|
|
11789
11791
|
average: !0
|
|
@@ -11816,7 +11818,7 @@ function Tp(e) {
|
|
|
11816
11818
|
}
|
|
11817
11819
|
})
|
|
11818
11820
|
}), /* @__PURE__ */ i(Dn.Dropdown, {
|
|
11819
|
-
children: /* @__PURE__ */ d(
|
|
11821
|
+
children: /* @__PURE__ */ d(R, {
|
|
11820
11822
|
children: [/* @__PURE__ */ i(Pe, {
|
|
11821
11823
|
size: "xs",
|
|
11822
11824
|
label: "Map a value to this color",
|
|
@@ -11832,7 +11834,7 @@ function Tp(e) {
|
|
|
11832
11834
|
}), /* @__PURE__ */ i(B, {
|
|
11833
11835
|
"data-testid": "palette-item-ok",
|
|
11834
11836
|
size: "xs",
|
|
11835
|
-
onClick:
|
|
11837
|
+
onClick: S,
|
|
11836
11838
|
children: "OK"
|
|
11837
11839
|
})]
|
|
11838
11840
|
})]
|
|
@@ -11880,30 +11882,30 @@ const Lp = I(({
|
|
|
11880
11882
|
} = e, o = r.getColorInterpolations(), [a, s] = he(t), l = r.decodeInterpolation(a.interpolation) || o[0], [c, {
|
|
11881
11883
|
setTrue: g,
|
|
11882
11884
|
setFalse: u
|
|
11883
|
-
}] = At(), f = o.map((
|
|
11884
|
-
label:
|
|
11885
|
-
value: r.encodeColor(
|
|
11886
|
-
group:
|
|
11885
|
+
}] = At(), f = o.map((S) => ({
|
|
11886
|
+
label: S.displayName,
|
|
11887
|
+
value: r.encodeColor(S),
|
|
11888
|
+
group: S.category
|
|
11887
11889
|
}));
|
|
11888
|
-
function p(
|
|
11889
|
-
|
|
11890
|
+
function p(S) {
|
|
11891
|
+
S && s((M) => ({
|
|
11890
11892
|
...M,
|
|
11891
|
-
interpolation:
|
|
11893
|
+
interpolation: S
|
|
11892
11894
|
}));
|
|
11893
11895
|
}
|
|
11894
11896
|
const m = () => {
|
|
11895
11897
|
u(), n == null || n(sn(a));
|
|
11896
11898
|
};
|
|
11897
|
-
function b(
|
|
11899
|
+
function b(S) {
|
|
11898
11900
|
s((M) => ({
|
|
11899
11901
|
...M,
|
|
11900
|
-
steps:
|
|
11902
|
+
steps: S
|
|
11901
11903
|
}));
|
|
11902
11904
|
}
|
|
11903
11905
|
const v = () => {
|
|
11904
11906
|
u(), s(t);
|
|
11905
11907
|
};
|
|
11906
|
-
return /* @__PURE__ */ d(
|
|
11908
|
+
return /* @__PURE__ */ d(re, {
|
|
11907
11909
|
children: [/* @__PURE__ */ i(B, {
|
|
11908
11910
|
variant: "outline",
|
|
11909
11911
|
onClick: g,
|
|
@@ -11913,7 +11915,7 @@ const Lp = I(({
|
|
|
11913
11915
|
title: "Setup color interpolation",
|
|
11914
11916
|
opened: c,
|
|
11915
11917
|
onClose: u,
|
|
11916
|
-
children: c && /* @__PURE__ */ d(
|
|
11918
|
+
children: c && /* @__PURE__ */ d(R, {
|
|
11917
11919
|
"data-testid": "color-interpolation-modal",
|
|
11918
11920
|
children: [/* @__PURE__ */ i(L, {
|
|
11919
11921
|
label: "Color style",
|
|
@@ -11968,8 +11970,8 @@ const Wp = (e) => {
|
|
|
11968
11970
|
label: "Cell background",
|
|
11969
11971
|
value: n || "none",
|
|
11970
11972
|
onChange: (m) => {
|
|
11971
|
-
var b, v,
|
|
11972
|
-
r(m || "none"), m === "static" ? (b = e.onChange) == null || b.call(e, s.current) : m === "none" || !m ? (v = e.onChange) == null || v.call(e, "none") : (
|
|
11973
|
+
var b, v, S;
|
|
11974
|
+
r(m || "none"), m === "static" ? (b = e.onChange) == null || b.call(e, s.current) : m === "none" || !m ? (v = e.onChange) == null || v.call(e, "none") : (S = e.onChange) == null || S.call(e, g.current);
|
|
11973
11975
|
},
|
|
11974
11976
|
data: jp
|
|
11975
11977
|
}), n === "static" && /* @__PURE__ */ i(nt, {
|
|
@@ -12023,7 +12025,7 @@ function Qp({
|
|
|
12023
12025
|
value_field: "value",
|
|
12024
12026
|
value_type: Ke.string
|
|
12025
12027
|
});
|
|
12026
|
-
return /* @__PURE__ */ i(
|
|
12028
|
+
return /* @__PURE__ */ i(R, {
|
|
12027
12029
|
mt: "md",
|
|
12028
12030
|
spacing: "xs",
|
|
12029
12031
|
children: /* @__PURE__ */ d("form", {
|
|
@@ -12048,7 +12050,7 @@ function Qp({
|
|
|
12048
12050
|
size: 20
|
|
12049
12051
|
})
|
|
12050
12052
|
})]
|
|
12051
|
-
}), /* @__PURE__ */ d(
|
|
12053
|
+
}), /* @__PURE__ */ d(R, {
|
|
12052
12054
|
mt: "md",
|
|
12053
12055
|
spacing: "xs",
|
|
12054
12056
|
p: "md",
|
|
@@ -12057,7 +12059,7 @@ function Qp({
|
|
|
12057
12059
|
border: "1px solid #eee",
|
|
12058
12060
|
borderRadius: "5px"
|
|
12059
12061
|
},
|
|
12060
|
-
children: [/* @__PURE__ */ i(
|
|
12062
|
+
children: [/* @__PURE__ */ i(ne, {
|
|
12061
12063
|
label: "ID Field",
|
|
12062
12064
|
required: !0,
|
|
12063
12065
|
data: o,
|
|
@@ -12106,7 +12108,7 @@ function Qp({
|
|
|
12106
12108
|
},
|
|
12107
12109
|
...r.getInputProps("fontSize")
|
|
12108
12110
|
})
|
|
12109
|
-
}), /* @__PURE__ */ d(
|
|
12111
|
+
}), /* @__PURE__ */ d(R, {
|
|
12110
12112
|
children: [/* @__PURE__ */ i(x, {
|
|
12111
12113
|
children: "Other"
|
|
12112
12114
|
}), /* @__PURE__ */ d(y, {
|
|
@@ -12125,7 +12127,7 @@ function Qp({
|
|
|
12125
12127
|
})]
|
|
12126
12128
|
})]
|
|
12127
12129
|
})]
|
|
12128
|
-
}), /* @__PURE__ */ d(
|
|
12130
|
+
}), /* @__PURE__ */ d(R, {
|
|
12129
12131
|
mt: "xs",
|
|
12130
12132
|
spacing: "xs",
|
|
12131
12133
|
p: "md",
|
|
@@ -12139,12 +12141,12 @@ function Qp({
|
|
|
12139
12141
|
...r.getInputProps("use_raw_columns", {
|
|
12140
12142
|
type: "checkbox"
|
|
12141
12143
|
})
|
|
12142
|
-
}), !r.values.use_raw_columns && /* @__PURE__ */ d(
|
|
12144
|
+
}), !r.values.use_raw_columns && /* @__PURE__ */ d(R, {
|
|
12143
12145
|
children: [/* @__PURE__ */ i(x, {
|
|
12144
12146
|
mt: "xl",
|
|
12145
12147
|
mb: 0,
|
|
12146
12148
|
children: "Custom Columns"
|
|
12147
|
-
}), r.values.columns.map((s, l) => /* @__PURE__ */ d(
|
|
12149
|
+
}), r.values.columns.map((s, l) => /* @__PURE__ */ d(R, {
|
|
12148
12150
|
my: 0,
|
|
12149
12151
|
p: "md",
|
|
12150
12152
|
pr: 40,
|
|
@@ -12163,7 +12165,7 @@ function Qp({
|
|
|
12163
12165
|
flex: 1
|
|
12164
12166
|
},
|
|
12165
12167
|
...r.getInputProps(`columns.${l}.label`)
|
|
12166
|
-
}), /* @__PURE__ */ i(
|
|
12168
|
+
}), /* @__PURE__ */ i(ne, {
|
|
12167
12169
|
label: "Value Field",
|
|
12168
12170
|
required: !0,
|
|
12169
12171
|
data: o,
|
|
@@ -12834,7 +12836,7 @@ function kf({
|
|
|
12834
12836
|
[a]: s
|
|
12835
12837
|
});
|
|
12836
12838
|
};
|
|
12837
|
-
return /* @__PURE__ */ d(
|
|
12839
|
+
return /* @__PURE__ */ d(R, {
|
|
12838
12840
|
children: [/* @__PURE__ */ i(E, {
|
|
12839
12841
|
value: r.expertSystemURL,
|
|
12840
12842
|
onChange: (a) => {
|
|
@@ -12994,7 +12996,7 @@ function zf(e) {
|
|
|
12994
12996
|
...t,
|
|
12995
12997
|
urlTemplate: l.currentTarget.value
|
|
12996
12998
|
});
|
|
12997
|
-
return /* @__PURE__ */ d(
|
|
12999
|
+
return /* @__PURE__ */ d(R, {
|
|
12998
13000
|
children: [/* @__PURE__ */ i(E, {
|
|
12999
13001
|
label: "Url",
|
|
13000
13002
|
value: t.urlTemplate,
|
|
@@ -13120,7 +13122,7 @@ const Uf = {
|
|
|
13120
13122
|
}, s = () => {
|
|
13121
13123
|
a(t.filters.firstFilterValueKey, "");
|
|
13122
13124
|
};
|
|
13123
|
-
return /* @__PURE__ */ d(
|
|
13125
|
+
return /* @__PURE__ */ d(R, {
|
|
13124
13126
|
spacing: 10,
|
|
13125
13127
|
children: [/* @__PURE__ */ i(x, {
|
|
13126
13128
|
children: "Mapping Rules"
|
|
@@ -13132,7 +13134,7 @@ const Uf = {
|
|
|
13132
13134
|
onChange: (u) => {
|
|
13133
13135
|
a(l, u.currentTarget.value);
|
|
13134
13136
|
}
|
|
13135
|
-
}), /* @__PURE__ */ i(
|
|
13137
|
+
}), /* @__PURE__ */ i(ne, {
|
|
13136
13138
|
data: [t.filters.values],
|
|
13137
13139
|
value: l,
|
|
13138
13140
|
onChange: (u) => {
|
|
@@ -13412,7 +13414,7 @@ const th = I(({
|
|
|
13412
13414
|
async function g(u) {
|
|
13413
13415
|
await r.removeInteraction(u.id), n((f) => f + 1);
|
|
13414
13416
|
}
|
|
13415
|
-
return /* @__PURE__ */ d(
|
|
13417
|
+
return /* @__PURE__ */ d(R, {
|
|
13416
13418
|
children: [l.map((u) => /* @__PURE__ */ i(th, {
|
|
13417
13419
|
onRemove: g,
|
|
13418
13420
|
instance: o,
|
|
@@ -13458,10 +13460,10 @@ const th = I(({
|
|
|
13458
13460
|
}, ih = I(() => {
|
|
13459
13461
|
const {
|
|
13460
13462
|
panel: e
|
|
13461
|
-
} = me(), [t, n] =
|
|
13463
|
+
} = me(), [t, n] = w.useState(e.description), r = e.description !== t, o = w.useCallback(() => {
|
|
13462
13464
|
!r || e.setDescription(t);
|
|
13463
13465
|
}, [r, t]);
|
|
13464
|
-
return /* @__PURE__ */ d(
|
|
13466
|
+
return /* @__PURE__ */ d(R, {
|
|
13465
13467
|
spacing: 4,
|
|
13466
13468
|
sx: {
|
|
13467
13469
|
flexGrow: 1
|
|
@@ -13498,7 +13500,7 @@ const th = I(({
|
|
|
13498
13500
|
} = me(), {
|
|
13499
13501
|
style: t
|
|
13500
13502
|
} = e;
|
|
13501
|
-
return /* @__PURE__ */ i(
|
|
13503
|
+
return /* @__PURE__ */ i(re, {
|
|
13502
13504
|
children: /* @__PURE__ */ i(Ge, {
|
|
13503
13505
|
label: "Border",
|
|
13504
13506
|
checked: t.border.enabled,
|
|
@@ -13515,7 +13517,7 @@ const th = I(({
|
|
|
13515
13517
|
}
|
|
13516
13518
|
} = me();
|
|
13517
13519
|
return /* @__PURE__ */ i(ht, {
|
|
13518
|
-
children: /* @__PURE__ */ d(
|
|
13520
|
+
children: /* @__PURE__ */ d(R, {
|
|
13519
13521
|
mx: "auto",
|
|
13520
13522
|
mt: "xl",
|
|
13521
13523
|
p: "5px",
|
|
@@ -13566,7 +13568,7 @@ const th = I(({
|
|
|
13566
13568
|
} = me(), {
|
|
13567
13569
|
title: t,
|
|
13568
13570
|
setTitle: n
|
|
13569
|
-
} = e, [r, o] = Yo(t), a = t !== r, s =
|
|
13571
|
+
} = e, [r, o] = Yo(t), a = t !== r, s = w.useCallback(() => {
|
|
13570
13572
|
!a || n(r);
|
|
13571
13573
|
}, [a, r]);
|
|
13572
13574
|
return /* @__PURE__ */ i(E, {
|
|
@@ -13605,18 +13607,18 @@ function ch() {
|
|
|
13605
13607
|
sx: {
|
|
13606
13608
|
height: "100%"
|
|
13607
13609
|
},
|
|
13608
|
-
children: [/* @__PURE__ */ d(
|
|
13610
|
+
children: [/* @__PURE__ */ d(R, {
|
|
13609
13611
|
sx: {
|
|
13610
13612
|
width: "40%",
|
|
13611
13613
|
flexShrink: 0,
|
|
13612
13614
|
flexGrow: 0,
|
|
13613
13615
|
height: "100%"
|
|
13614
13616
|
},
|
|
13615
|
-
children: [/* @__PURE__ */ i(
|
|
13617
|
+
children: [/* @__PURE__ */ i(te, {
|
|
13616
13618
|
label: "Style",
|
|
13617
13619
|
labelPosition: "center",
|
|
13618
13620
|
variant: "dashed"
|
|
13619
|
-
}), /* @__PURE__ */ i(ah, {}), /* @__PURE__ */ i(
|
|
13621
|
+
}), /* @__PURE__ */ i(ah, {}), /* @__PURE__ */ i(te, {
|
|
13620
13622
|
label: "Info",
|
|
13621
13623
|
labelPosition: "center",
|
|
13622
13624
|
variant: "dashed"
|
|
@@ -13637,11 +13639,11 @@ const uh = I(function() {
|
|
|
13637
13639
|
queryID: n,
|
|
13638
13640
|
setQueryID: r
|
|
13639
13641
|
}
|
|
13640
|
-
} = me(), o =
|
|
13642
|
+
} = me(), o = w.useMemo(() => t.queries.current.map((a) => ({
|
|
13641
13643
|
value: a.id,
|
|
13642
13644
|
label: a.id
|
|
13643
13645
|
})), [t.queries.current]);
|
|
13644
|
-
return /* @__PURE__ */ d(
|
|
13646
|
+
return /* @__PURE__ */ d(R, {
|
|
13645
13647
|
children: [/* @__PURE__ */ d(y, {
|
|
13646
13648
|
position: "left",
|
|
13647
13649
|
sx: {
|
|
@@ -13820,7 +13822,7 @@ const hh = ["richText"], fa = I(function({
|
|
|
13820
13822
|
ref: s,
|
|
13821
13823
|
width: l,
|
|
13822
13824
|
height: c
|
|
13823
|
-
} = Pn(), g =
|
|
13825
|
+
} = Pn(), g = w.useMemo(() => !Array.isArray(r) || r.length === 0, [r]), u = fh(r, {
|
|
13824
13826
|
w: l,
|
|
13825
13827
|
h: c
|
|
13826
13828
|
});
|
|
@@ -13947,7 +13949,7 @@ const xh = I(() => {
|
|
|
13947
13949
|
}
|
|
13948
13950
|
} = me(), [n, r] = Yo(t.type), o = t.type !== n, {
|
|
13949
13951
|
vizManager: a
|
|
13950
|
-
} = Be(Ue), s =
|
|
13952
|
+
} = Be(Ue), s = w.useCallback(() => {
|
|
13951
13953
|
if (!o)
|
|
13952
13954
|
return;
|
|
13953
13955
|
const m = bh(a, n);
|
|
@@ -13958,7 +13960,7 @@ const xh = I(() => {
|
|
|
13958
13960
|
} catch (b) {
|
|
13959
13961
|
console.error(b);
|
|
13960
13962
|
}
|
|
13961
|
-
}, c =
|
|
13963
|
+
}, c = w.useMemo(() => {
|
|
13962
13964
|
var m;
|
|
13963
13965
|
return (m = Yn.find((b) => b.value === n)) == null ? void 0 : m.Panel;
|
|
13964
13966
|
}, [n, Yn]), g = yh(), u = c ? rn(c, {
|
|
@@ -13966,7 +13968,7 @@ const xh = I(() => {
|
|
|
13966
13968
|
conf: t.conf,
|
|
13967
13969
|
setConf: t.setConf
|
|
13968
13970
|
}) : null, f = g || u, p = vh();
|
|
13969
|
-
return /* @__PURE__ */ d(
|
|
13971
|
+
return /* @__PURE__ */ d(re, {
|
|
13970
13972
|
children: [/* @__PURE__ */ i(L, {
|
|
13971
13973
|
label: "Visualization",
|
|
13972
13974
|
value: n,
|
|
@@ -13996,7 +13998,7 @@ function Ch() {
|
|
|
13996
13998
|
height: "100%",
|
|
13997
13999
|
overflow: "hidden"
|
|
13998
14000
|
},
|
|
13999
|
-
children: [/* @__PURE__ */ i(
|
|
14001
|
+
children: [/* @__PURE__ */ i(R, {
|
|
14000
14002
|
sx: {
|
|
14001
14003
|
width: "40%",
|
|
14002
14004
|
flexShrink: 0,
|
|
@@ -14021,14 +14023,14 @@ const wh = I(function({
|
|
|
14021
14023
|
}) {
|
|
14022
14024
|
const {
|
|
14023
14025
|
freezeLayout: r
|
|
14024
|
-
} =
|
|
14026
|
+
} = w.useContext(Ne), [o, a] = he("Visualization"), {
|
|
14025
14027
|
panel: s,
|
|
14026
14028
|
loading: l
|
|
14027
14029
|
} = me(), {
|
|
14028
14030
|
id: c,
|
|
14029
14031
|
title: g
|
|
14030
14032
|
} = s;
|
|
14031
|
-
return
|
|
14033
|
+
return w.useEffect(() => {
|
|
14032
14034
|
r(t);
|
|
14033
14035
|
}, [t]), /* @__PURE__ */ i(Le, {
|
|
14034
14036
|
size: "96vw",
|
|
@@ -14102,17 +14104,17 @@ const wh = I(function({
|
|
|
14102
14104
|
}), Sh = I(({
|
|
14103
14105
|
view: e
|
|
14104
14106
|
}) => {
|
|
14105
|
-
const t = K(), n = ss(), [r, o] =
|
|
14107
|
+
const t = K(), n = ss(), [r, o] = w.useState(!1), a = () => o(!0), s = () => o(!1), {
|
|
14106
14108
|
panel: l
|
|
14107
14109
|
} = me(), {
|
|
14108
14110
|
id: c,
|
|
14109
14111
|
query: g
|
|
14110
14112
|
} = l, {
|
|
14111
14113
|
inEditMode: u
|
|
14112
|
-
} =
|
|
14114
|
+
} = w.useContext(Ne), f = () => g == null ? void 0 : g.fetchData(), {
|
|
14113
14115
|
viewPanelInFullScreen: p,
|
|
14114
14116
|
inFullScreen: m
|
|
14115
|
-
} =
|
|
14117
|
+
} = w.useContext(ar), b = () => {
|
|
14116
14118
|
e.panels.duplicateByID(c);
|
|
14117
14119
|
}, v = () => n.openConfirmModal({
|
|
14118
14120
|
title: "Delete this panel?",
|
|
@@ -14122,10 +14124,10 @@ const wh = I(function({
|
|
|
14122
14124
|
},
|
|
14123
14125
|
onCancel: () => console.log("Cancel"),
|
|
14124
14126
|
onConfirm: () => e.panels.removeByID(c)
|
|
14125
|
-
}),
|
|
14127
|
+
}), S = w.useCallback(() => {
|
|
14126
14128
|
p(c);
|
|
14127
14129
|
}, [c, p]);
|
|
14128
|
-
return /* @__PURE__ */ d(
|
|
14130
|
+
return /* @__PURE__ */ d(re, {
|
|
14129
14131
|
children: [/* @__PURE__ */ i(q, {
|
|
14130
14132
|
sx: {
|
|
14131
14133
|
position: "absolute",
|
|
@@ -14158,13 +14160,13 @@ const wh = I(function({
|
|
|
14158
14160
|
}),
|
|
14159
14161
|
children: "Download Data"
|
|
14160
14162
|
}), !m && /* @__PURE__ */ i(xe.Item, {
|
|
14161
|
-
onClick:
|
|
14163
|
+
onClick: S,
|
|
14162
14164
|
icon: /* @__PURE__ */ i(Ms, {
|
|
14163
14165
|
size: 14
|
|
14164
14166
|
}),
|
|
14165
14167
|
children: "Full Screen"
|
|
14166
|
-
}), u && /* @__PURE__ */ d(
|
|
14167
|
-
children: [/* @__PURE__ */ i(
|
|
14168
|
+
}), u && /* @__PURE__ */ d(re, {
|
|
14169
|
+
children: [/* @__PURE__ */ i(te, {
|
|
14168
14170
|
label: "Edit",
|
|
14169
14171
|
labelPosition: "center"
|
|
14170
14172
|
}), /* @__PURE__ */ i(xe.Item, {
|
|
@@ -14284,7 +14286,7 @@ const Or = I(function({
|
|
|
14284
14286
|
panel: n,
|
|
14285
14287
|
exitFullScreen: r
|
|
14286
14288
|
}) {
|
|
14287
|
-
return /* @__PURE__ */ d(
|
|
14289
|
+
return /* @__PURE__ */ d(R, {
|
|
14288
14290
|
px: "10px",
|
|
14289
14291
|
pb: "5px",
|
|
14290
14292
|
sx: {
|
|
@@ -14321,9 +14323,9 @@ const Or = I(function({
|
|
|
14321
14323
|
});
|
|
14322
14324
|
});
|
|
14323
14325
|
function ma(e, t, n) {
|
|
14324
|
-
const r = e.id === "Main", [o, a] =
|
|
14326
|
+
const r = e.id === "Main", [o, a] = w.useState(() => r && e.panels.findByID(t) ? t : null), s = w.useCallback((u) => {
|
|
14325
14327
|
a(u), r && n(u);
|
|
14326
|
-
}, [r, n]), l =
|
|
14328
|
+
}, [r, n]), l = w.useCallback(() => {
|
|
14327
14329
|
a(null), r && n("");
|
|
14328
14330
|
}, [r, n]), c = o ? e.panels.findByID(o) : null;
|
|
14329
14331
|
return {
|
|
@@ -14334,7 +14336,7 @@ function ma(e, t, n) {
|
|
|
14334
14336
|
};
|
|
14335
14337
|
}
|
|
14336
14338
|
function va() {
|
|
14337
|
-
|
|
14339
|
+
w.useEffect(() => {
|
|
14338
14340
|
const e = Zs(".dashboard-sticky-area", {
|
|
14339
14341
|
useStickyClasses: !0,
|
|
14340
14342
|
parentClass: "dashboard-sticky-parent"
|
|
@@ -14344,7 +14346,7 @@ function va() {
|
|
|
14344
14346
|
};
|
|
14345
14347
|
}, []);
|
|
14346
14348
|
}
|
|
14347
|
-
const Vh =
|
|
14349
|
+
const Vh = w.forwardRef(({
|
|
14348
14350
|
handleAxis: e
|
|
14349
14351
|
}, t) => /* @__PURE__ */ i(A, {
|
|
14350
14352
|
ref: t,
|
|
@@ -14364,7 +14366,7 @@ const Vh = R.forwardRef(({
|
|
|
14364
14366
|
children: /* @__PURE__ */ i($s, {
|
|
14365
14367
|
size: 16
|
|
14366
14368
|
})
|
|
14367
|
-
})), Mh =
|
|
14369
|
+
})), Mh = w.forwardRef(({
|
|
14368
14370
|
handleAxis: e,
|
|
14369
14371
|
...t
|
|
14370
14372
|
}, n) => /* @__PURE__ */ i(A, {
|
|
@@ -14393,7 +14395,7 @@ const Vh = R.forwardRef(({
|
|
|
14393
14395
|
isDraggable: o,
|
|
14394
14396
|
isResizable: a
|
|
14395
14397
|
}) {
|
|
14396
|
-
const s =
|
|
14398
|
+
const s = w.useCallback((l) => {
|
|
14397
14399
|
l.forEach(({
|
|
14398
14400
|
i: c,
|
|
14399
14401
|
...g
|
|
@@ -15594,17 +15596,17 @@ const Jm = I(function({
|
|
|
15594
15596
|
setFullScreenPanelID: l
|
|
15595
15597
|
}) {
|
|
15596
15598
|
gi(a);
|
|
15597
|
-
const [c, g] =
|
|
15598
|
-
ii(u, !0),
|
|
15599
|
+
const [c, g] = w.useState(!1), u = w.useMemo(() => Ra(n, t), [n]);
|
|
15600
|
+
ii(u, !0), w.useEffect(() => {
|
|
15599
15601
|
u.context.replace(t);
|
|
15600
15602
|
}, [t]);
|
|
15601
15603
|
const f = async () => {
|
|
15602
|
-
const b = [...u.queries.json], v = [...u.sqlSnippets.json],
|
|
15604
|
+
const b = [...u.queries.json], v = [...u.sqlSnippets.json], S = [...u.views.json], M = {
|
|
15603
15605
|
...u.mock_context.current
|
|
15604
15606
|
}, F = {
|
|
15605
15607
|
...n,
|
|
15606
15608
|
filters: [...u.filters.current],
|
|
15607
|
-
views:
|
|
15609
|
+
views: S,
|
|
15608
15610
|
definition: {
|
|
15609
15611
|
sqlSnippets: v,
|
|
15610
15612
|
queries: b,
|
|
@@ -15612,7 +15614,7 @@ const Jm = I(function({
|
|
|
15612
15614
|
}
|
|
15613
15615
|
};
|
|
15614
15616
|
await r(F);
|
|
15615
|
-
}, p = et(ca, []), m =
|
|
15617
|
+
}, p = et(ca, []), m = w.useCallback((b) => b.provideValue(de.pluginManager, p.pluginManager).provideValue(de.vizManager, p.vizManager).provideValue(de.colorManager, p.colorManager), []);
|
|
15616
15618
|
return /* @__PURE__ */ i(ko, {
|
|
15617
15619
|
children: /* @__PURE__ */ i(li, {
|
|
15618
15620
|
value: u,
|
|
@@ -15653,8 +15655,8 @@ const Jm = I(function({
|
|
|
15653
15655
|
setFullScreenPanelID: a
|
|
15654
15656
|
}) => {
|
|
15655
15657
|
gi(r);
|
|
15656
|
-
const s =
|
|
15657
|
-
return ii(s, !1),
|
|
15658
|
+
const s = w.useMemo(() => Ra(t, e), [t]);
|
|
15659
|
+
return ii(s, !1), w.useEffect(() => {
|
|
15658
15660
|
s.context.replace(e);
|
|
15659
15661
|
}, [e]), /* @__PURE__ */ i(ko, {
|
|
15660
15662
|
children: /* @__PURE__ */ i(li, {
|
|
@@ -15687,15 +15689,15 @@ var Da = { exports: {} };
|
|
|
15687
15689
|
return function(o, a, s) {
|
|
15688
15690
|
var l, c = function(p, m, b) {
|
|
15689
15691
|
b === void 0 && (b = {});
|
|
15690
|
-
var v = new Date(p),
|
|
15692
|
+
var v = new Date(p), S = function(M, F) {
|
|
15691
15693
|
F === void 0 && (F = {});
|
|
15692
15694
|
var z = F.timeZoneName || "short", N = M + "|" + z, Y = r[N];
|
|
15693
15695
|
return Y || (Y = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: M, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: z }), r[N] = Y), Y;
|
|
15694
15696
|
}(m, b);
|
|
15695
|
-
return
|
|
15697
|
+
return S.formatToParts(v);
|
|
15696
15698
|
}, g = function(p, m) {
|
|
15697
|
-
for (var b = c(p, m), v = [],
|
|
15698
|
-
var M = b[
|
|
15699
|
+
for (var b = c(p, m), v = [], S = 0; S < b.length; S += 1) {
|
|
15700
|
+
var M = b[S], F = M.type, z = M.value, N = n[F];
|
|
15699
15701
|
N >= 0 && (v[N] = parseInt(z, 10));
|
|
15700
15702
|
}
|
|
15701
15703
|
var Y = v[3], pe = Y === 24 ? 0 : Y, ce = v[0] + "-" + v[1] + "-" + v[2] + " " + pe + ":" + v[4] + ":" + v[5] + ":000", Se = +p;
|
|
@@ -15703,7 +15705,7 @@ var Da = { exports: {} };
|
|
|
15703
15705
|
}, u = a.prototype;
|
|
15704
15706
|
u.tz = function(p, m) {
|
|
15705
15707
|
p === void 0 && (p = l);
|
|
15706
|
-
var b = this.utcOffset(), v = this.toDate(),
|
|
15708
|
+
var b = this.utcOffset(), v = this.toDate(), S = v.toLocaleString("en-US", { timeZone: p }), M = Math.round((v - new Date(S)) / 1e3 / 60), F = s(S).$set("millisecond", this.$ms).utcOffset(15 * -Math.round(v.getTimezoneOffset() / 15) - M, !0);
|
|
15707
15709
|
if (m) {
|
|
15708
15710
|
var z = F.utcOffset();
|
|
15709
15711
|
F = F.add(b - z, "minute");
|
|
@@ -15722,17 +15724,17 @@ var Da = { exports: {} };
|
|
|
15722
15724
|
var b = s(this.format("YYYY-MM-DD HH:mm:ss:SSS"));
|
|
15723
15725
|
return f.call(b, p, m).tz(this.$x.$timezone, !0);
|
|
15724
15726
|
}, s.tz = function(p, m, b) {
|
|
15725
|
-
var v = b && m,
|
|
15727
|
+
var v = b && m, S = b || m || l, M = g(+s(), S);
|
|
15726
15728
|
if (typeof p != "string")
|
|
15727
|
-
return s(p).tz(
|
|
15729
|
+
return s(p).tz(S);
|
|
15728
15730
|
var F = function(pe, ce, Se) {
|
|
15729
15731
|
var ve = pe - 60 * ce * 1e3, Me = g(ve, Se);
|
|
15730
15732
|
if (ce === Me)
|
|
15731
15733
|
return [ve, ce];
|
|
15732
15734
|
var ue = g(ve -= 60 * (Me - ce) * 1e3, Se);
|
|
15733
15735
|
return Me === ue ? [ve, Me] : [pe - 60 * Math.min(Me, ue) * 1e3, Math.max(Me, ue)];
|
|
15734
|
-
}(s.utc(p, v).valueOf(), M,
|
|
15735
|
-
return Y.$x.$timezone =
|
|
15736
|
+
}(s.utc(p, v).valueOf(), M, S), z = F[0], N = F[1], Y = s(z).utcOffset(N);
|
|
15737
|
+
return Y.$x.$timezone = S, Y;
|
|
15736
15738
|
}, s.tz.guess = function() {
|
|
15737
15739
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
15738
15740
|
}, s.tz.setDefault = function(p) {
|
|
@@ -15751,11 +15753,11 @@ var Ia = { exports: {} };
|
|
|
15751
15753
|
return function(a, s, l) {
|
|
15752
15754
|
var c = s.prototype;
|
|
15753
15755
|
l.utc = function(v) {
|
|
15754
|
-
var
|
|
15755
|
-
return new s(
|
|
15756
|
+
var S = { date: v, utc: !0, args: arguments };
|
|
15757
|
+
return new s(S);
|
|
15756
15758
|
}, c.utc = function(v) {
|
|
15757
|
-
var
|
|
15758
|
-
return v ?
|
|
15759
|
+
var S = l(this.toDate(), { locale: this.$L, utc: !0 });
|
|
15760
|
+
return v ? S.add(this.utcOffset(), n) : S;
|
|
15759
15761
|
}, c.local = function() {
|
|
15760
15762
|
return l(this.toDate(), { locale: this.$L, utc: !1 });
|
|
15761
15763
|
};
|
|
@@ -15772,7 +15774,7 @@ var Ia = { exports: {} };
|
|
|
15772
15774
|
u.call(this);
|
|
15773
15775
|
};
|
|
15774
15776
|
var f = c.utcOffset;
|
|
15775
|
-
c.utcOffset = function(v,
|
|
15777
|
+
c.utcOffset = function(v, S) {
|
|
15776
15778
|
var M = this.$utils().u;
|
|
15777
15779
|
if (M(v))
|
|
15778
15780
|
return this.$u ? 0 : M(this.$offset) ? f.call(this) : this.$offset;
|
|
@@ -15786,7 +15788,7 @@ var Ia = { exports: {} };
|
|
|
15786
15788
|
}(v), v === null))
|
|
15787
15789
|
return this;
|
|
15788
15790
|
var F = Math.abs(v) <= 16 ? 60 * v : v, z = this;
|
|
15789
|
-
if (
|
|
15791
|
+
if (S)
|
|
15790
15792
|
return z.$offset = F, z.$u = v === 0, z;
|
|
15791
15793
|
if (v !== 0) {
|
|
15792
15794
|
var N = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
@@ -15797,8 +15799,8 @@ var Ia = { exports: {} };
|
|
|
15797
15799
|
};
|
|
15798
15800
|
var p = c.format;
|
|
15799
15801
|
c.format = function(v) {
|
|
15800
|
-
var
|
|
15801
|
-
return p.call(this,
|
|
15802
|
+
var S = v || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
|
|
15803
|
+
return p.call(this, S);
|
|
15802
15804
|
}, c.valueOf = function() {
|
|
15803
15805
|
var v = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
|
|
15804
15806
|
return this.$d.valueOf() - 6e4 * v;
|
|
@@ -15814,11 +15816,11 @@ var Ia = { exports: {} };
|
|
|
15814
15816
|
return v === "s" && this.$offset ? l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : m.call(this);
|
|
15815
15817
|
};
|
|
15816
15818
|
var b = c.diff;
|
|
15817
|
-
c.diff = function(v,
|
|
15819
|
+
c.diff = function(v, S, M) {
|
|
15818
15820
|
if (v && this.$u === v.$u)
|
|
15819
|
-
return b.call(this, v,
|
|
15821
|
+
return b.call(this, v, S, M);
|
|
15820
15822
|
var F = this.local(), z = l(v).local();
|
|
15821
|
-
return b.call(F, z,
|
|
15823
|
+
return b.call(F, z, S, M);
|
|
15822
15824
|
};
|
|
15823
15825
|
};
|
|
15824
15826
|
});
|