@devtable/dashboard 9.6.0 → 9.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/dashboard.es.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
var Dc = Object.defineProperty;
|
|
2
2
|
var Lc = (e, t, r) => t in e ? Dc(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
|
-
var
|
|
4
|
-
import $, { useEffect as
|
|
5
|
-
import { Box as O, Text as C, Button as I, Checkbox as ve, Group as v, Tooltip as
|
|
3
|
+
var j = (e, t, r) => (Lc(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
4
|
+
import $, { useEffect as q, createContext as To, useMemo as L, useState as U, forwardRef as ke, useCallback as He, useContext as bt, useRef as Do, createElement as sr, memo as Ic } from "react";
|
|
5
|
+
import { Box as O, Text as C, Button as I, Checkbox as ve, Group as v, Tooltip as Ee, createStyles as un, Stack as S, Badge as In, CloseButton as Lo, Select as E, TextInput as z, Modal as Te, ActionIcon as H, Menu as Ve, Divider as A, Switch as Ye, NumberInput as re, useMantineTheme as Io, ColorInput as Ai, ColorSwatch as jr, Slider as $c, Overlay as Vt, Tabs as b, Center as Ut, CheckIcon as zc, MANTINE_SIZES as Mc, SimpleGrid as Yt, SegmentedControl as Ac, Textarea as Rc, Collapse as Ri, HoverCard as Tt, Table as Ft, Popover as Or, LoadingOverlay as Xt, NativeSelect as Ec, Flex as En, MultiSelect as lr, Paper as Ei, Code as Ya, Alert as Oc, Header as Vc, ThemeIcon as Vr, List as Ha, UnstyledButton as Fc, Navbar as kt, JsonInput as $o, Radio as Qa, Skeleton as Ua, NavLink as Gr, Pagination as Pc, Anchor as Xa, AppShell as zo } from "@mantine/core";
|
|
6
6
|
import { useModals as Dt, ModalsProvider as Mo } from "@mantine/modals";
|
|
7
7
|
import { useCreation as dt, usePrevious as Bc, useBoolean as Xe, useLatest as Za, useRequest as On, useAsyncEffect as Vn } from "ahooks";
|
|
8
8
|
import { observer as D } from "mobx-react-lite";
|
|
9
|
-
import k, { template as Oi, cloneDeepWith as Ao, get as se, isFunction as Nc, omit as Ht, values as Ro, unset as qc, isObject as Eo, set as Vi, orderBy as Wc, last as Oo, defaults as
|
|
10
|
-
import { useForm as
|
|
9
|
+
import k, { template as Oi, cloneDeepWith as Ao, get as se, isFunction as Nc, omit as Ht, values as Ro, unset as qc, isObject as Eo, set as Vi, orderBy as Wc, last as Oo, defaults as $e, minBy as jc, maxBy as Gc, cloneDeep as Pe, isEqual as we, defaultsDeep as _e, keyBy as Vo, isEmpty as Fi, isNumber as Yc, findLastIndex as Hc, isString as Fo, range as Qc, throttle as Uc, pick as Po } from "lodash";
|
|
10
|
+
import { useForm as ze, useWatch as Xc, Controller as x, useFieldArray as Oe } from "react-hook-form";
|
|
11
11
|
import { IconInfoCircle as Fn, IconPlus as Pt, IconDeviceFloppy as Pn, IconBorderAll as Zc, IconTrash as ln, IconArrowDown as Kc, IconArrowUp as Jc, IconArrowsLeftRight as ed, IconVariable as td, IconCodeDots as nd, IconFilter as Bo, IconCopy as rd, IconDatabase as cr, IconBoxMultiple as No, IconMenu2 as id, IconDownload as ad, IconCode as od, IconCaretDown as sd, IconRecycle as qo, IconAlertTriangle as Wo, IconArrowLeft as ld, IconPlaylistAdd as cd, IconCircleDashed as dd, IconCircleDot as ud, IconCircleOff as hd, IconAdjustments as pd, IconLink as md, IconSettings as gd, IconArrowCurveRight as fd, IconX as jo, IconEye as bd, IconTable as xd, IconColumns as yd, IconPlayerSkipBack as vd } from "@tabler/icons";
|
|
12
12
|
import { Link as Go, RichTextEditor as ie, useRichTextEditorContext as wd } from "@mantine/tiptap";
|
|
13
13
|
import { Color as Yo } from "@tiptap/extension-color";
|
|
@@ -25,7 +25,7 @@ import rs from "@tiptap/extension-underline";
|
|
|
25
25
|
import { useEditor as is } from "@tiptap/react";
|
|
26
26
|
import as from "@tiptap/starter-kit";
|
|
27
27
|
import { DateRangePicker as _d } from "@mantine/dates";
|
|
28
|
-
import
|
|
28
|
+
import K from "dayjs";
|
|
29
29
|
import { Calendar as Cd, InfoCircle as hn, Refresh as os, Download as ss, ArrowsMaximize as Sd, Settings as ls, Copy as kd, Trash as xe, DeviceFloppy as be, ArrowRight as Fr, PlaylistAdd as dr, Recycle as xt, Plus as Be, AlertCircle as Td, ArrowsMove as Dd, ChevronDownRight as Ld, ArrowLeft as Id, ChevronsUpRight as $d, ArrowBarToRight as zd } from "tabler-icons-react";
|
|
30
30
|
import Md, { Option as Ad } from "rc-select";
|
|
31
31
|
import Rd, { SHOW_PARENT as Ed } from "rc-tree-select";
|
|
@@ -118,14 +118,14 @@ function ou() {
|
|
|
118
118
|
var R = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
119
119
|
function F(_) {
|
|
120
120
|
{
|
|
121
|
-
for (var M = arguments.length, B = new Array(M > 1 ? M - 1 : 0),
|
|
122
|
-
B[
|
|
123
|
-
|
|
121
|
+
for (var M = arguments.length, B = new Array(M > 1 ? M - 1 : 0), J = 1; J < M; J++)
|
|
122
|
+
B[J - 1] = arguments[J];
|
|
123
|
+
W("error", _, B);
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function W(_, M, B) {
|
|
127
127
|
{
|
|
128
|
-
var
|
|
128
|
+
var J = R.ReactDebugCurrentFrame, me = J.getStackAddendum();
|
|
129
129
|
me !== "" && (M += "%s", B = B.concat([me]));
|
|
130
130
|
var ye = B.map(function(le) {
|
|
131
131
|
return String(le);
|
|
@@ -135,7 +135,7 @@ function ou() {
|
|
|
135
135
|
}
|
|
136
136
|
var Q = !1, N = !1, P = !1, V = !1, Y = !1, ne;
|
|
137
137
|
ne = Symbol.for("react.module.reference");
|
|
138
|
-
function
|
|
138
|
+
function ee(_) {
|
|
139
139
|
return !!(typeof _ == "string" || typeof _ == "function" || _ === i || _ === o || Y || _ === a || _ === d || _ === p || V || _ === g || Q || N || P || typeof _ == "object" && _ !== null && (_.$$typeof === h || _.$$typeof === m || _.$$typeof === l || _.$$typeof === s || _.$$typeof === c || // This needs to include all possible module reference object
|
|
140
140
|
// types supported by any Flight configuration anywhere since
|
|
141
141
|
// we don't know which Flight build this will end up being used
|
|
@@ -143,9 +143,9 @@ function ou() {
|
|
|
143
143
|
_.$$typeof === ne || _.getModuleId !== void 0));
|
|
144
144
|
}
|
|
145
145
|
function de(_, M, B) {
|
|
146
|
-
var
|
|
147
|
-
if (
|
|
148
|
-
return
|
|
146
|
+
var J = _.displayName;
|
|
147
|
+
if (J)
|
|
148
|
+
return J;
|
|
149
149
|
var me = M.displayName || M.name || "";
|
|
150
150
|
return me !== "" ? B + "(" + me + ")" : B;
|
|
151
151
|
}
|
|
@@ -184,8 +184,8 @@ function ou() {
|
|
|
184
184
|
case c:
|
|
185
185
|
return de(_, _.render, "ForwardRef");
|
|
186
186
|
case m:
|
|
187
|
-
var
|
|
188
|
-
return
|
|
187
|
+
var J = _.displayName || null;
|
|
188
|
+
return J !== null ? J : ge(_.type) || "Memo";
|
|
189
189
|
case h: {
|
|
190
190
|
var me = _, ye = me._payload, le = me._init;
|
|
191
191
|
try {
|
|
@@ -197,14 +197,14 @@ function ou() {
|
|
|
197
197
|
}
|
|
198
198
|
return null;
|
|
199
199
|
}
|
|
200
|
-
var ue = Object.assign, Ce = 0,
|
|
200
|
+
var ue = Object.assign, Ce = 0, Le, qe, pt, Ze, _t, Wt, jn;
|
|
201
201
|
function Gn() {
|
|
202
202
|
}
|
|
203
203
|
Gn.__reactDisabledLog = !0;
|
|
204
204
|
function Ir() {
|
|
205
205
|
{
|
|
206
206
|
if (Ce === 0) {
|
|
207
|
-
|
|
207
|
+
Le = console.log, qe = console.info, pt = console.warn, Ze = console.error, _t = console.group, Wt = console.groupCollapsed, jn = console.groupEnd;
|
|
208
208
|
var _ = {
|
|
209
209
|
configurable: !0,
|
|
210
210
|
enumerable: !0,
|
|
@@ -234,7 +234,7 @@ function ou() {
|
|
|
234
234
|
};
|
|
235
235
|
Object.defineProperties(console, {
|
|
236
236
|
log: ue({}, _, {
|
|
237
|
-
value:
|
|
237
|
+
value: Le
|
|
238
238
|
}),
|
|
239
239
|
info: ue({}, _, {
|
|
240
240
|
value: qe
|
|
@@ -266,8 +266,8 @@ function ou() {
|
|
|
266
266
|
try {
|
|
267
267
|
throw Error();
|
|
268
268
|
} catch (me) {
|
|
269
|
-
var
|
|
270
|
-
en =
|
|
269
|
+
var J = me.stack.trim().match(/\n( *(at )?)/);
|
|
270
|
+
en = J && J[1] || "";
|
|
271
271
|
}
|
|
272
272
|
return `
|
|
273
273
|
` + en + _;
|
|
@@ -286,7 +286,7 @@ function ou() {
|
|
|
286
286
|
if (B !== void 0)
|
|
287
287
|
return B;
|
|
288
288
|
}
|
|
289
|
-
var
|
|
289
|
+
var J;
|
|
290
290
|
jt = !0;
|
|
291
291
|
var me = Error.prepareStackTrace;
|
|
292
292
|
Error.prepareStackTrace = void 0;
|
|
@@ -305,14 +305,14 @@ function ou() {
|
|
|
305
305
|
try {
|
|
306
306
|
Reflect.construct(le, []);
|
|
307
307
|
} catch (Ct) {
|
|
308
|
-
|
|
308
|
+
J = Ct;
|
|
309
309
|
}
|
|
310
310
|
Reflect.construct(_, [], le);
|
|
311
311
|
} else {
|
|
312
312
|
try {
|
|
313
313
|
le.call();
|
|
314
314
|
} catch (Ct) {
|
|
315
|
-
|
|
315
|
+
J = Ct;
|
|
316
316
|
}
|
|
317
317
|
_.call(le.prototype);
|
|
318
318
|
}
|
|
@@ -320,26 +320,26 @@ function ou() {
|
|
|
320
320
|
try {
|
|
321
321
|
throw Error();
|
|
322
322
|
} catch (Ct) {
|
|
323
|
-
|
|
323
|
+
J = Ct;
|
|
324
324
|
}
|
|
325
325
|
_();
|
|
326
326
|
}
|
|
327
327
|
} catch (Ct) {
|
|
328
|
-
if (Ct &&
|
|
328
|
+
if (Ct && J && typeof Ct.stack == "string") {
|
|
329
329
|
for (var ae = Ct.stack.split(`
|
|
330
|
-
`), Ge =
|
|
331
|
-
`),
|
|
332
|
-
|
|
333
|
-
for (;
|
|
334
|
-
if (ae[
|
|
335
|
-
if (
|
|
330
|
+
`), Ge = J.stack.split(`
|
|
331
|
+
`), Ie = ae.length - 1, Ae = Ge.length - 1; Ie >= 1 && Ae >= 0 && ae[Ie] !== Ge[Ae]; )
|
|
332
|
+
Ae--;
|
|
333
|
+
for (; Ie >= 1 && Ae >= 0; Ie--, Ae--)
|
|
334
|
+
if (ae[Ie] !== Ge[Ae]) {
|
|
335
|
+
if (Ie !== 1 || Ae !== 1)
|
|
336
336
|
do
|
|
337
|
-
if (
|
|
337
|
+
if (Ie--, Ae--, Ae < 0 || ae[Ie] !== Ge[Ae]) {
|
|
338
338
|
var nt = `
|
|
339
|
-
` + ae[
|
|
339
|
+
` + ae[Ie].replace(" at new ", " at ");
|
|
340
340
|
return _.displayName && nt.includes("<anonymous>") && (nt = nt.replace("<anonymous>", _.displayName)), typeof _ == "function" && zt.set(_, nt), nt;
|
|
341
341
|
}
|
|
342
|
-
while (
|
|
342
|
+
while (Ie >= 1 && Ae >= 0);
|
|
343
343
|
break;
|
|
344
344
|
}
|
|
345
345
|
}
|
|
@@ -376,7 +376,7 @@ function ou() {
|
|
|
376
376
|
case m:
|
|
377
377
|
return Mt(_.type, M, B);
|
|
378
378
|
case h: {
|
|
379
|
-
var
|
|
379
|
+
var J = _, me = J._payload, ye = J._init;
|
|
380
380
|
try {
|
|
381
381
|
return Mt(ye(me), M, B);
|
|
382
382
|
} catch {
|
|
@@ -393,7 +393,7 @@ function ou() {
|
|
|
393
393
|
} else
|
|
394
394
|
Ra.setExtraStackFrame(null);
|
|
395
395
|
}
|
|
396
|
-
function sc(_, M, B,
|
|
396
|
+
function sc(_, M, B, J, me) {
|
|
397
397
|
{
|
|
398
398
|
var ye = Function.call.bind(_n);
|
|
399
399
|
for (var le in _)
|
|
@@ -401,14 +401,14 @@ function ou() {
|
|
|
401
401
|
var ae = void 0;
|
|
402
402
|
try {
|
|
403
403
|
if (typeof _[le] != "function") {
|
|
404
|
-
var Ge = Error((
|
|
404
|
+
var Ge = Error((J || "React class") + ": " + B + " type `" + le + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof _[le] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
405
405
|
throw Ge.name = "Invariant Violation", Ge;
|
|
406
406
|
}
|
|
407
|
-
ae = _[le](M, le,
|
|
408
|
-
} catch (
|
|
409
|
-
ae =
|
|
407
|
+
ae = _[le](M, le, J, B, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
408
|
+
} catch (Ie) {
|
|
409
|
+
ae = Ie;
|
|
410
410
|
}
|
|
411
|
-
ae && !(ae instanceof Error) && (Yn(me), F("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",
|
|
411
|
+
ae && !(ae instanceof Error) && (Yn(me), F("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", J || "React class", B, le, typeof ae), Yn(null)), ae instanceof Error && !(ae.message in Aa) && (Aa[ae.message] = !0, Yn(me), F("Failed %s type: %s", B, ae.message), Yn(null));
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
414
|
}
|
|
@@ -487,7 +487,7 @@ function ou() {
|
|
|
487
487
|
});
|
|
488
488
|
}
|
|
489
489
|
}
|
|
490
|
-
var bc = function(_, M, B,
|
|
490
|
+
var bc = function(_, M, B, J, me, ye, le) {
|
|
491
491
|
var ae = {
|
|
492
492
|
// This tag allows us to uniquely identify this as a React Element
|
|
493
493
|
$$typeof: t,
|
|
@@ -508,7 +508,7 @@ function ou() {
|
|
|
508
508
|
configurable: !1,
|
|
509
509
|
enumerable: !1,
|
|
510
510
|
writable: !1,
|
|
511
|
-
value:
|
|
511
|
+
value: J
|
|
512
512
|
}), Object.defineProperty(ae, "_source", {
|
|
513
513
|
configurable: !1,
|
|
514
514
|
enumerable: !1,
|
|
@@ -516,22 +516,22 @@ function ou() {
|
|
|
516
516
|
value: me
|
|
517
517
|
}), Object.freeze && (Object.freeze(ae.props), Object.freeze(ae)), ae;
|
|
518
518
|
};
|
|
519
|
-
function xc(_, M, B,
|
|
519
|
+
function xc(_, M, B, J, me) {
|
|
520
520
|
{
|
|
521
521
|
var ye, le = {}, ae = null, Ge = null;
|
|
522
522
|
B !== void 0 && (Oa(B), ae = "" + B), pc(M) && (Oa(M.key), ae = "" + M.key), hc(M) && (Ge = M.ref, mc(M, me));
|
|
523
523
|
for (ye in M)
|
|
524
524
|
_n.call(M, ye) && !uc.hasOwnProperty(ye) && (le[ye] = M[ye]);
|
|
525
525
|
if (_ && _.defaultProps) {
|
|
526
|
-
var
|
|
527
|
-
for (ye in
|
|
528
|
-
le[ye] === void 0 && (le[ye] =
|
|
526
|
+
var Ie = _.defaultProps;
|
|
527
|
+
for (ye in Ie)
|
|
528
|
+
le[ye] === void 0 && (le[ye] = Ie[ye]);
|
|
529
529
|
}
|
|
530
530
|
if (ae || Ge) {
|
|
531
|
-
var
|
|
532
|
-
ae && gc(le,
|
|
531
|
+
var Ae = typeof _ == "function" ? _.displayName || _.name || "Unknown" : _;
|
|
532
|
+
ae && gc(le, Ae), Ge && fc(le, Ae);
|
|
533
533
|
}
|
|
534
|
-
return bc(_, ae, Ge, me,
|
|
534
|
+
return bc(_, ae, Ge, me, J, Cn.current, le);
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
537
|
var Ar = R.ReactCurrentOwner, Pa = R.ReactDebugCurrentFrame;
|
|
@@ -592,8 +592,8 @@ Check the top-level render call using <` + B + ">.");
|
|
|
592
592
|
if (Na[B])
|
|
593
593
|
return;
|
|
594
594
|
Na[B] = !0;
|
|
595
|
-
var
|
|
596
|
-
_ && _._owner && _._owner !== Ar.current && (
|
|
595
|
+
var J = "";
|
|
596
|
+
_ && _._owner && _._owner !== Ar.current && (J = " It was passed a child from " + ge(_._owner.type) + "."), rn(_), F('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', B, J), rn(null);
|
|
597
597
|
}
|
|
598
598
|
}
|
|
599
599
|
function Wa(_, M) {
|
|
@@ -602,8 +602,8 @@ Check the top-level render call using <` + B + ">.");
|
|
|
602
602
|
return;
|
|
603
603
|
if (zr(_))
|
|
604
604
|
for (var B = 0; B < _.length; B++) {
|
|
605
|
-
var
|
|
606
|
-
Er(
|
|
605
|
+
var J = _[B];
|
|
606
|
+
Er(J) && qa(J, M);
|
|
607
607
|
}
|
|
608
608
|
else if (Er(_))
|
|
609
609
|
_._store && (_._store.validated = !0);
|
|
@@ -630,8 +630,8 @@ Check the top-level render call using <` + B + ">.");
|
|
|
630
630
|
else
|
|
631
631
|
return;
|
|
632
632
|
if (B) {
|
|
633
|
-
var
|
|
634
|
-
sc(B, _.props, "prop",
|
|
633
|
+
var J = ge(M);
|
|
634
|
+
sc(B, _.props, "prop", J, _);
|
|
635
635
|
} else if (M.PropTypes !== void 0 && !Rr) {
|
|
636
636
|
Rr = !0;
|
|
637
637
|
var me = ge(M);
|
|
@@ -643,33 +643,33 @@ Check the top-level render call using <` + B + ">.");
|
|
|
643
643
|
function _c(_) {
|
|
644
644
|
{
|
|
645
645
|
for (var M = Object.keys(_.props), B = 0; B < M.length; B++) {
|
|
646
|
-
var
|
|
647
|
-
if (
|
|
648
|
-
rn(_), F("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",
|
|
646
|
+
var J = M[B];
|
|
647
|
+
if (J !== "children" && J !== "key") {
|
|
648
|
+
rn(_), F("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", J), rn(null);
|
|
649
649
|
break;
|
|
650
650
|
}
|
|
651
651
|
}
|
|
652
652
|
_.ref !== null && (rn(_), F("Invalid attribute `ref` supplied to `React.Fragment`."), rn(null));
|
|
653
653
|
}
|
|
654
654
|
}
|
|
655
|
-
function ja(_, M, B,
|
|
655
|
+
function ja(_, M, B, J, me, ye) {
|
|
656
656
|
{
|
|
657
|
-
var le =
|
|
657
|
+
var le = ee(_);
|
|
658
658
|
if (!le) {
|
|
659
659
|
var ae = "";
|
|
660
660
|
(_ === void 0 || typeof _ == "object" && _ !== null && Object.keys(_).length === 0) && (ae += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
661
661
|
var Ge = yc(me);
|
|
662
662
|
Ge ? ae += Ge : ae += Ba();
|
|
663
|
-
var
|
|
664
|
-
_ === null ?
|
|
663
|
+
var Ie;
|
|
664
|
+
_ === null ? Ie = "null" : zr(_) ? Ie = "array" : _ !== void 0 && _.$$typeof === t ? (Ie = "<" + (ge(_.type) || "Unknown") + " />", ae = " Did you accidentally export a JSX literal instead of a component?") : Ie = typeof _, F("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Ie, ae);
|
|
665
665
|
}
|
|
666
|
-
var
|
|
667
|
-
if (
|
|
668
|
-
return
|
|
666
|
+
var Ae = xc(_, M, B, me, ye);
|
|
667
|
+
if (Ae == null)
|
|
668
|
+
return Ae;
|
|
669
669
|
if (le) {
|
|
670
670
|
var nt = M.children;
|
|
671
671
|
if (nt !== void 0)
|
|
672
|
-
if (
|
|
672
|
+
if (J)
|
|
673
673
|
if (zr(nt)) {
|
|
674
674
|
for (var an = 0; an < nt.length; an++)
|
|
675
675
|
Wa(nt[an], _);
|
|
@@ -679,7 +679,7 @@ Check the top-level render call using <` + B + ">.");
|
|
|
679
679
|
else
|
|
680
680
|
Wa(nt, _);
|
|
681
681
|
}
|
|
682
|
-
return _ === i ? _c(
|
|
682
|
+
return _ === i ? _c(Ae) : wc(Ae), Ae;
|
|
683
683
|
}
|
|
684
684
|
}
|
|
685
685
|
function Cc(_, M, B) {
|
|
@@ -697,7 +697,7 @@ Check the top-level render call using <` + B + ">.");
|
|
|
697
697
|
})(iu);
|
|
698
698
|
const G = Mn.Fragment, n = Mn.jsx, u = Mn.jsxs;
|
|
699
699
|
function ys(e, t) {
|
|
700
|
-
|
|
700
|
+
q(() => {
|
|
701
701
|
const r = (i) => {
|
|
702
702
|
console.log(i);
|
|
703
703
|
const {
|
|
@@ -712,7 +712,7 @@ function ys(e, t) {
|
|
|
712
712
|
return window.addEventListener("open-view", r), () => {
|
|
713
713
|
window.removeEventListener("open-view", r);
|
|
714
714
|
};
|
|
715
|
-
}, [e, t]),
|
|
715
|
+
}, [e, t]), q(() => {
|
|
716
716
|
const r = (i) => {
|
|
717
717
|
console.log(i);
|
|
718
718
|
const {
|
|
@@ -730,7 +730,7 @@ function ys(e, t) {
|
|
|
730
730
|
return window.addEventListener("set-filter-values", r), () => {
|
|
731
731
|
window.removeEventListener("set-filter-values", r);
|
|
732
732
|
};
|
|
733
|
-
}, [e]),
|
|
733
|
+
}, [e]), q(() => {
|
|
734
734
|
function r(a) {
|
|
735
735
|
return Array.isArray(a) ? [] : typeof a == "object" ? {} : typeof a == "boolean" ? !1 : typeof a == "string" ? "" : typeof a == "number" ? 0 : a;
|
|
736
736
|
}
|
|
@@ -747,7 +747,7 @@ function ys(e, t) {
|
|
|
747
747
|
return window.addEventListener("clear-filter-values", i), () => {
|
|
748
748
|
window.removeEventListener("clear-filter-values", i);
|
|
749
749
|
};
|
|
750
|
-
}, [e]),
|
|
750
|
+
}, [e]), q(() => {
|
|
751
751
|
const r = (i) => {
|
|
752
752
|
console.log(i);
|
|
753
753
|
const {
|
|
@@ -780,7 +780,7 @@ function ys(e, t) {
|
|
|
780
780
|
}
|
|
781
781
|
class su {
|
|
782
782
|
constructor(t) {
|
|
783
|
-
|
|
783
|
+
j(this, "symbol");
|
|
784
784
|
this.symbol = Symbol(t);
|
|
785
785
|
}
|
|
786
786
|
}
|
|
@@ -789,9 +789,9 @@ function St(e) {
|
|
|
789
789
|
}
|
|
790
790
|
class qi {
|
|
791
791
|
constructor() {
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
792
|
+
j(this, "parent");
|
|
793
|
+
j(this, "factoryRegistry", /* @__PURE__ */ new Map());
|
|
794
|
+
j(this, "instanceRegistry", /* @__PURE__ */ new Map());
|
|
795
795
|
}
|
|
796
796
|
createScoped() {
|
|
797
797
|
const t = new qi();
|
|
@@ -836,14 +836,14 @@ const lu = {
|
|
|
836
836
|
viewPanelInFullScreen: k.noop,
|
|
837
837
|
inFullScreen: !1
|
|
838
838
|
}, Wi = $.createContext(lu), ws = $.createContext(null), _s = ws.Provider;
|
|
839
|
-
function
|
|
839
|
+
function De() {
|
|
840
840
|
const e = $.useContext(ws);
|
|
841
841
|
if (!e)
|
|
842
842
|
throw new Error("Please use ModelContextProvider");
|
|
843
843
|
return e;
|
|
844
844
|
}
|
|
845
845
|
const Cs = $.createContext(null), Ss = Cs.Provider;
|
|
846
|
-
function
|
|
846
|
+
function te() {
|
|
847
847
|
const e = $.useContext(Cs);
|
|
848
848
|
if (!e)
|
|
849
849
|
throw new Error("Please use ContentModelContextProvider");
|
|
@@ -993,7 +993,7 @@ const ji = {
|
|
|
993
993
|
content: e,
|
|
994
994
|
editable: !1
|
|
995
995
|
});
|
|
996
|
-
|
|
996
|
+
q(() => {
|
|
997
997
|
r == null || r.commands.setContent(e);
|
|
998
998
|
}, [e, r]);
|
|
999
999
|
const i = L(() => k.defaultsDeep({}, {
|
|
@@ -1003,7 +1003,7 @@ const ji = {
|
|
|
1003
1003
|
}, hu = ({
|
|
1004
1004
|
description: e,
|
|
1005
1005
|
isDescriptionEmpty: t
|
|
1006
|
-
}) => t ? null : /* @__PURE__ */ n(
|
|
1006
|
+
}) => t ? null : /* @__PURE__ */ n(Ee, { color: "white", label: /* @__PURE__ */ n(br, { value: e, styles: {
|
|
1007
1007
|
root: {
|
|
1008
1008
|
border: "none"
|
|
1009
1009
|
},
|
|
@@ -1046,8 +1046,8 @@ const ji = {
|
|
|
1046
1046
|
value: r = [null, null],
|
|
1047
1047
|
onChange: i
|
|
1048
1048
|
}) => {
|
|
1049
|
-
const a = Array.isArray(r) ? r.map((c) => c ?
|
|
1050
|
-
i(c.map((d) => d &&
|
|
1049
|
+
const a = Array.isArray(r) ? r.map((c) => c ? K(c).toDate() : null) : [null, null], o = (c) => {
|
|
1050
|
+
i(c.map((d) => d && K(d).format(t.inputFormat)));
|
|
1051
1051
|
}, l = t.getMinDate(a[0]), s = t.getMaxDate(a[0]);
|
|
1052
1052
|
return /* @__PURE__ */ n(
|
|
1053
1053
|
_d,
|
|
@@ -1258,23 +1258,23 @@ const ji = {
|
|
|
1258
1258
|
classNames: t,
|
|
1259
1259
|
styles: r,
|
|
1260
1260
|
unstyled: i
|
|
1261
|
-
}), [h, g] = U(!1), w = (
|
|
1262
|
-
g(
|
|
1261
|
+
}), [h, g] = U(!1), w = (W) => {
|
|
1262
|
+
g(W);
|
|
1263
1263
|
}, y = h && (s == null ? void 0 : s.length) > 0, [T, R] = U(""), F = L(() => {
|
|
1264
1264
|
if (!T)
|
|
1265
1265
|
return d;
|
|
1266
|
-
const
|
|
1266
|
+
const W = T.toLowerCase(), Q = (N) => N.description.toLowerCase().includes(W) || N.label.toLowerCase().includes(W);
|
|
1267
1267
|
return d.filter(Q);
|
|
1268
1268
|
}, [T, d]);
|
|
1269
1269
|
return /* @__PURE__ */ u(S, { spacing: 3, children: [
|
|
1270
1270
|
/* @__PURE__ */ u(v, { position: "apart", children: [
|
|
1271
1271
|
/* @__PURE__ */ n(C, { className: p.label, children: l }),
|
|
1272
|
-
y && /* @__PURE__ */ n(
|
|
1272
|
+
y && /* @__PURE__ */ n(Ee, { label: `${s.length} selected`, children: /* @__PURE__ */ n(In, { children: s.length }) })
|
|
1273
1273
|
] }),
|
|
1274
|
-
/* @__PURE__ */ n(Md, { disabled: e, allowClear: !0, className: m(p.root, "check-select"), dropdownClassName: m(p.dropdown, ""), onDropdownVisibleChange: w, transitionName: "rc-select-dropdown-slide-up", choiceTransitionName: "rc-select-selection__choice-zoom", style: o, clearIcon: () => /* @__PURE__ */ n(Lo, {}), value: s, onChange: c, onSelect: console.log, mode: "multiple", maxTagCount: 0, maxTagTextLength: 10, maxTagPlaceholder: (
|
|
1275
|
-
/* @__PURE__ */ n(C, { size: "sm", "data-role": "label", children:
|
|
1276
|
-
/* @__PURE__ */ n(C, { size: "xs", color: "dimmed", "data-role": "description", children:
|
|
1277
|
-
] }) }) },
|
|
1274
|
+
/* @__PURE__ */ n(Md, { disabled: e, allowClear: !0, className: m(p.root, "check-select"), dropdownClassName: m(p.dropdown, ""), onDropdownVisibleChange: w, transitionName: "rc-select-dropdown-slide-up", choiceTransitionName: "rc-select-selection__choice-zoom", style: o, clearIcon: () => /* @__PURE__ */ n(Lo, {}), value: s, onChange: c, onSelect: console.log, mode: "multiple", maxTagCount: 0, maxTagTextLength: 10, maxTagPlaceholder: (W) => `${W.length} selected`, searchValue: T, onSearch: R, filterOption: !1, children: F.map((W) => /* @__PURE__ */ n(Ad, { children: /* @__PURE__ */ n(v, { noWrap: !0, children: /* @__PURE__ */ u("div", { children: [
|
|
1275
|
+
/* @__PURE__ */ n(C, { size: "sm", "data-role": "label", children: W.label }),
|
|
1276
|
+
/* @__PURE__ */ n(C, { size: "xs", color: "dimmed", "data-role": "description", children: W.description })
|
|
1277
|
+
] }) }) }, W.value)) })
|
|
1278
1278
|
] });
|
|
1279
1279
|
}, fu = D(({
|
|
1280
1280
|
label: e,
|
|
@@ -1282,7 +1282,7 @@ const ji = {
|
|
|
1282
1282
|
value: r,
|
|
1283
1283
|
onChange: i
|
|
1284
1284
|
}) => {
|
|
1285
|
-
const a =
|
|
1285
|
+
const a = te(), o = !!t.options_query_id, {
|
|
1286
1286
|
state: l
|
|
1287
1287
|
} = a.getDataStuffByID(t.options_query_id), s = l === "loading", c = t.min_width ? t.min_width : "200px", d = o ? s : !1;
|
|
1288
1288
|
return /* @__PURE__ */ n(gu, { label: e, options: t.options, style: {
|
|
@@ -1304,10 +1304,10 @@ const ji = {
|
|
|
1304
1304
|
value: r,
|
|
1305
1305
|
onChange: i
|
|
1306
1306
|
}) => {
|
|
1307
|
-
const a =
|
|
1307
|
+
const a = te(), o = !!t.options_query_id, {
|
|
1308
1308
|
state: l
|
|
1309
1309
|
} = a.getDataStuffByID(t.options_query_id), s = l === "loading";
|
|
1310
|
-
return
|
|
1310
|
+
return q(() => {
|
|
1311
1311
|
var p;
|
|
1312
1312
|
const {
|
|
1313
1313
|
default_selection_count: c
|
|
@@ -1633,7 +1633,7 @@ const vu = ({
|
|
|
1633
1633
|
return /* @__PURE__ */ u(S, { spacing: 3, children: [
|
|
1634
1634
|
/* @__PURE__ */ u(v, { position: "apart", children: [
|
|
1635
1635
|
/* @__PURE__ */ n(C, { className: p.label, children: l }),
|
|
1636
|
-
y && /* @__PURE__ */ n(
|
|
1636
|
+
y && /* @__PURE__ */ n(Ee, { label: `${s.length} selected`, children: /* @__PURE__ */ n(In, { children: s.length }) })
|
|
1637
1637
|
] }),
|
|
1638
1638
|
/* @__PURE__ */ n(
|
|
1639
1639
|
Rd,
|
|
@@ -1720,20 +1720,20 @@ const vu = ({
|
|
|
1720
1720
|
}, r) => /* @__PURE__ */ n("div", { className: "filter-root", ref: r, children: /* @__PURE__ */ n(Qe, { children: /* @__PURE__ */ n(Du, { filter: e, formFieldProps: t }) }) }))), $s = D(function({
|
|
1721
1721
|
view: t
|
|
1722
1722
|
}) {
|
|
1723
|
-
const r =
|
|
1723
|
+
const r = te(), {
|
|
1724
1724
|
control: i,
|
|
1725
1725
|
handleSubmit: a,
|
|
1726
1726
|
reset: o
|
|
1727
|
-
} =
|
|
1727
|
+
} = ze({
|
|
1728
1728
|
defaultValues: r.filters.values,
|
|
1729
1729
|
// make sure the preview value is updated when filters are changed
|
|
1730
1730
|
reValidateMode: "onBlur"
|
|
1731
1731
|
}), l = Xc({
|
|
1732
1732
|
control: i
|
|
1733
1733
|
});
|
|
1734
|
-
|
|
1734
|
+
q(() => {
|
|
1735
1735
|
o(r.filters.values);
|
|
1736
|
-
}, [r.filters.values, o]),
|
|
1736
|
+
}, [r.filters.values, o]), q(() => {
|
|
1737
1737
|
r.filters.updatePreviewValues(l);
|
|
1738
1738
|
}, [l]);
|
|
1739
1739
|
const s = r.filters.visibleInView(t.id), c = L(() => s.every((h) => h.should_auto_submit), [s]), d = L(() => s.filter((h) => k.get(h, "config.required", !1)), [s]), p = L(() => d.length === 0 ? !1 : d.some((h) => !h.requiredAndPass(l[h.key])), [l, d]);
|
|
@@ -1775,7 +1775,7 @@ const zs = D(() => {
|
|
|
1775
1775
|
padding: 0
|
|
1776
1776
|
}
|
|
1777
1777
|
} }) }),
|
|
1778
|
-
/* @__PURE__ */ n(
|
|
1778
|
+
/* @__PURE__ */ n(Ee, { label: "Click to see description", position: "top-start", withinPortal: !0, children: /* @__PURE__ */ n(H, { variant: "subtle", color: "blue", onClick: () => r((a) => !a), sx: {
|
|
1779
1779
|
verticalAlign: "baseline",
|
|
1780
1780
|
cursor: "pointer"
|
|
1781
1781
|
}, children: /* @__PURE__ */ n(hn, { size: 20 }) }) })
|
|
@@ -1783,7 +1783,7 @@ const zs = D(() => {
|
|
|
1783
1783
|
}), Iu = D(({
|
|
1784
1784
|
view: e
|
|
1785
1785
|
}) => {
|
|
1786
|
-
const t =
|
|
1786
|
+
const t = De(), r = te(), i = Dt(), {
|
|
1787
1787
|
panel: a
|
|
1788
1788
|
} = We(), {
|
|
1789
1789
|
id: o,
|
|
@@ -1847,7 +1847,7 @@ const $u = D(function() {
|
|
|
1847
1847
|
}, children: /* @__PURE__ */ n(C, { align: "center", lineClamp: 1, weight: "bold", children: r }) }) : null;
|
|
1848
1848
|
}), yt = (e, t) => {
|
|
1849
1849
|
const [r, i] = U([]);
|
|
1850
|
-
return
|
|
1850
|
+
return q(() => e.watchTriggerSnapshotList((a) => i(a.filter((o) => o.schemaRef === t))), []), r;
|
|
1851
1851
|
};
|
|
1852
1852
|
class sn {
|
|
1853
1853
|
constructor(t, r) {
|
|
@@ -1885,7 +1885,7 @@ class sn {
|
|
|
1885
1885
|
}
|
|
1886
1886
|
class Gi {
|
|
1887
1887
|
constructor(t, r, i) {
|
|
1888
|
-
|
|
1888
|
+
j(this, "attachmentStorage");
|
|
1889
1889
|
this.instance = t, this.attachmentKey = r, this.constructInstance = i, this.attachmentStorage = new sn(t.instanceData, r);
|
|
1890
1890
|
}
|
|
1891
1891
|
async getInstance(t) {
|
|
@@ -1905,7 +1905,7 @@ class Gi {
|
|
|
1905
1905
|
}
|
|
1906
1906
|
class Ms {
|
|
1907
1907
|
constructor(t) {
|
|
1908
|
-
|
|
1908
|
+
j(this, "rootRef");
|
|
1909
1909
|
this.rootRef = us({
|
|
1910
1910
|
current: t
|
|
1911
1911
|
});
|
|
@@ -1947,8 +1947,8 @@ class Ms {
|
|
|
1947
1947
|
}
|
|
1948
1948
|
class zu {
|
|
1949
1949
|
constructor() {
|
|
1950
|
-
|
|
1951
|
-
|
|
1950
|
+
j(this, "channels", /* @__PURE__ */ new Map());
|
|
1951
|
+
j(this, "globalChannel", new Ka());
|
|
1952
1952
|
}
|
|
1953
1953
|
getChannel(t) {
|
|
1954
1954
|
const r = this.channels.get(t);
|
|
@@ -1960,7 +1960,7 @@ class zu {
|
|
|
1960
1960
|
}
|
|
1961
1961
|
class Mu {
|
|
1962
1962
|
constructor(t) {
|
|
1963
|
-
|
|
1963
|
+
j(this, "instances", /* @__PURE__ */ new Map());
|
|
1964
1964
|
this.pluginManager = t;
|
|
1965
1965
|
}
|
|
1966
1966
|
get availableVizList() {
|
|
@@ -2081,7 +2081,7 @@ const Au = (e) => {
|
|
|
2081
2081
|
getColor: xr(["#fff7f1", "darkorange", "#b60000"]),
|
|
2082
2082
|
name: "orange",
|
|
2083
2083
|
category: "sequential"
|
|
2084
|
-
}, Es = "@devtable/dashboard", Yi = "9.
|
|
2084
|
+
}, Es = "@devtable/dashboard", Yi = "9.7.0", Os = "Apache-2.0", Vs = {
|
|
2085
2085
|
access: "public",
|
|
2086
2086
|
registry: "https://registry.npmjs.org/"
|
|
2087
2087
|
}, Fs = [
|
|
@@ -2273,8 +2273,8 @@ const Au = (e) => {
|
|
|
2273
2273
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2274
2274
|
class Wu {
|
|
2275
2275
|
constructor(t) {
|
|
2276
|
-
|
|
2277
|
-
|
|
2276
|
+
j(this, "staticColors", /* @__PURE__ */ new Map());
|
|
2277
|
+
j(this, "interpolations", /* @__PURE__ */ new Map());
|
|
2278
2278
|
t.installedPlugins.forEach((r) => {
|
|
2279
2279
|
r.manifest.color.forEach((i) => {
|
|
2280
2280
|
this.register(i);
|
|
@@ -2307,12 +2307,12 @@ class ju {
|
|
|
2307
2307
|
* Id to plugin map
|
|
2308
2308
|
* @private
|
|
2309
2309
|
*/
|
|
2310
|
-
|
|
2310
|
+
j(this, "plugins", /* @__PURE__ */ new Map());
|
|
2311
2311
|
/**
|
|
2312
2312
|
* Name to component map
|
|
2313
2313
|
*/
|
|
2314
|
-
|
|
2315
|
-
|
|
2314
|
+
j(this, "vizComponents", /* @__PURE__ */ new Map());
|
|
2315
|
+
j(this, "factory", {
|
|
2316
2316
|
viz: (t) => {
|
|
2317
2317
|
const r = this.vizComponents.get(t);
|
|
2318
2318
|
if (r)
|
|
@@ -2337,7 +2337,7 @@ class ju {
|
|
|
2337
2337
|
}
|
|
2338
2338
|
class Gu {
|
|
2339
2339
|
constructor() {
|
|
2340
|
-
|
|
2340
|
+
j(this, "migrations", []);
|
|
2341
2341
|
}
|
|
2342
2342
|
version(t, r) {
|
|
2343
2343
|
return this.migrations.push({
|
|
@@ -2357,7 +2357,7 @@ class Gu {
|
|
|
2357
2357
|
return o.reduce((s, c) => c.handler(s, i), r);
|
|
2358
2358
|
}
|
|
2359
2359
|
}
|
|
2360
|
-
class
|
|
2360
|
+
class Me extends Gu {
|
|
2361
2361
|
constructor() {
|
|
2362
2362
|
super(), this.configVersions();
|
|
2363
2363
|
}
|
|
@@ -2386,11 +2386,11 @@ class ze extends Gu {
|
|
|
2386
2386
|
return se(r, "version", 0) < this.VERSION;
|
|
2387
2387
|
}
|
|
2388
2388
|
}
|
|
2389
|
-
const
|
|
2389
|
+
const Z = (e, t) => {
|
|
2390
2390
|
const [r, {
|
|
2391
2391
|
setFalse: i
|
|
2392
2392
|
}] = Xe(!0), [a, o] = U();
|
|
2393
|
-
|
|
2393
|
+
q(() => (e.getItem(t).then((s) => {
|
|
2394
2394
|
o(s), i();
|
|
2395
2395
|
}), e.watchItem(t, (s) => {
|
|
2396
2396
|
o(s);
|
|
@@ -2426,7 +2426,7 @@ function Yu({
|
|
|
2426
2426
|
}) {
|
|
2427
2427
|
const {
|
|
2428
2428
|
value: t
|
|
2429
|
-
} =
|
|
2429
|
+
} = Z(e.instanceData, "config"), r = e.data, {
|
|
2430
2430
|
width: i,
|
|
2431
2431
|
height: a
|
|
2432
2432
|
} = e.viewport, {
|
|
@@ -2436,7 +2436,7 @@ function Yu({
|
|
|
2436
2436
|
xAxis3D: c,
|
|
2437
2437
|
yAxis3D: d,
|
|
2438
2438
|
zAxis3D: p
|
|
2439
|
-
} =
|
|
2439
|
+
} = $e({}, t, Hi), m = L(() => {
|
|
2440
2440
|
const w = jc(r, (y) => y[s]);
|
|
2441
2441
|
return se(w, s);
|
|
2442
2442
|
}, [r, s]), h = L(() => {
|
|
@@ -2514,14 +2514,14 @@ function Qu({
|
|
|
2514
2514
|
const {
|
|
2515
2515
|
value: t,
|
|
2516
2516
|
set: r
|
|
2517
|
-
} =
|
|
2517
|
+
} = Z(e.instanceData, "config"), i = e.data, a = $e({}, t, Hi), {
|
|
2518
2518
|
control: o,
|
|
2519
2519
|
handleSubmit: l,
|
|
2520
2520
|
reset: s
|
|
2521
|
-
} =
|
|
2521
|
+
} = ze({
|
|
2522
2522
|
defaultValues: a
|
|
2523
2523
|
});
|
|
2524
|
-
return
|
|
2524
|
+
return q(() => {
|
|
2525
2525
|
s(a);
|
|
2526
2526
|
}, [t]), t ? /* @__PURE__ */ n(S, { spacing: "xs", children: /* @__PURE__ */ u("form", { onSubmit: l(r), children: [
|
|
2527
2527
|
/* @__PURE__ */ n(C, { children: "X Axis" }),
|
|
@@ -2574,10 +2574,10 @@ function Qu({
|
|
|
2574
2574
|
] }) })
|
|
2575
2575
|
] }) }) : null;
|
|
2576
2576
|
}
|
|
2577
|
-
class Uu extends
|
|
2577
|
+
class Uu extends Me {
|
|
2578
2578
|
constructor() {
|
|
2579
2579
|
super(...arguments);
|
|
2580
|
-
|
|
2580
|
+
j(this, "VERSION", 1);
|
|
2581
2581
|
}
|
|
2582
2582
|
configVersions() {
|
|
2583
2583
|
this.version(1, (r) => ({
|
|
@@ -3058,7 +3058,7 @@ function dh({
|
|
|
3058
3058
|
onChange: r,
|
|
3059
3059
|
pt: i = "sm"
|
|
3060
3060
|
}, a) {
|
|
3061
|
-
|
|
3061
|
+
q(() => {
|
|
3062
3062
|
typeof t == "string" && (console.log(t), r({
|
|
3063
3063
|
type: t,
|
|
3064
3064
|
config: {}
|
|
@@ -3328,7 +3328,7 @@ class yh {
|
|
|
3328
3328
|
valueRange: t,
|
|
3329
3329
|
colorRange: r
|
|
3330
3330
|
}) {
|
|
3331
|
-
|
|
3331
|
+
j(this, "mapper");
|
|
3332
3332
|
this.mapper = pn(t, r);
|
|
3333
3333
|
}
|
|
3334
3334
|
getColor(t) {
|
|
@@ -3538,12 +3538,12 @@ function Lh({
|
|
|
3538
3538
|
}) {
|
|
3539
3539
|
const {
|
|
3540
3540
|
value: r
|
|
3541
|
-
} =
|
|
3541
|
+
} = Z(e.instanceData, "config"), {
|
|
3542
3542
|
variables: i
|
|
3543
3543
|
} = e, a = e.data, {
|
|
3544
3544
|
width: o,
|
|
3545
3545
|
height: l
|
|
3546
|
-
} = e.viewport, s =
|
|
3546
|
+
} = e.viewport, s = $e({}, r, Qi), c = wt({
|
|
3547
3547
|
vizManager: e.vizManager,
|
|
3548
3548
|
instance: t
|
|
3549
3549
|
}), d = yt(c.triggerManager, Hs.id), p = L(() => k.keyBy(a, s.x_axis.data_key), [a, s.x_axis.data_key]), m = He((w) => {
|
|
@@ -3611,7 +3611,7 @@ function $h({
|
|
|
3611
3611
|
fields: i,
|
|
3612
3612
|
append: a,
|
|
3613
3613
|
remove: o
|
|
3614
|
-
} =
|
|
3614
|
+
} = Oe({
|
|
3615
3615
|
control: e,
|
|
3616
3616
|
name: "reference_lines"
|
|
3617
3617
|
}), l = t("reference_lines"), s = i.map((p, m) => ({
|
|
@@ -3654,7 +3654,7 @@ const zh = ({
|
|
|
3654
3654
|
setTrue: a,
|
|
3655
3655
|
setFalse: o
|
|
3656
3656
|
}] = Xe(), [l, s] = U(e);
|
|
3657
|
-
|
|
3657
|
+
q(() => {
|
|
3658
3658
|
s(e);
|
|
3659
3659
|
}, [e]);
|
|
3660
3660
|
const c = (g) => {
|
|
@@ -3765,18 +3765,18 @@ function Rh({
|
|
|
3765
3765
|
const {
|
|
3766
3766
|
value: t,
|
|
3767
3767
|
set: r
|
|
3768
|
-
} =
|
|
3768
|
+
} = Z(e.instanceData, "config"), i = e.data, {
|
|
3769
3769
|
variables: a
|
|
3770
|
-
} = e, o = L(() =>
|
|
3770
|
+
} = e, o = L(() => $e({}, t, Qi), [t]), {
|
|
3771
3771
|
control: l,
|
|
3772
3772
|
handleSubmit: s,
|
|
3773
3773
|
watch: c,
|
|
3774
3774
|
getValues: d,
|
|
3775
3775
|
reset: p
|
|
3776
|
-
} =
|
|
3776
|
+
} = ze({
|
|
3777
3777
|
defaultValues: o
|
|
3778
3778
|
});
|
|
3779
|
-
|
|
3779
|
+
q(() => {
|
|
3780
3780
|
p(o);
|
|
3781
3781
|
}, [o]), c(["x_axis", "y_axis", "reference_lines", "color"]);
|
|
3782
3782
|
const m = d(), h = L(() => !we(m, t), [m, t]);
|
|
@@ -3888,10 +3888,10 @@ function Ph(e) {
|
|
|
3888
3888
|
};
|
|
3889
3889
|
return k.defaultsDeep(i, e);
|
|
3890
3890
|
}
|
|
3891
|
-
class Bh extends
|
|
3891
|
+
class Bh extends Me {
|
|
3892
3892
|
constructor() {
|
|
3893
3893
|
super(...arguments);
|
|
3894
|
-
|
|
3894
|
+
j(this, "VERSION", 6);
|
|
3895
3895
|
}
|
|
3896
3896
|
configVersions() {
|
|
3897
3897
|
this.version(1, (r) => ({
|
|
@@ -3999,9 +3999,9 @@ const Ui = {
|
|
|
3999
3999
|
const r = wt({
|
|
4000
4000
|
vizManager: e.vizManager,
|
|
4001
4001
|
instance: t
|
|
4002
|
-
}), i = yt(r.triggerManager, Zs.id), a =
|
|
4002
|
+
}), i = yt(r.triggerManager, Zs.id), a = te(), {
|
|
4003
4003
|
value: o
|
|
4004
|
-
} =
|
|
4004
|
+
} = Z(e.instanceData, "config"), l = L(() => _e({}, o, Ui), [o]), {
|
|
4005
4005
|
content: s,
|
|
4006
4006
|
horizontal_align: c,
|
|
4007
4007
|
vertical_align: d,
|
|
@@ -4094,10 +4094,10 @@ function Jh({
|
|
|
4094
4094
|
const {
|
|
4095
4095
|
value: t,
|
|
4096
4096
|
set: r
|
|
4097
|
-
} =
|
|
4097
|
+
} = Z(e.instanceData, "config");
|
|
4098
4098
|
e.data;
|
|
4099
4099
|
const i = L(() => _e({}, t, Ui), [t]), a = i;
|
|
4100
|
-
|
|
4100
|
+
q(() => {
|
|
4101
4101
|
!we(i, a) && (console.log("config malformed, resetting to defaults", i, a), r(a));
|
|
4102
4102
|
}, [i, a]);
|
|
4103
4103
|
const {
|
|
@@ -4106,10 +4106,10 @@ function Jh({
|
|
|
4106
4106
|
watch: s,
|
|
4107
4107
|
getValues: c,
|
|
4108
4108
|
reset: d
|
|
4109
|
-
} =
|
|
4109
|
+
} = ze({
|
|
4110
4110
|
defaultValues: a
|
|
4111
4111
|
});
|
|
4112
|
-
|
|
4112
|
+
q(() => {
|
|
4113
4113
|
d(a);
|
|
4114
4114
|
}, [a]);
|
|
4115
4115
|
const p = c(), m = L(() => !we(p, i), [p, i]);
|
|
@@ -4153,10 +4153,10 @@ function Jh({
|
|
|
4153
4153
|
] })
|
|
4154
4154
|
] });
|
|
4155
4155
|
}
|
|
4156
|
-
class ep extends
|
|
4156
|
+
class ep extends Me {
|
|
4157
4157
|
constructor() {
|
|
4158
4158
|
super(...arguments);
|
|
4159
|
-
|
|
4159
|
+
j(this, "VERSION", 2);
|
|
4160
4160
|
}
|
|
4161
4161
|
configVersions() {
|
|
4162
4162
|
this.version(1, (r) => ({
|
|
@@ -4574,13 +4574,13 @@ function bp({
|
|
|
4574
4574
|
y_axis_data_key: t,
|
|
4575
4575
|
valueTypedXAxis: w
|
|
4576
4576
|
}), F;
|
|
4577
|
-
const
|
|
4577
|
+
const W = fp({
|
|
4578
4578
|
group_by_key: o,
|
|
4579
4579
|
data: y,
|
|
4580
4580
|
x_axis_data_key: e,
|
|
4581
4581
|
y_axis_data_key: t
|
|
4582
4582
|
});
|
|
4583
|
-
return Object.entries(
|
|
4583
|
+
return Object.entries(W).map(([Q, N]) => {
|
|
4584
4584
|
const P = Pe(F);
|
|
4585
4585
|
return P.name = Q, P.color = void 0, P.data = N, P;
|
|
4586
4586
|
});
|
|
@@ -4797,7 +4797,7 @@ function Dp({
|
|
|
4797
4797
|
}), [c]), h = (g) => {
|
|
4798
4798
|
p.current = g, io(g);
|
|
4799
4799
|
};
|
|
4800
|
-
return
|
|
4800
|
+
return q(() => {
|
|
4801
4801
|
p.current && io(p.current);
|
|
4802
4802
|
}, [d]), !r || !i ? null : /* @__PURE__ */ n(et, { echarts: fe, option: d, style: {
|
|
4803
4803
|
width: r,
|
|
@@ -4813,9 +4813,9 @@ function Lp({
|
|
|
4813
4813
|
instance: t
|
|
4814
4814
|
}), {
|
|
4815
4815
|
value: i
|
|
4816
|
-
} =
|
|
4816
|
+
} = Z(e.instanceData, "config"), {
|
|
4817
4817
|
variables: a
|
|
4818
|
-
} = e, o = L(() =>
|
|
4818
|
+
} = e, o = L(() => $e({}, i, Zi), [i]), l = e.data, {
|
|
4819
4819
|
width: s,
|
|
4820
4820
|
height: c
|
|
4821
4821
|
} = e.viewport, {
|
|
@@ -4870,7 +4870,7 @@ const ea = ke(({
|
|
|
4870
4870
|
/* @__PURE__ */ n(O, { sx: {
|
|
4871
4871
|
flexGrow: 1
|
|
4872
4872
|
}, children: /* @__PURE__ */ n(Ye, { label: "Slider for X Axis", checked: e.x_axis_slider, onChange: (a) => i("x_axis_slider")(a.currentTarget.checked) }) }),
|
|
4873
|
-
/* @__PURE__ */ n(
|
|
4873
|
+
/* @__PURE__ */ n(Ee, { label: "Not available for now, will overlap y-axis's label", children: /* @__PURE__ */ n(O, { sx: {
|
|
4874
4874
|
flexGrow: 1
|
|
4875
4875
|
}, children: /* @__PURE__ */ n(Ye, { label: "Slider for Y Axis", disabled: !e.y_axis_slider, checked: e.y_axis_slider, onChange: (a) => i("y_axis_slider")(a.currentTarget.checked) }) }) })
|
|
4876
4876
|
] })
|
|
@@ -4943,7 +4943,7 @@ function Mp({
|
|
|
4943
4943
|
fields: i,
|
|
4944
4944
|
append: a,
|
|
4945
4945
|
remove: o
|
|
4946
|
-
} =
|
|
4946
|
+
} = Oe({
|
|
4947
4947
|
control: e,
|
|
4948
4948
|
name: "reference_areas"
|
|
4949
4949
|
}), l = t("reference_areas"), s = i.map((p, m) => ({
|
|
@@ -5085,7 +5085,7 @@ function Op({
|
|
|
5085
5085
|
fields: i,
|
|
5086
5086
|
append: a,
|
|
5087
5087
|
remove: o
|
|
5088
|
-
} =
|
|
5088
|
+
} = Oe({
|
|
5089
5089
|
control: e,
|
|
5090
5090
|
name: "reference_lines"
|
|
5091
5091
|
}), l = t("reference_lines"), s = i.map((h, g) => ({
|
|
@@ -5244,7 +5244,7 @@ function Bp({
|
|
|
5244
5244
|
fields: i,
|
|
5245
5245
|
append: a,
|
|
5246
5246
|
remove: o
|
|
5247
|
-
} =
|
|
5247
|
+
} = Oe({
|
|
5248
5248
|
control: e,
|
|
5249
5249
|
name: "regressions"
|
|
5250
5250
|
}), l = t("regressions"), s = i.map((m, h) => ({
|
|
@@ -5668,7 +5668,7 @@ function em({
|
|
|
5668
5668
|
fields: i,
|
|
5669
5669
|
append: a,
|
|
5670
5670
|
remove: o
|
|
5671
|
-
} =
|
|
5671
|
+
} = Oe({
|
|
5672
5672
|
control: e,
|
|
5673
5673
|
name: "series"
|
|
5674
5674
|
}), l = t("series"), s = i.map((m, h) => ({
|
|
@@ -5855,7 +5855,7 @@ function om({
|
|
|
5855
5855
|
fields: r,
|
|
5856
5856
|
append: i,
|
|
5857
5857
|
remove: a
|
|
5858
|
-
} =
|
|
5858
|
+
} = Oe({
|
|
5859
5859
|
control: e,
|
|
5860
5860
|
name: "y_axes"
|
|
5861
5861
|
}), o = t("y_axes"), l = r.map((c, d) => ({
|
|
@@ -5887,7 +5887,7 @@ function sm({
|
|
|
5887
5887
|
const {
|
|
5888
5888
|
value: t,
|
|
5889
5889
|
set: r
|
|
5890
|
-
} =
|
|
5890
|
+
} = Z(e.instanceData, "config"), {
|
|
5891
5891
|
variables: i
|
|
5892
5892
|
} = e, a = e.data, o = L(() => _e({}, t, Zi), [t]), {
|
|
5893
5893
|
control: l,
|
|
@@ -5895,10 +5895,10 @@ function sm({
|
|
|
5895
5895
|
watch: c,
|
|
5896
5896
|
getValues: d,
|
|
5897
5897
|
reset: p
|
|
5898
|
-
} =
|
|
5898
|
+
} = ze({
|
|
5899
5899
|
defaultValues: o
|
|
5900
5900
|
});
|
|
5901
|
-
|
|
5901
|
+
q(() => {
|
|
5902
5902
|
p(o);
|
|
5903
5903
|
}, [o]);
|
|
5904
5904
|
const m = d(), h = L(() => !we(m, o), [m, o]);
|
|
@@ -6178,10 +6178,10 @@ function wm(e) {
|
|
|
6178
6178
|
})
|
|
6179
6179
|
};
|
|
6180
6180
|
}
|
|
6181
|
-
class _m extends
|
|
6181
|
+
class _m extends Me {
|
|
6182
6182
|
constructor() {
|
|
6183
6183
|
super(...arguments);
|
|
6184
|
-
|
|
6184
|
+
j(this, "VERSION", 15);
|
|
6185
6185
|
}
|
|
6186
6186
|
configVersions() {
|
|
6187
6187
|
this.version(1, (r) => ({
|
|
@@ -6439,7 +6439,7 @@ function Rm({
|
|
|
6439
6439
|
}) {
|
|
6440
6440
|
const {
|
|
6441
6441
|
value: t
|
|
6442
|
-
} =
|
|
6442
|
+
} = Z(e.instanceData, "config"), r = L(() => $e({}, t, na), [t]), i = e.data, {
|
|
6443
6443
|
width: a,
|
|
6444
6444
|
height: o
|
|
6445
6445
|
} = e.viewport;
|
|
@@ -6575,7 +6575,7 @@ const Em = [{
|
|
|
6575
6575
|
width: "100%"
|
|
6576
6576
|
}, children: [
|
|
6577
6577
|
/* @__PURE__ */ n(C, { children: "Min Value" }),
|
|
6578
|
-
/* @__PURE__ */ n(
|
|
6578
|
+
/* @__PURE__ */ n(Ee, { label: "Check to enable specific min value", children: /* @__PURE__ */ n(O, { children: /* @__PURE__ */ n(x, { name: `series.${i}.min.enable_value`, control: t, render: ({
|
|
6579
6579
|
field: d
|
|
6580
6580
|
}) => /* @__PURE__ */ n(ve, { size: "xs", checked: d.value, onChange: (p) => d.onChange(p.currentTarget.checked) }) }) }) })
|
|
6581
6581
|
] }), ...c }) }),
|
|
@@ -6592,7 +6592,7 @@ const Em = [{
|
|
|
6592
6592
|
width: "100%"
|
|
6593
6593
|
}, children: [
|
|
6594
6594
|
/* @__PURE__ */ n(C, { children: "Max Value" }),
|
|
6595
|
-
/* @__PURE__ */ n(
|
|
6595
|
+
/* @__PURE__ */ n(Ee, { label: "Check to enable specific max value", children: /* @__PURE__ */ n(O, { children: /* @__PURE__ */ n(x, { name: `series.${i}.max.enable_value`, control: t, render: ({
|
|
6596
6596
|
field: d
|
|
6597
6597
|
}) => /* @__PURE__ */ n(ve, { size: "xs", checked: d.value, onChange: (p) => d.onChange(p.currentTarget.checked) }) }) }) })
|
|
6598
6598
|
] }), ...c }) }),
|
|
@@ -6636,14 +6636,14 @@ const Em = [{
|
|
|
6636
6636
|
fields: i,
|
|
6637
6637
|
append: a,
|
|
6638
6638
|
remove: o
|
|
6639
|
-
} =
|
|
6639
|
+
} = Oe({
|
|
6640
6640
|
control: e,
|
|
6641
6641
|
name: "series"
|
|
6642
6642
|
}), l = t("series"), s = i.map((m, h) => ({
|
|
6643
6643
|
...m,
|
|
6644
6644
|
...l[h]
|
|
6645
6645
|
})), c = k.get(s, "0.id"), [d, p] = U(c ?? null);
|
|
6646
|
-
return
|
|
6646
|
+
return q(() => {
|
|
6647
6647
|
c && p((m) => m !== null ? m : c);
|
|
6648
6648
|
}, [c]), /* @__PURE__ */ u(b, { value: d, onTabChange: (m) => p(m), styles: {
|
|
6649
6649
|
panel: {
|
|
@@ -6653,7 +6653,7 @@ const Em = [{
|
|
|
6653
6653
|
}, children: [
|
|
6654
6654
|
/* @__PURE__ */ u(b.List, { children: [
|
|
6655
6655
|
s.map((m, h) => /* @__PURE__ */ n(b.Tab, { value: m.id, children: m.name }, m.id)),
|
|
6656
|
-
/* @__PURE__ */ n(b.Tab, { value: "add", disabled: !0, children: /* @__PURE__ */ n(
|
|
6656
|
+
/* @__PURE__ */ n(b.Tab, { value: "add", disabled: !0, children: /* @__PURE__ */ n(Ee, { label: "TODO", children: /* @__PURE__ */ n(Ut, { children: /* @__PURE__ */ n(Pt, { size: 18, color: "#228be6" }) }) }) })
|
|
6657
6657
|
] }),
|
|
6658
6658
|
s.map((m, h) => /* @__PURE__ */ n(b.Panel, { value: m.id, children: /* @__PURE__ */ n(Bm, { item: m, control: e, index: h, remove: o, data: r }) }, m.id))
|
|
6659
6659
|
] });
|
|
@@ -6664,16 +6664,16 @@ function qm({
|
|
|
6664
6664
|
const {
|
|
6665
6665
|
value: t,
|
|
6666
6666
|
set: r
|
|
6667
|
-
} =
|
|
6667
|
+
} = Z(e.instanceData, "config"), i = e.data, a = L(() => k.defaultsDeep({}, t, na), [t]), {
|
|
6668
6668
|
control: o,
|
|
6669
6669
|
handleSubmit: l,
|
|
6670
6670
|
watch: s,
|
|
6671
6671
|
getValues: c,
|
|
6672
6672
|
reset: d
|
|
6673
|
-
} =
|
|
6673
|
+
} = ze({
|
|
6674
6674
|
defaultValues: a
|
|
6675
6675
|
});
|
|
6676
|
-
|
|
6676
|
+
q(() => {
|
|
6677
6677
|
d(a);
|
|
6678
6678
|
}, [a]), s([]);
|
|
6679
6679
|
const p = c(), m = L(() => !k.isEqual(p, a), [p, a]);
|
|
@@ -6714,10 +6714,10 @@ function Wm(e) {
|
|
|
6714
6714
|
})
|
|
6715
6715
|
};
|
|
6716
6716
|
}
|
|
6717
|
-
class jm extends
|
|
6717
|
+
class jm extends Me {
|
|
6718
6718
|
constructor() {
|
|
6719
6719
|
super(...arguments);
|
|
6720
|
-
|
|
6720
|
+
j(this, "VERSION", 2);
|
|
6721
6721
|
}
|
|
6722
6722
|
configVersions() {
|
|
6723
6723
|
this.version(1, (r) => ({
|
|
@@ -7112,9 +7112,9 @@ function sg({
|
|
|
7112
7112
|
instance: t
|
|
7113
7113
|
}), {
|
|
7114
7114
|
value: i
|
|
7115
|
-
} =
|
|
7115
|
+
} = Z(e.instanceData, "config"), {
|
|
7116
7116
|
variables: a
|
|
7117
|
-
} = e, o = L(() =>
|
|
7117
|
+
} = e, o = L(() => $e({}, i, ia), [i]), l = e.data, {
|
|
7118
7118
|
width: s,
|
|
7119
7119
|
height: c
|
|
7120
7120
|
} = e.viewport;
|
|
@@ -7184,7 +7184,7 @@ const cg = ({
|
|
|
7184
7184
|
fields: i,
|
|
7185
7185
|
append: a,
|
|
7186
7186
|
remove: o
|
|
7187
|
-
} =
|
|
7187
|
+
} = Oe({
|
|
7188
7188
|
control: e,
|
|
7189
7189
|
name: "tooltip.metrics"
|
|
7190
7190
|
}), l = t("tooltip.metrics"), s = i.map((h, g) => ({
|
|
@@ -7195,7 +7195,7 @@ const cg = ({
|
|
|
7195
7195
|
data_key: "",
|
|
7196
7196
|
name: ""
|
|
7197
7197
|
}), d = t("tooltip.metrics.0.id"), [p, m] = U(() => d ?? null);
|
|
7198
|
-
return
|
|
7198
|
+
return q(() => {
|
|
7199
7199
|
d && m((h) => h !== null ? h : d);
|
|
7200
7200
|
}, [d]), /* @__PURE__ */ u(G, { children: [
|
|
7201
7201
|
/* @__PURE__ */ u(v, { spacing: 2, sx: {
|
|
@@ -7259,7 +7259,7 @@ const hg = ({
|
|
|
7259
7259
|
setTrue: a,
|
|
7260
7260
|
setFalse: o
|
|
7261
7261
|
}] = Xe(), [l, s] = U(e);
|
|
7262
|
-
|
|
7262
|
+
q(() => {
|
|
7263
7263
|
s(e);
|
|
7264
7264
|
}, [e]);
|
|
7265
7265
|
const c = (g) => {
|
|
@@ -7407,8 +7407,8 @@ function bg({
|
|
|
7407
7407
|
const {
|
|
7408
7408
|
value: t,
|
|
7409
7409
|
set: r
|
|
7410
|
-
} =
|
|
7411
|
-
|
|
7410
|
+
} = Z(e.instanceData, "config"), i = e.data, a = L(() => _e({}, t, ia), [t]), o = L(() => k.cloneDeep(a), [a]);
|
|
7411
|
+
q(() => {
|
|
7412
7412
|
!we(a, o) && (console.log("config malformed, resetting to defaults", a, o), r(o));
|
|
7413
7413
|
}, [a, o]);
|
|
7414
7414
|
const {
|
|
@@ -7417,10 +7417,10 @@ function bg({
|
|
|
7417
7417
|
watch: c,
|
|
7418
7418
|
getValues: d,
|
|
7419
7419
|
reset: p
|
|
7420
|
-
} =
|
|
7420
|
+
} = ze({
|
|
7421
7421
|
defaultValues: o
|
|
7422
7422
|
});
|
|
7423
|
-
|
|
7423
|
+
q(() => {
|
|
7424
7424
|
p(o);
|
|
7425
7425
|
}, [o]);
|
|
7426
7426
|
const m = d(), h = L(() => !we(m, a), [m, a]);
|
|
@@ -7455,10 +7455,10 @@ function bg({
|
|
|
7455
7455
|
] })
|
|
7456
7456
|
] }) });
|
|
7457
7457
|
}
|
|
7458
|
-
class xg extends
|
|
7458
|
+
class xg extends Me {
|
|
7459
7459
|
constructor() {
|
|
7460
7460
|
super(...arguments);
|
|
7461
|
-
|
|
7461
|
+
j(this, "VERSION", 1);
|
|
7462
7462
|
}
|
|
7463
7463
|
configVersions() {
|
|
7464
7464
|
this.version(1, (r) => (console.log("🟥 unexpected calling"), {
|
|
@@ -7782,10 +7782,10 @@ function Mg({
|
|
|
7782
7782
|
}) {
|
|
7783
7783
|
const {
|
|
7784
7784
|
value: r
|
|
7785
|
-
} =
|
|
7785
|
+
} = Z(e.instanceData, "config"), i = e.data, {
|
|
7786
7786
|
width: a,
|
|
7787
7787
|
height: o
|
|
7788
|
-
} = e.viewport, l =
|
|
7788
|
+
} = e.viewport, l = $e({}, r, aa), s = zg(l, i), c = wt({
|
|
7789
7789
|
vizManager: e.vizManager,
|
|
7790
7790
|
instance: t
|
|
7791
7791
|
}), d = yt(c.triggerManager, tl.id), p = L(() => k.keyBy(i, l.x_axis.data_key), [i, l.x_axis.data_key]), m = He((g) => {
|
|
@@ -7993,16 +7993,16 @@ function qg({
|
|
|
7993
7993
|
const {
|
|
7994
7994
|
value: t,
|
|
7995
7995
|
set: r
|
|
7996
|
-
} =
|
|
7996
|
+
} = Z(e.instanceData, "config"), i = e.data, a = L(() => $e({}, t, aa), [t]), {
|
|
7997
7997
|
control: o,
|
|
7998
7998
|
handleSubmit: l,
|
|
7999
7999
|
watch: s,
|
|
8000
8000
|
getValues: c,
|
|
8001
8001
|
reset: d
|
|
8002
|
-
} =
|
|
8002
|
+
} = ze({
|
|
8003
8003
|
defaultValues: a
|
|
8004
8004
|
});
|
|
8005
|
-
|
|
8005
|
+
q(() => {
|
|
8006
8006
|
d(a);
|
|
8007
8007
|
}, [a]), s(["x_axis", "data_key", "bar", "line", "dataZoom"]);
|
|
8008
8008
|
const p = c(), m = L(() => !we(p, t), [p, t]);
|
|
@@ -8139,10 +8139,10 @@ function Ug(e) {
|
|
|
8139
8139
|
};
|
|
8140
8140
|
return k.defaultsDeep(i, e);
|
|
8141
8141
|
}
|
|
8142
|
-
class Xg extends
|
|
8142
|
+
class Xg extends Me {
|
|
8143
8143
|
constructor() {
|
|
8144
8144
|
super(...arguments);
|
|
8145
|
-
|
|
8145
|
+
j(this, "VERSION", 8);
|
|
8146
8146
|
}
|
|
8147
8147
|
configVersions() {
|
|
8148
8148
|
this.version(1, (r) => ({
|
|
@@ -8347,7 +8347,7 @@ function nf({
|
|
|
8347
8347
|
}) {
|
|
8348
8348
|
const {
|
|
8349
8349
|
value: t
|
|
8350
|
-
} =
|
|
8350
|
+
} = Z(e.instanceData, "config"), r = e.data, {
|
|
8351
8351
|
width: i,
|
|
8352
8352
|
height: a
|
|
8353
8353
|
} = e.viewport, o = L(() => tf(_e({}, t, oa), r, i), [t, r, i]);
|
|
@@ -8362,16 +8362,16 @@ function rf({
|
|
|
8362
8362
|
const {
|
|
8363
8363
|
value: t,
|
|
8364
8364
|
set: r
|
|
8365
|
-
} =
|
|
8365
|
+
} = Z(e.instanceData, "config"), i = e.data, a = L(() => _e({}, t, oa), [t]), o = L(() => k.clone(a), [a]), {
|
|
8366
8366
|
control: l,
|
|
8367
8367
|
handleSubmit: s,
|
|
8368
8368
|
watch: c,
|
|
8369
8369
|
getValues: d,
|
|
8370
8370
|
reset: p
|
|
8371
|
-
} =
|
|
8371
|
+
} = ze({
|
|
8372
8372
|
defaultValues: o
|
|
8373
8373
|
});
|
|
8374
|
-
|
|
8374
|
+
q(() => {
|
|
8375
8375
|
p(o);
|
|
8376
8376
|
}, [o]);
|
|
8377
8377
|
const m = d(), h = L(() => !k.isEqual(m, a), [m, a]);
|
|
@@ -8409,10 +8409,10 @@ function af(e) {
|
|
|
8409
8409
|
color_field: t
|
|
8410
8410
|
};
|
|
8411
8411
|
}
|
|
8412
|
-
class of extends
|
|
8412
|
+
class of extends Me {
|
|
8413
8413
|
constructor() {
|
|
8414
8414
|
super(...arguments);
|
|
8415
|
-
|
|
8415
|
+
j(this, "VERSION", 2);
|
|
8416
8416
|
}
|
|
8417
8417
|
configVersions() {
|
|
8418
8418
|
this.version(1, (r) => ({
|
|
@@ -8643,7 +8643,7 @@ function gf({
|
|
|
8643
8643
|
instance: t
|
|
8644
8644
|
}), {
|
|
8645
8645
|
value: i
|
|
8646
|
-
} =
|
|
8646
|
+
} = Z(e.instanceData, "config"), {
|
|
8647
8647
|
variables: a
|
|
8648
8648
|
} = e, o = L(() => k.defaults({}, i, Cr), [i]), l = e.data, {
|
|
8649
8649
|
width: s,
|
|
@@ -8700,7 +8700,7 @@ function bf({
|
|
|
8700
8700
|
fields: i,
|
|
8701
8701
|
append: a,
|
|
8702
8702
|
remove: o
|
|
8703
|
-
} =
|
|
8703
|
+
} = Oe({
|
|
8704
8704
|
control: e,
|
|
8705
8705
|
name: "dimensions"
|
|
8706
8706
|
}), l = t("dimensions"), s = i.map((g, w) => ({
|
|
@@ -8716,7 +8716,7 @@ function bf({
|
|
|
8716
8716
|
formatter: je
|
|
8717
8717
|
});
|
|
8718
8718
|
}, d = k.get(s, "0.id", null), [p, m] = U(d);
|
|
8719
|
-
|
|
8719
|
+
q(() => {
|
|
8720
8720
|
m((g) => g || d);
|
|
8721
8721
|
}, [d]);
|
|
8722
8722
|
const h = (g) => {
|
|
@@ -8749,16 +8749,16 @@ function xf({
|
|
|
8749
8749
|
const {
|
|
8750
8750
|
value: t,
|
|
8751
8751
|
set: r
|
|
8752
|
-
} =
|
|
8752
|
+
} = Z(e.instanceData, "config"), i = e.data, a = L(() => _e({}, t, Cr), [t]), {
|
|
8753
8753
|
control: o,
|
|
8754
8754
|
handleSubmit: l,
|
|
8755
8755
|
watch: s,
|
|
8756
8756
|
getValues: c,
|
|
8757
8757
|
reset: d
|
|
8758
|
-
} =
|
|
8758
|
+
} = ze({
|
|
8759
8759
|
defaultValues: a
|
|
8760
8760
|
});
|
|
8761
|
-
|
|
8761
|
+
q(() => {
|
|
8762
8762
|
d(a);
|
|
8763
8763
|
}, [a]), s(["series_name_key", "background", "label"]);
|
|
8764
8764
|
const p = c(), m = L(() => !we(p, a), [p, a]);
|
|
@@ -8834,10 +8834,10 @@ function wf(e) {
|
|
|
8834
8834
|
};
|
|
8835
8835
|
return k.defaultsDeep(t, e);
|
|
8836
8836
|
}
|
|
8837
|
-
class _f extends
|
|
8837
|
+
class _f extends Me {
|
|
8838
8838
|
constructor() {
|
|
8839
8839
|
super(...arguments);
|
|
8840
|
-
|
|
8840
|
+
j(this, "VERSION", 4);
|
|
8841
8841
|
}
|
|
8842
8842
|
configVersions() {
|
|
8843
8843
|
this.version(1, (r) => ({
|
|
@@ -9347,7 +9347,7 @@ function qf({
|
|
|
9347
9347
|
}) {
|
|
9348
9348
|
const {
|
|
9349
9349
|
value: t
|
|
9350
|
-
} =
|
|
9350
|
+
} = Z(e.instanceData, "config"), {
|
|
9351
9351
|
width: r,
|
|
9352
9352
|
height: i
|
|
9353
9353
|
} = e.viewport, a = L(() => {
|
|
@@ -9446,7 +9446,7 @@ const Gf = ({
|
|
|
9446
9446
|
setTrue: o,
|
|
9447
9447
|
setFalse: l
|
|
9448
9448
|
}] = Xe(), [s, c] = U(e);
|
|
9449
|
-
|
|
9449
|
+
q(() => {
|
|
9450
9450
|
c(e);
|
|
9451
9451
|
}, [e]);
|
|
9452
9452
|
const d = (w) => {
|
|
@@ -9559,16 +9559,16 @@ function Qf({
|
|
|
9559
9559
|
const {
|
|
9560
9560
|
value: t,
|
|
9561
9561
|
set: r
|
|
9562
|
-
} =
|
|
9562
|
+
} = Z(e.instanceData, "config"), i = e.data, a = L(() => $e({}, t, sa), [t]), {
|
|
9563
9563
|
control: o,
|
|
9564
9564
|
handleSubmit: l,
|
|
9565
9565
|
watch: s,
|
|
9566
9566
|
getValues: c,
|
|
9567
9567
|
reset: d
|
|
9568
|
-
} =
|
|
9568
|
+
} = ze({
|
|
9569
9569
|
defaultValues: a
|
|
9570
9570
|
});
|
|
9571
|
-
|
|
9571
|
+
q(() => {
|
|
9572
9572
|
d(a);
|
|
9573
9573
|
}, [a]), s(["x_axis", "y_axis", "regression"]);
|
|
9574
9574
|
const p = c(), m = L(() => !we(p, t), [p, t]);
|
|
@@ -9613,10 +9613,10 @@ function Uf(e) {
|
|
|
9613
9613
|
};
|
|
9614
9614
|
return k.defaultsDeep(t, e);
|
|
9615
9615
|
}
|
|
9616
|
-
class Xf extends
|
|
9616
|
+
class Xf extends Me {
|
|
9617
9617
|
constructor() {
|
|
9618
9618
|
super(...arguments);
|
|
9619
|
-
|
|
9619
|
+
j(this, "VERSION", 2);
|
|
9620
9620
|
}
|
|
9621
9621
|
configVersions() {
|
|
9622
9622
|
this.version(1, (r) => ({
|
|
@@ -9650,7 +9650,7 @@ function Kf({
|
|
|
9650
9650
|
}) {
|
|
9651
9651
|
const {
|
|
9652
9652
|
value: t
|
|
9653
|
-
} =
|
|
9653
|
+
} = Z(e.instanceData, "config"), r = L(() => $e({}, t, Tr), [t]);
|
|
9654
9654
|
return r != null && r.content ? /* @__PURE__ */ n(br, { value: r.content, styles: {
|
|
9655
9655
|
root: {
|
|
9656
9656
|
border: "none",
|
|
@@ -9697,7 +9697,7 @@ const la = ke(({
|
|
|
9697
9697
|
s(h.getHTML());
|
|
9698
9698
|
}
|
|
9699
9699
|
});
|
|
9700
|
-
|
|
9700
|
+
q(() => {
|
|
9701
9701
|
s(e), c == null || c.commands.setContent(e);
|
|
9702
9702
|
}, [e]);
|
|
9703
9703
|
const d = () => {
|
|
@@ -9761,15 +9761,15 @@ function eb({
|
|
|
9761
9761
|
const {
|
|
9762
9762
|
value: t,
|
|
9763
9763
|
set: r
|
|
9764
|
-
} =
|
|
9764
|
+
} = Z(e.instanceData, "config"), i = L(() => $e({}, t, Tr), [t]), {
|
|
9765
9765
|
control: a,
|
|
9766
9766
|
handleSubmit: o,
|
|
9767
9767
|
watch: l,
|
|
9768
9768
|
reset: s
|
|
9769
|
-
} =
|
|
9769
|
+
} = ze({
|
|
9770
9770
|
defaultValues: i
|
|
9771
9771
|
});
|
|
9772
|
-
l("content"),
|
|
9772
|
+
l("content"), q(() => {
|
|
9773
9773
|
s(i);
|
|
9774
9774
|
}, [i]);
|
|
9775
9775
|
const c = Do(null), d = () => {
|
|
@@ -9800,13 +9800,13 @@ function eb({
|
|
|
9800
9800
|
}, label: "Content", onSubmit: d }) })
|
|
9801
9801
|
] }) });
|
|
9802
9802
|
}
|
|
9803
|
-
class tb extends
|
|
9803
|
+
class tb extends Me {
|
|
9804
9804
|
constructor() {
|
|
9805
9805
|
super(...arguments);
|
|
9806
|
-
|
|
9806
|
+
j(this, "VERSION", 1);
|
|
9807
9807
|
}
|
|
9808
9808
|
fixMalformedConfig(r) {
|
|
9809
|
-
return
|
|
9809
|
+
return $e({}, r, Tr);
|
|
9810
9810
|
}
|
|
9811
9811
|
configVersions() {
|
|
9812
9812
|
this.version(1, (r) => ({
|
|
@@ -10343,9 +10343,9 @@ function wb({
|
|
|
10343
10343
|
instance: t
|
|
10344
10344
|
}), {
|
|
10345
10345
|
value: i
|
|
10346
|
-
} =
|
|
10346
|
+
} = Z(e.instanceData, "config"), {
|
|
10347
10347
|
variables: a
|
|
10348
|
-
} = e, o = L(() =>
|
|
10348
|
+
} = e, o = L(() => $e({}, i, ca), [i]), l = e.data, {
|
|
10349
10349
|
width: s,
|
|
10350
10350
|
height: c
|
|
10351
10351
|
} = e.viewport, {
|
|
@@ -10457,7 +10457,7 @@ function Sb({
|
|
|
10457
10457
|
fields: i,
|
|
10458
10458
|
append: a,
|
|
10459
10459
|
remove: o
|
|
10460
|
-
} =
|
|
10460
|
+
} = Oe({
|
|
10461
10461
|
control: e,
|
|
10462
10462
|
name: "reference_areas"
|
|
10463
10463
|
}), l = t("reference_areas"), s = i.map((h, g) => ({
|
|
@@ -10601,7 +10601,7 @@ function Lb({
|
|
|
10601
10601
|
fields: i,
|
|
10602
10602
|
append: a,
|
|
10603
10603
|
remove: o
|
|
10604
|
-
} =
|
|
10604
|
+
} = Oe({
|
|
10605
10605
|
control: e,
|
|
10606
10606
|
name: "reference_lines"
|
|
10607
10607
|
}), l = t("reference_lines"), s = i.map((h, g) => ({
|
|
@@ -10994,7 +10994,7 @@ const Gb = ({
|
|
|
10994
10994
|
fields: i,
|
|
10995
10995
|
append: a,
|
|
10996
10996
|
remove: o
|
|
10997
|
-
} =
|
|
10997
|
+
} = Oe({
|
|
10998
10998
|
control: e,
|
|
10999
10999
|
name: "tooltip.metrics"
|
|
11000
11000
|
}), l = t("tooltip.metrics"), s = i.map((h, g) => ({
|
|
@@ -11005,7 +11005,7 @@ const Gb = ({
|
|
|
11005
11005
|
data_key: "",
|
|
11006
11006
|
name: ""
|
|
11007
11007
|
}), d = t("tooltip.metrics.0.id"), [p, m] = U(() => d ?? null);
|
|
11008
|
-
return
|
|
11008
|
+
return q(() => {
|
|
11009
11009
|
d && m((h) => h !== null ? h : d);
|
|
11010
11010
|
}, [d]), /* @__PURE__ */ u(G, { children: [
|
|
11011
11011
|
/* @__PURE__ */ u(v, { spacing: 2, sx: {
|
|
@@ -11078,7 +11078,7 @@ const Ub = ({
|
|
|
11078
11078
|
setTrue: a,
|
|
11079
11079
|
setFalse: o
|
|
11080
11080
|
}] = Xe(), [l, s] = U(e);
|
|
11081
|
-
|
|
11081
|
+
q(() => {
|
|
11082
11082
|
s(e);
|
|
11083
11083
|
}, [e]);
|
|
11084
11084
|
const c = (g) => {
|
|
@@ -11231,7 +11231,7 @@ function tx({
|
|
|
11231
11231
|
fields: r,
|
|
11232
11232
|
append: i,
|
|
11233
11233
|
remove: a
|
|
11234
|
-
} =
|
|
11234
|
+
} = Oe({
|
|
11235
11235
|
control: e,
|
|
11236
11236
|
name: "y_axes"
|
|
11237
11237
|
}), o = t("y_axes"), l = r.map((c, d) => ({
|
|
@@ -11282,10 +11282,10 @@ function ix({
|
|
|
11282
11282
|
const {
|
|
11283
11283
|
value: t,
|
|
11284
11284
|
set: r
|
|
11285
|
-
} =
|
|
11285
|
+
} = Z(e.instanceData, "config"), {
|
|
11286
11286
|
variables: i
|
|
11287
11287
|
} = e, a = e.data, o = L(() => _e({}, t, ca), [t]), l = L(() => rx(o), [o]);
|
|
11288
|
-
|
|
11288
|
+
q(() => {
|
|
11289
11289
|
!we(o, l) && (console.log("config malformed, resetting to defaults", o, l), r(l));
|
|
11290
11290
|
}, [o, l]);
|
|
11291
11291
|
const {
|
|
@@ -11294,10 +11294,10 @@ function ix({
|
|
|
11294
11294
|
watch: d,
|
|
11295
11295
|
getValues: p,
|
|
11296
11296
|
reset: m
|
|
11297
|
-
} =
|
|
11297
|
+
} = ze({
|
|
11298
11298
|
defaultValues: l
|
|
11299
11299
|
});
|
|
11300
|
-
|
|
11300
|
+
q(() => {
|
|
11301
11301
|
m(l);
|
|
11302
11302
|
}, [l]);
|
|
11303
11303
|
const h = p(), g = L(() => !we(h, o), [h, o]);
|
|
@@ -11406,10 +11406,10 @@ function cx(e) {
|
|
|
11406
11406
|
};
|
|
11407
11407
|
return k.defaultsDeep({}, e, t);
|
|
11408
11408
|
}
|
|
11409
|
-
class dx extends
|
|
11409
|
+
class dx extends Me {
|
|
11410
11410
|
constructor() {
|
|
11411
11411
|
super(...arguments);
|
|
11412
|
-
|
|
11412
|
+
j(this, "VERSION", 8);
|
|
11413
11413
|
}
|
|
11414
11414
|
configVersions() {
|
|
11415
11415
|
this.version(1, (r) => ({
|
|
@@ -11545,10 +11545,10 @@ function gx(e) {
|
|
|
11545
11545
|
const t = Pe(e), r = se(t, "color.valueRange");
|
|
11546
11546
|
return r !== void 0 && Vi(t, "color.valueRange", r.map((i) => Number(i))), t;
|
|
11547
11547
|
}
|
|
11548
|
-
class fx extends
|
|
11548
|
+
class fx extends Me {
|
|
11549
11549
|
constructor() {
|
|
11550
11550
|
super(...arguments);
|
|
11551
|
-
|
|
11551
|
+
j(this, "VERSION", 2);
|
|
11552
11552
|
}
|
|
11553
11553
|
configVersions() {
|
|
11554
11554
|
this.version(1, (r) => ({
|
|
@@ -11590,9 +11590,9 @@ const bx = {
|
|
|
11590
11590
|
}, yx = D(({
|
|
11591
11591
|
context: e
|
|
11592
11592
|
}) => {
|
|
11593
|
-
const t =
|
|
11593
|
+
const t = te(), {
|
|
11594
11594
|
value: r = da
|
|
11595
|
-
} =
|
|
11595
|
+
} = Z(e.instanceData, "config"), {
|
|
11596
11596
|
variables: i
|
|
11597
11597
|
} = e, {
|
|
11598
11598
|
template: a,
|
|
@@ -11643,13 +11643,13 @@ function _x({
|
|
|
11643
11643
|
const {
|
|
11644
11644
|
value: t,
|
|
11645
11645
|
set: r
|
|
11646
|
-
} =
|
|
11646
|
+
} = Z(e.instanceData, "config"), i = $.useMemo(() => _e({}, t, da), [t]), {
|
|
11647
11647
|
control: a,
|
|
11648
11648
|
handleSubmit: o,
|
|
11649
11649
|
watch: l,
|
|
11650
11650
|
getValues: s,
|
|
11651
11651
|
reset: c
|
|
11652
|
-
} =
|
|
11652
|
+
} = ze({
|
|
11653
11653
|
defaultValues: i
|
|
11654
11654
|
});
|
|
11655
11655
|
$.useEffect(() => {
|
|
@@ -11850,7 +11850,7 @@ function Ax({
|
|
|
11850
11850
|
variables: t
|
|
11851
11851
|
} = e, {
|
|
11852
11852
|
value: r
|
|
11853
|
-
} =
|
|
11853
|
+
} = Z(e.instanceData, "config"), i = L(() => $e({}, r, ua), [r]), a = e.data, {
|
|
11854
11854
|
width: o,
|
|
11855
11855
|
height: l
|
|
11856
11856
|
} = e.viewport, s = L(() => Mx(i, a, t), [i, a, t]);
|
|
@@ -11942,7 +11942,7 @@ const Ex = [{
|
|
|
11942
11942
|
fields: i,
|
|
11943
11943
|
append: a,
|
|
11944
11944
|
remove: o
|
|
11945
|
-
} =
|
|
11945
|
+
} = Oe({
|
|
11946
11946
|
control: e,
|
|
11947
11947
|
name: "levels"
|
|
11948
11948
|
}), l = t("levels"), s = i.map((h, g) => ({
|
|
@@ -11960,7 +11960,7 @@ const Ex = [{
|
|
|
11960
11960
|
padding: 0
|
|
11961
11961
|
}
|
|
11962
11962
|
}), d = t("levels.0.id"), [p, m] = U(() => d ?? null);
|
|
11963
|
-
return
|
|
11963
|
+
return q(() => {
|
|
11964
11964
|
d && m((h) => h !== null ? h : d);
|
|
11965
11965
|
}, [d]), /* @__PURE__ */ u(G, { children: [
|
|
11966
11966
|
/* @__PURE__ */ u(v, { spacing: 2, sx: {
|
|
@@ -11995,16 +11995,16 @@ function Px({
|
|
|
11995
11995
|
const {
|
|
11996
11996
|
value: t,
|
|
11997
11997
|
set: r
|
|
11998
|
-
} =
|
|
11998
|
+
} = Z(e.instanceData, "config"), i = e.data, a = L(() => _e({}, t, ua), [t]), o = L(() => k.clone(a), [a]), {
|
|
11999
11999
|
control: l,
|
|
12000
12000
|
handleSubmit: s,
|
|
12001
12001
|
watch: c,
|
|
12002
12002
|
getValues: d,
|
|
12003
12003
|
reset: p
|
|
12004
|
-
} =
|
|
12004
|
+
} = ze({
|
|
12005
12005
|
defaultValues: o
|
|
12006
12006
|
});
|
|
12007
|
-
|
|
12007
|
+
q(() => {
|
|
12008
12008
|
p(o);
|
|
12009
12009
|
}, [o]);
|
|
12010
12010
|
const m = d(), h = L(() => !k.isEqual(m, a), [m, a]);
|
|
@@ -12069,10 +12069,10 @@ function qx(e) {
|
|
|
12069
12069
|
levels: t
|
|
12070
12070
|
};
|
|
12071
12071
|
}
|
|
12072
|
-
class Wx extends
|
|
12072
|
+
class Wx extends Me {
|
|
12073
12073
|
constructor() {
|
|
12074
12074
|
super(...arguments);
|
|
12075
|
-
|
|
12075
|
+
j(this, "VERSION", 4);
|
|
12076
12076
|
}
|
|
12077
12077
|
configVersions() {
|
|
12078
12078
|
this.version(1, (r) => ({
|
|
@@ -12170,7 +12170,7 @@ const ml = ["function text({ value }) {", " // your code goes here", " ret
|
|
|
12170
12170
|
function fl(e) {
|
|
12171
12171
|
const {
|
|
12172
12172
|
value: t
|
|
12173
|
-
} =
|
|
12173
|
+
} = Z(e.instanceData, "config");
|
|
12174
12174
|
return t ? t.columns.map((r, i) => ({
|
|
12175
12175
|
label: r.label,
|
|
12176
12176
|
value: i.toString()
|
|
@@ -12186,9 +12186,9 @@ function Ux(e) {
|
|
|
12186
12186
|
const t = fl(e.instance), r = Qx(e.sampleData), i = t.length > 0 ? t : r, {
|
|
12187
12187
|
value: a,
|
|
12188
12188
|
set: o
|
|
12189
|
-
} =
|
|
12189
|
+
} = Z(e.trigger.triggerData, "config"), {
|
|
12190
12190
|
column: l
|
|
12191
|
-
} =
|
|
12191
|
+
} = $e({}, a, Hx), s = (c) => {
|
|
12192
12192
|
isNaN(+c) ? o({
|
|
12193
12193
|
column: c
|
|
12194
12194
|
}) : o({
|
|
@@ -12203,7 +12203,7 @@ function Xx(e, t) {
|
|
|
12203
12203
|
function Zx(e) {
|
|
12204
12204
|
const t = fl(e.instance), {
|
|
12205
12205
|
value: r
|
|
12206
|
-
} =
|
|
12206
|
+
} = Z(e.trigger.triggerData, "config");
|
|
12207
12207
|
return /* @__PURE__ */ n(C, { children: Xx(r, t) });
|
|
12208
12208
|
}
|
|
12209
12209
|
const Kx = un((e) => ({
|
|
@@ -12429,7 +12429,7 @@ function hy({
|
|
|
12429
12429
|
width: a
|
|
12430
12430
|
} = e.viewport, {
|
|
12431
12431
|
value: o = ha
|
|
12432
|
-
} =
|
|
12432
|
+
} = Z(e.instanceData, "config"), {
|
|
12433
12433
|
use_raw_columns: l,
|
|
12434
12434
|
columns: s,
|
|
12435
12435
|
...c
|
|
@@ -12448,13 +12448,13 @@ function hy({
|
|
|
12448
12448
|
instance: t
|
|
12449
12449
|
}), g = L(() => {
|
|
12450
12450
|
const ue = ms();
|
|
12451
|
-
return m.map((
|
|
12452
|
-
cell: (qe) => /* @__PURE__ */ n(dy, { tableCellContext: h(qe.cell), value: qe.getValue(), type:
|
|
12453
|
-
header:
|
|
12451
|
+
return m.map((Le) => ue.accessor(Le.value_field, {
|
|
12452
|
+
cell: (qe) => /* @__PURE__ */ n(dy, { tableCellContext: h(qe.cell), value: qe.getValue(), type: Le.value_type, ...Le }),
|
|
12453
|
+
header: Le.label,
|
|
12454
12454
|
enableSorting: !0,
|
|
12455
|
-
meta:
|
|
12456
|
-
size:
|
|
12457
|
-
minSize:
|
|
12455
|
+
meta: Le,
|
|
12456
|
+
size: Le.width,
|
|
12457
|
+
minSize: Le.width
|
|
12458
12458
|
}));
|
|
12459
12459
|
}, [m, h]), [w, y] = U([]), T = gs({
|
|
12460
12460
|
data: r,
|
|
@@ -12467,7 +12467,7 @@ function hy({
|
|
|
12467
12467
|
getSortedRowModel: jd()
|
|
12468
12468
|
}), {
|
|
12469
12469
|
rows: R
|
|
12470
|
-
} = T.getRowModel(), F = $.useRef(null),
|
|
12470
|
+
} = T.getRowModel(), F = $.useRef(null), W = Gd({
|
|
12471
12471
|
parentRef: F,
|
|
12472
12472
|
size: R.length,
|
|
12473
12473
|
estimateSize: He(() => 28, []),
|
|
@@ -12475,7 +12475,7 @@ function hy({
|
|
|
12475
12475
|
}), {
|
|
12476
12476
|
virtualItems: Q,
|
|
12477
12477
|
totalSize: N
|
|
12478
|
-
} =
|
|
12478
|
+
} = W, P = Q.length > 0 && ((pe = Q == null ? void 0 : Q[0]) == null ? void 0 : pe.start) || 0, V = Q.length > 0 ? N - (((ge = Q == null ? void 0 : Q[Q.length - 1]) == null ? void 0 : ge.end) || 0) : 0, Y = R.length, ne = Y > 0, ee = ne ? i - 22 : i, de = ne ? 22 : 0;
|
|
12479
12479
|
return !Array.isArray(r) || r.length === 0 ? /* @__PURE__ */ n(C, { color: "gray", align: "center", children: "Empty Data" }) : /* @__PURE__ */ u("div", { ref: F, style: {
|
|
12480
12480
|
height: i,
|
|
12481
12481
|
width: a
|
|
@@ -12490,7 +12490,7 @@ function hy({
|
|
|
12490
12490
|
] }) }),
|
|
12491
12491
|
/* @__PURE__ */ u(Ft, { sx: {
|
|
12492
12492
|
...Jx,
|
|
12493
|
-
maxHeight:
|
|
12493
|
+
maxHeight: ee
|
|
12494
12494
|
}, ...c, striped: o.striped, children: [
|
|
12495
12495
|
/* @__PURE__ */ n("thead", { className: d.thead, style: {
|
|
12496
12496
|
top: de
|
|
@@ -12503,7 +12503,7 @@ function hy({
|
|
|
12503
12503
|
} }) }),
|
|
12504
12504
|
Q.map((ue) => {
|
|
12505
12505
|
const Ce = R[ue.index];
|
|
12506
|
-
return /* @__PURE__ */ n("tr", { children: Ce.getVisibleCells().map((
|
|
12506
|
+
return /* @__PURE__ */ n("tr", { children: Ce.getVisibleCells().map((Le) => /* @__PURE__ */ n("td", { children: tr(Le.column.columnDef.cell, Le.getContext()) }, Le.id)) }, Ce.id);
|
|
12507
12507
|
}),
|
|
12508
12508
|
V > 0 && /* @__PURE__ */ n("tr", { children: /* @__PURE__ */ n("td", { style: {
|
|
12509
12509
|
height: `${V}px`
|
|
@@ -12547,9 +12547,9 @@ class my {
|
|
|
12547
12547
|
/**
|
|
12548
12548
|
* map toValue to fromValue
|
|
12549
12549
|
*/
|
|
12550
|
-
|
|
12551
|
-
|
|
12552
|
-
|
|
12550
|
+
j(this, "steps", /* @__PURE__ */ new Map());
|
|
12551
|
+
j(this, "interpolation");
|
|
12552
|
+
j(this, "onChange");
|
|
12553
12553
|
Bn(this, {
|
|
12554
12554
|
steps: us
|
|
12555
12555
|
}, {
|
|
@@ -12628,7 +12628,7 @@ const fy = D(({
|
|
|
12628
12628
|
return /* @__PURE__ */ n("div", { className: t.palette, children: r.map(([i, a], o) => /* @__PURE__ */ n(gy, { index: o, color: i, value: e.getStepFromValue(a), onChange: (l) => e.changeStep(l, a) }, i)) });
|
|
12629
12629
|
}), by = D(function(t) {
|
|
12630
12630
|
const r = dt(() => new my(), []);
|
|
12631
|
-
return
|
|
12631
|
+
return q(() => {
|
|
12632
12632
|
r.fromProps(t);
|
|
12633
12633
|
}), r.interpolation == null ? null : /* @__PURE__ */ n(fy, { model: r });
|
|
12634
12634
|
}), xy = (e) => {
|
|
@@ -12738,7 +12738,7 @@ const Cy = ke((e, t) => {
|
|
|
12738
12738
|
}, p = () => {
|
|
12739
12739
|
s(ml);
|
|
12740
12740
|
};
|
|
12741
|
-
return
|
|
12741
|
+
return q(() => {
|
|
12742
12742
|
s(e);
|
|
12743
12743
|
}, [e]), /* @__PURE__ */ u(G, { children: [
|
|
12744
12744
|
/* @__PURE__ */ n(I, { variant: "filled", mt: 24, onClick: a, sx: {
|
|
@@ -12829,7 +12829,7 @@ const Cy = ke((e, t) => {
|
|
|
12829
12829
|
append: a,
|
|
12830
12830
|
remove: o,
|
|
12831
12831
|
update: l
|
|
12832
|
-
} =
|
|
12832
|
+
} = Oe({
|
|
12833
12833
|
control: e,
|
|
12834
12834
|
name: "columns"
|
|
12835
12835
|
}), s = () => {
|
|
@@ -12931,8 +12931,8 @@ function Ay({
|
|
|
12931
12931
|
const {
|
|
12932
12932
|
value: t,
|
|
12933
12933
|
set: r
|
|
12934
|
-
} =
|
|
12935
|
-
|
|
12934
|
+
} = Z(e.instanceData, "config"), i = e.data, a = L(() => _e({}, t, ha), [t]), o = L(() => My(a), [a]);
|
|
12935
|
+
q(() => {
|
|
12936
12936
|
!we(a, o) && (console.log("config malformed, resetting to defaults", a, o), r(o));
|
|
12937
12937
|
}, [a, o]);
|
|
12938
12938
|
const {
|
|
@@ -12941,10 +12941,10 @@ function Ay({
|
|
|
12941
12941
|
watch: c,
|
|
12942
12942
|
getValues: d,
|
|
12943
12943
|
reset: p
|
|
12944
|
-
} =
|
|
12944
|
+
} = ze({
|
|
12945
12945
|
defaultValues: o
|
|
12946
12946
|
});
|
|
12947
|
-
|
|
12947
|
+
q(() => {
|
|
12948
12948
|
p(o);
|
|
12949
12949
|
}, [o]);
|
|
12950
12950
|
const m = d(), h = L(() => !we(m, a), [m, a]);
|
|
@@ -12992,10 +12992,10 @@ function Ry(e) {
|
|
|
12992
12992
|
}))
|
|
12993
12993
|
};
|
|
12994
12994
|
}
|
|
12995
|
-
class Ey extends
|
|
12995
|
+
class Ey extends Me {
|
|
12996
12996
|
constructor() {
|
|
12997
12997
|
super(...arguments);
|
|
12998
|
-
|
|
12998
|
+
j(this, "VERSION", 3);
|
|
12999
12999
|
}
|
|
13000
13000
|
configVersions() {
|
|
13001
13001
|
this.version(1, (r) => ({
|
|
@@ -13050,9 +13050,9 @@ const Ur = {
|
|
|
13050
13050
|
}, Oy = D(({
|
|
13051
13051
|
context: e
|
|
13052
13052
|
}) => {
|
|
13053
|
-
const t =
|
|
13053
|
+
const t = te(), {
|
|
13054
13054
|
value: r = ma
|
|
13055
|
-
} =
|
|
13055
|
+
} = Z(e.instanceData, "config"), {
|
|
13056
13056
|
variables: i
|
|
13057
13057
|
} = e, a = e.data, {
|
|
13058
13058
|
func_content: o,
|
|
@@ -13096,7 +13096,7 @@ const Ur = {
|
|
|
13096
13096
|
}, p = () => {
|
|
13097
13097
|
s(yl);
|
|
13098
13098
|
};
|
|
13099
|
-
return
|
|
13099
|
+
return q(() => {
|
|
13100
13100
|
s(e);
|
|
13101
13101
|
}, [e]), /* @__PURE__ */ u(G, { children: [
|
|
13102
13102
|
/* @__PURE__ */ n(I, { variant: "filled", mt: 24, onClick: a, sx: {
|
|
@@ -13129,7 +13129,7 @@ function By({
|
|
|
13129
13129
|
const {
|
|
13130
13130
|
value: t,
|
|
13131
13131
|
set: r
|
|
13132
|
-
} =
|
|
13132
|
+
} = Z(e.instanceData, "config"), i = L(() => _e({}, t, ma), [t]), a = L(() => {
|
|
13133
13133
|
const {
|
|
13134
13134
|
func_content: h,
|
|
13135
13135
|
horizontal_align: g,
|
|
@@ -13143,7 +13143,7 @@ function By({
|
|
|
13143
13143
|
font_weight: y
|
|
13144
13144
|
};
|
|
13145
13145
|
}, [i]);
|
|
13146
|
-
|
|
13146
|
+
q(() => {
|
|
13147
13147
|
!we(i, a) && (console.log("config malformed, resetting to defaults", i, a), r(a));
|
|
13148
13148
|
}, [i, a]);
|
|
13149
13149
|
const {
|
|
@@ -13152,7 +13152,7 @@ function By({
|
|
|
13152
13152
|
watch: s,
|
|
13153
13153
|
getValues: c,
|
|
13154
13154
|
reset: d
|
|
13155
|
-
} =
|
|
13155
|
+
} = ze({
|
|
13156
13156
|
defaultValues: a
|
|
13157
13157
|
});
|
|
13158
13158
|
$.useEffect(() => {
|
|
@@ -13191,10 +13191,10 @@ function By({
|
|
|
13191
13191
|
] })
|
|
13192
13192
|
] }) });
|
|
13193
13193
|
}
|
|
13194
|
-
class Ny extends
|
|
13194
|
+
class Ny extends Me {
|
|
13195
13195
|
constructor() {
|
|
13196
13196
|
super(...arguments);
|
|
13197
|
-
|
|
13197
|
+
j(this, "VERSION", 1);
|
|
13198
13198
|
}
|
|
13199
13199
|
configVersions() {
|
|
13200
13200
|
this.version(1, (r) => ({
|
|
@@ -13302,7 +13302,7 @@ function Hy({
|
|
|
13302
13302
|
}) {
|
|
13303
13303
|
const {
|
|
13304
13304
|
value: t
|
|
13305
|
-
} =
|
|
13305
|
+
} = Z(e.instanceData, "config"), r = L(() => _e({}, t, ga), [t]), {
|
|
13306
13306
|
width: i,
|
|
13307
13307
|
height: a
|
|
13308
13308
|
} = e.viewport, o = e.data ?? [], {
|
|
@@ -13328,16 +13328,16 @@ function Qy({
|
|
|
13328
13328
|
const {
|
|
13329
13329
|
value: t,
|
|
13330
13330
|
set: r
|
|
13331
|
-
} =
|
|
13331
|
+
} = Z(e.instanceData, "config"), i = L(() => _e({}, t, ga), [t]), {
|
|
13332
13332
|
control: a,
|
|
13333
13333
|
handleSubmit: o,
|
|
13334
13334
|
watch: l,
|
|
13335
13335
|
getValues: s,
|
|
13336
13336
|
reset: c
|
|
13337
|
-
} =
|
|
13337
|
+
} = ze({
|
|
13338
13338
|
defaultValues: i
|
|
13339
13339
|
});
|
|
13340
|
-
|
|
13340
|
+
q(() => {
|
|
13341
13341
|
c(i);
|
|
13342
13342
|
}, [i]), l(["expertSystemURL", "goal", "path", "question"]);
|
|
13343
13343
|
const d = s(), p = L(() => !we(d, i), [d, i]);
|
|
@@ -13364,10 +13364,10 @@ function Qy({
|
|
|
13364
13364
|
}, children: "Submit Changes" })
|
|
13365
13365
|
] }) });
|
|
13366
13366
|
}
|
|
13367
|
-
class Uy extends
|
|
13367
|
+
class Uy extends Me {
|
|
13368
13368
|
constructor() {
|
|
13369
13369
|
super(...arguments);
|
|
13370
|
-
|
|
13370
|
+
j(this, "VERSION", 1);
|
|
13371
13371
|
}
|
|
13372
13372
|
configVersions() {
|
|
13373
13373
|
this.version(1, (r) => ({
|
|
@@ -13394,7 +13394,7 @@ function Zy(e, t, r) {
|
|
|
13394
13394
|
if (!e)
|
|
13395
13395
|
return r[0];
|
|
13396
13396
|
try {
|
|
13397
|
-
return [t,
|
|
13397
|
+
return [t, K(t).add(1, "year").subtract(1, "day").valueOf()];
|
|
13398
13398
|
} catch (i) {
|
|
13399
13399
|
return console.error(i), r[0];
|
|
13400
13400
|
}
|
|
@@ -13564,13 +13564,13 @@ const ov = {
|
|
|
13564
13564
|
grid: {
|
|
13565
13565
|
containLabel: !0
|
|
13566
13566
|
}
|
|
13567
|
-
}, sv = (e) =>
|
|
13567
|
+
}, sv = (e) => K(e).get("year");
|
|
13568
13568
|
function lv(e, t) {
|
|
13569
|
-
const r = e.calendar.data_key, i = k.groupBy(t, (c) => sv(c[r])), a = Object.keys(i), o = t.map((c) =>
|
|
13569
|
+
const r = e.calendar.data_key, i = k.groupBy(t, (c) => sv(c[r])), a = Object.keys(i), o = t.map((c) => K(c[r]).valueOf()), l = k.min(o), s = k.max(o);
|
|
13570
13570
|
return {
|
|
13571
13571
|
minDate: l ?? 0,
|
|
13572
13572
|
maxDate: s ?? 0,
|
|
13573
|
-
dateSpan:
|
|
13573
|
+
dateSpan: K(s).diff(l, "day"),
|
|
13574
13574
|
dataByYear: i,
|
|
13575
13575
|
years: a
|
|
13576
13576
|
};
|
|
@@ -13692,7 +13692,7 @@ function mv({
|
|
|
13692
13692
|
instance: t
|
|
13693
13693
|
}), {
|
|
13694
13694
|
value: i
|
|
13695
|
-
} =
|
|
13695
|
+
} = Z(e.instanceData, "config"), {
|
|
13696
13696
|
variables: a
|
|
13697
13697
|
} = e, o = L(() => k.defaults({}, i, fa), [i]), l = e.data, {
|
|
13698
13698
|
width: s,
|
|
@@ -13764,7 +13764,7 @@ const fv = ({
|
|
|
13764
13764
|
fields: i,
|
|
13765
13765
|
append: a,
|
|
13766
13766
|
remove: o
|
|
13767
|
-
} =
|
|
13767
|
+
} = Oe({
|
|
13768
13768
|
control: e,
|
|
13769
13769
|
name: "tooltip.metrics"
|
|
13770
13770
|
}), l = t("tooltip.metrics"), s = i.map((h, g) => ({
|
|
@@ -13775,7 +13775,7 @@ const fv = ({
|
|
|
13775
13775
|
data_key: "",
|
|
13776
13776
|
name: ""
|
|
13777
13777
|
}), d = t("tooltip.metrics.0.id"), [p, m] = U(() => d ?? null);
|
|
13778
|
-
return
|
|
13778
|
+
return q(() => {
|
|
13779
13779
|
d && m((h) => h !== null ? h : d);
|
|
13780
13780
|
}, [d]), /* @__PURE__ */ u(G, { children: [
|
|
13781
13781
|
/* @__PURE__ */ u(v, { spacing: 2, sx: {
|
|
@@ -13842,8 +13842,8 @@ function wv({
|
|
|
13842
13842
|
const {
|
|
13843
13843
|
value: t,
|
|
13844
13844
|
set: r
|
|
13845
|
-
} =
|
|
13846
|
-
|
|
13845
|
+
} = Z(e.instanceData, "config"), i = e.data, a = L(() => _e({}, t, fa), [t]), o = L(() => k.cloneDeep(a), [a]);
|
|
13846
|
+
q(() => {
|
|
13847
13847
|
!we(a, o) && (console.log("config malformed, resetting to defaults", a, o), r(o));
|
|
13848
13848
|
}, [a, o]);
|
|
13849
13849
|
const {
|
|
@@ -13852,10 +13852,10 @@ function wv({
|
|
|
13852
13852
|
watch: c,
|
|
13853
13853
|
getValues: d,
|
|
13854
13854
|
reset: p
|
|
13855
|
-
} =
|
|
13855
|
+
} = ze({
|
|
13856
13856
|
defaultValues: o
|
|
13857
13857
|
});
|
|
13858
|
-
|
|
13858
|
+
q(() => {
|
|
13859
13859
|
p(o);
|
|
13860
13860
|
}, [o]);
|
|
13861
13861
|
const m = d(), h = L(() => !we(m, a), [m, a]);
|
|
@@ -13888,10 +13888,10 @@ function wv({
|
|
|
13888
13888
|
] })
|
|
13889
13889
|
] }) });
|
|
13890
13890
|
}
|
|
13891
|
-
class _v extends
|
|
13891
|
+
class _v extends Me {
|
|
13892
13892
|
constructor() {
|
|
13893
13893
|
super(...arguments);
|
|
13894
|
-
|
|
13894
|
+
j(this, "VERSION", 1);
|
|
13895
13895
|
}
|
|
13896
13896
|
configVersions() {
|
|
13897
13897
|
this.version(1, (r) => ({
|
|
@@ -14072,13 +14072,13 @@ function Mv({
|
|
|
14072
14072
|
value_data_key: t,
|
|
14073
14073
|
valueTypedXAxis: w
|
|
14074
14074
|
}), F;
|
|
14075
|
-
const
|
|
14075
|
+
const W = zv({
|
|
14076
14076
|
group_by_key: o,
|
|
14077
14077
|
data: y,
|
|
14078
14078
|
name_data_key: e.data_key,
|
|
14079
14079
|
value_data_key: t
|
|
14080
14080
|
});
|
|
14081
|
-
return Object.entries(
|
|
14081
|
+
return Object.entries(W).map(([Q, N]) => {
|
|
14082
14082
|
const P = Pe(F);
|
|
14083
14083
|
return P.name = Q, P.color = void 0, P.data = N, P;
|
|
14084
14084
|
});
|
|
@@ -14358,9 +14358,9 @@ function Gv({
|
|
|
14358
14358
|
instance: t
|
|
14359
14359
|
}), {
|
|
14360
14360
|
value: i
|
|
14361
|
-
} =
|
|
14361
|
+
} = Z(e.instanceData, "config"), {
|
|
14362
14362
|
variables: a
|
|
14363
|
-
} = e, o = L(() =>
|
|
14363
|
+
} = e, o = L(() => $e({}, i, xa), [i]), l = e.data, {
|
|
14364
14364
|
width: s,
|
|
14365
14365
|
height: c
|
|
14366
14366
|
} = e.viewport;
|
|
@@ -14464,7 +14464,7 @@ function Uv({
|
|
|
14464
14464
|
fields: i,
|
|
14465
14465
|
append: a,
|
|
14466
14466
|
remove: o
|
|
14467
|
-
} =
|
|
14467
|
+
} = Oe({
|
|
14468
14468
|
control: e,
|
|
14469
14469
|
name: "reference_lines"
|
|
14470
14470
|
}), l = t("reference_lines"), s = i.map((g, w) => ({
|
|
@@ -14500,7 +14500,7 @@ function Uv({
|
|
|
14500
14500
|
}
|
|
14501
14501
|
function Xv(e) {
|
|
14502
14502
|
const [t, r] = U(e);
|
|
14503
|
-
return
|
|
14503
|
+
return q(() => {
|
|
14504
14504
|
r(e);
|
|
14505
14505
|
}, [e]), {
|
|
14506
14506
|
tab: t,
|
|
@@ -14668,7 +14668,7 @@ function t0({
|
|
|
14668
14668
|
fields: i,
|
|
14669
14669
|
append: a,
|
|
14670
14670
|
remove: o
|
|
14671
|
-
} =
|
|
14671
|
+
} = Oe({
|
|
14672
14672
|
control: e,
|
|
14673
14673
|
name: "series"
|
|
14674
14674
|
}), l = t("series"), s = i.map((w, y) => ({
|
|
@@ -14762,7 +14762,7 @@ function i0({
|
|
|
14762
14762
|
fields: r,
|
|
14763
14763
|
append: i,
|
|
14764
14764
|
remove: a
|
|
14765
|
-
} =
|
|
14765
|
+
} = Oe({
|
|
14766
14766
|
control: e,
|
|
14767
14767
|
name: "x_axes"
|
|
14768
14768
|
}), o = t("x_axes"), l = r.map((d, p) => ({
|
|
@@ -14821,7 +14821,7 @@ function o0({
|
|
|
14821
14821
|
const {
|
|
14822
14822
|
value: t,
|
|
14823
14823
|
set: r
|
|
14824
|
-
} =
|
|
14824
|
+
} = Z(e.instanceData, "config"), {
|
|
14825
14825
|
variables: i
|
|
14826
14826
|
} = e, a = e.data, o = L(() => k.defaultsDeep({}, t, xa), [t]), {
|
|
14827
14827
|
control: l,
|
|
@@ -14829,10 +14829,10 @@ function o0({
|
|
|
14829
14829
|
watch: c,
|
|
14830
14830
|
getValues: d,
|
|
14831
14831
|
reset: p
|
|
14832
|
-
} =
|
|
14832
|
+
} = ze({
|
|
14833
14833
|
defaultValues: o
|
|
14834
14834
|
});
|
|
14835
|
-
|
|
14835
|
+
q(() => {
|
|
14836
14836
|
p(o);
|
|
14837
14837
|
}, [o]), c([]);
|
|
14838
14838
|
const m = d(), h = L(() => !k.isEqual(m, o), [m, o]);
|
|
@@ -14867,10 +14867,10 @@ function o0({
|
|
|
14867
14867
|
] })
|
|
14868
14868
|
] }) });
|
|
14869
14869
|
}
|
|
14870
|
-
class s0 extends
|
|
14870
|
+
class s0 extends Me {
|
|
14871
14871
|
constructor() {
|
|
14872
14872
|
super(...arguments);
|
|
14873
|
-
|
|
14873
|
+
j(this, "VERSION", 1);
|
|
14874
14874
|
}
|
|
14875
14875
|
configVersions() {
|
|
14876
14876
|
this.version(1, (r) => ({
|
|
@@ -15559,7 +15559,7 @@ function M0({
|
|
|
15559
15559
|
}) {
|
|
15560
15560
|
const {
|
|
15561
15561
|
value: t
|
|
15562
|
-
} =
|
|
15562
|
+
} = Z(e.instanceData, "config"), r = L(() => $e({}, t, ya), [t]), i = e.data, {
|
|
15563
15563
|
width: a,
|
|
15564
15564
|
height: o
|
|
15565
15565
|
} = e.viewport, {
|
|
@@ -15569,7 +15569,7 @@ function M0({
|
|
|
15569
15569
|
estimated_value: c,
|
|
15570
15570
|
actual_value: d
|
|
15571
15571
|
} = s.data_keys, [p, m] = U(d);
|
|
15572
|
-
if (
|
|
15572
|
+
if (q(() => {
|
|
15573
15573
|
m((w) => w || d);
|
|
15574
15574
|
}, [d]), !l.data_key || !c || !d)
|
|
15575
15575
|
return null;
|
|
@@ -15677,7 +15677,7 @@ const E0 = ({
|
|
|
15677
15677
|
fields: i,
|
|
15678
15678
|
append: a,
|
|
15679
15679
|
remove: o
|
|
15680
|
-
} =
|
|
15680
|
+
} = Oe({
|
|
15681
15681
|
control: e,
|
|
15682
15682
|
name: "metrics"
|
|
15683
15683
|
}), l = t("metrics"), s = i.map((h, g) => ({
|
|
@@ -15688,7 +15688,7 @@ const E0 = ({
|
|
|
15688
15688
|
data_key: "",
|
|
15689
15689
|
name: ""
|
|
15690
15690
|
}), d = t("metrics.0.id"), [p, m] = U(() => d ?? null);
|
|
15691
|
-
return
|
|
15691
|
+
return q(() => {
|
|
15692
15692
|
d && m((h) => h !== null ? h : d);
|
|
15693
15693
|
}, [d]), /* @__PURE__ */ u(G, { children: [
|
|
15694
15694
|
/* @__PURE__ */ u(v, { spacing: 2, sx: {
|
|
@@ -15723,16 +15723,16 @@ function V0({
|
|
|
15723
15723
|
const {
|
|
15724
15724
|
value: t,
|
|
15725
15725
|
set: r
|
|
15726
|
-
} =
|
|
15726
|
+
} = Z(e.instanceData, "config"), i = e.data, a = L(() => k.defaultsDeep({}, t, ya), [t]), {
|
|
15727
15727
|
control: o,
|
|
15728
15728
|
handleSubmit: l,
|
|
15729
15729
|
watch: s,
|
|
15730
15730
|
getValues: c,
|
|
15731
15731
|
reset: d
|
|
15732
|
-
} =
|
|
15732
|
+
} = ze({
|
|
15733
15733
|
defaultValues: a
|
|
15734
15734
|
});
|
|
15735
|
-
|
|
15735
|
+
q(() => {
|
|
15736
15736
|
d(a);
|
|
15737
15737
|
}, [a]), s([]);
|
|
15738
15738
|
const p = c(), m = L(() => !k.isEqual(p, a), [p, a]);
|
|
@@ -15765,10 +15765,10 @@ function V0({
|
|
|
15765
15765
|
] })
|
|
15766
15766
|
] }) });
|
|
15767
15767
|
}
|
|
15768
|
-
class F0 extends
|
|
15768
|
+
class F0 extends Me {
|
|
15769
15769
|
constructor() {
|
|
15770
15770
|
super(...arguments);
|
|
15771
|
-
|
|
15771
|
+
j(this, "VERSION", 1);
|
|
15772
15772
|
}
|
|
15773
15773
|
configVersions() {
|
|
15774
15774
|
this.version(1, (r) => ({
|
|
@@ -15842,7 +15842,7 @@ const P0 = {
|
|
|
15842
15842
|
viz: [Ur, Cx, qy, nb, jx, sf, l0, Xu, Nh, Gm, yg, Cv, Zg, Cm, ux, Cf, Zf, Xy, P0, tp],
|
|
15843
15843
|
color: [...B0, ...N0]
|
|
15844
15844
|
}
|
|
15845
|
-
}), Tn = new ju(),
|
|
15845
|
+
}), Tn = new ju(), Re = {
|
|
15846
15846
|
pluginManager: St("pluginManager"),
|
|
15847
15847
|
vizManager: St("vizManager"),
|
|
15848
15848
|
colorManager: St("colorManager"),
|
|
@@ -15874,11 +15874,11 @@ function q0(e, t) {
|
|
|
15874
15874
|
const {
|
|
15875
15875
|
value: r,
|
|
15876
15876
|
set: i
|
|
15877
|
-
} =
|
|
15877
|
+
} = Z(e.operation.operationData, "config"), [a, o] = U($e({}, r, t)), l = async () => {
|
|
15878
15878
|
await i(a);
|
|
15879
15879
|
};
|
|
15880
|
-
return
|
|
15881
|
-
o(
|
|
15880
|
+
return q(() => {
|
|
15881
|
+
o($e({}, r, t));
|
|
15882
15882
|
}, [r]), {
|
|
15883
15883
|
config: a,
|
|
15884
15884
|
setConfig: o,
|
|
@@ -15925,10 +15925,10 @@ async function j0(e, t) {
|
|
|
15925
15925
|
}
|
|
15926
15926
|
}));
|
|
15927
15927
|
}
|
|
15928
|
-
class G0 extends
|
|
15928
|
+
class G0 extends Me {
|
|
15929
15929
|
constructor() {
|
|
15930
15930
|
super(...arguments);
|
|
15931
|
-
|
|
15931
|
+
j(this, "VERSION", 1);
|
|
15932
15932
|
}
|
|
15933
15933
|
configVersions() {
|
|
15934
15934
|
this.version(1, (r) => r);
|
|
@@ -15952,7 +15952,7 @@ function H0(e) {
|
|
|
15952
15952
|
const {
|
|
15953
15953
|
value: t,
|
|
15954
15954
|
set: r
|
|
15955
|
-
} =
|
|
15955
|
+
} = Z(e.operationData, "config"), i = (a) => void r({
|
|
15956
15956
|
template: a
|
|
15957
15957
|
});
|
|
15958
15958
|
return [(t == null ? void 0 : t.template) || "", i];
|
|
@@ -15971,10 +15971,10 @@ const X0 = {
|
|
|
15971
15971
|
configRender: Q0,
|
|
15972
15972
|
run: U0
|
|
15973
15973
|
}, Z0 = D((e) => {
|
|
15974
|
-
const t =
|
|
15974
|
+
const t = te(), {
|
|
15975
15975
|
value: r,
|
|
15976
15976
|
set: i
|
|
15977
|
-
} =
|
|
15977
|
+
} = Z(e.operation.operationData, "config");
|
|
15978
15978
|
console.log({
|
|
15979
15979
|
value: r,
|
|
15980
15980
|
viewID: r == null ? void 0 : r.viewID
|
|
@@ -16000,10 +16000,10 @@ const J0 = {
|
|
|
16000
16000
|
}, ew = {
|
|
16001
16001
|
dictionary: {}
|
|
16002
16002
|
}, tw = D((e) => {
|
|
16003
|
-
const t =
|
|
16003
|
+
const t = te(), {
|
|
16004
16004
|
value: r = ew,
|
|
16005
16005
|
set: i
|
|
16006
|
-
} =
|
|
16006
|
+
} = Z(e.operation.operationData, "config"), {
|
|
16007
16007
|
dictionary: a = {}
|
|
16008
16008
|
} = r, o = (c, d) => {
|
|
16009
16009
|
i({
|
|
@@ -16063,10 +16063,10 @@ const rw = {
|
|
|
16063
16063
|
}, iw = {
|
|
16064
16064
|
filter_keys: []
|
|
16065
16065
|
}, aw = D((e) => {
|
|
16066
|
-
const t =
|
|
16066
|
+
const t = te(), {
|
|
16067
16067
|
value: r = iw,
|
|
16068
16068
|
set: i
|
|
16069
|
-
} =
|
|
16069
|
+
} = Z(e.operation.operationData, "config"), {
|
|
16070
16070
|
filter_keys: a = []
|
|
16071
16071
|
} = r, o = (s) => {
|
|
16072
16072
|
i({
|
|
@@ -16095,7 +16095,7 @@ const sw = {
|
|
|
16095
16095
|
}, Dr = [X0, Y0, J0, rw, sw];
|
|
16096
16096
|
class lw {
|
|
16097
16097
|
constructor(t, r = Dr) {
|
|
16098
|
-
|
|
16098
|
+
j(this, "attachments");
|
|
16099
16099
|
this.operations = r;
|
|
16100
16100
|
const i = async (a) => {
|
|
16101
16101
|
const {
|
|
@@ -16171,7 +16171,7 @@ class lw {
|
|
|
16171
16171
|
const bo = "__TRIGGERS";
|
|
16172
16172
|
class cw {
|
|
16173
16173
|
constructor(t, r) {
|
|
16174
|
-
|
|
16174
|
+
j(this, "attachments");
|
|
16175
16175
|
this.instance = t, this.component = r;
|
|
16176
16176
|
const i = async (a) => {
|
|
16177
16177
|
const {
|
|
@@ -16242,9 +16242,9 @@ class cw {
|
|
|
16242
16242
|
}
|
|
16243
16243
|
class wa {
|
|
16244
16244
|
constructor(t, r, i) {
|
|
16245
|
-
|
|
16246
|
-
|
|
16247
|
-
|
|
16245
|
+
j(this, "operationManager");
|
|
16246
|
+
j(this, "triggerManager");
|
|
16247
|
+
j(this, "attachments");
|
|
16248
16248
|
this.operationManager = new lw(t, i), this.triggerManager = new cw(t, r);
|
|
16249
16249
|
const a = async (o) => {
|
|
16250
16250
|
const {
|
|
@@ -16333,10 +16333,10 @@ const wt = ({
|
|
|
16333
16333
|
};
|
|
16334
16334
|
class dw {
|
|
16335
16335
|
constructor(t, r) {
|
|
16336
|
-
|
|
16337
|
-
|
|
16338
|
-
|
|
16339
|
-
|
|
16336
|
+
j(this, "operationId");
|
|
16337
|
+
j(this, "operation");
|
|
16338
|
+
j(this, "operationSchema");
|
|
16339
|
+
j(this, "variables", []);
|
|
16340
16340
|
this.operationManager = t, this.instance = r, Bn(this);
|
|
16341
16341
|
}
|
|
16342
16342
|
get schemaList() {
|
|
@@ -16407,10 +16407,10 @@ const gw = D((e) => {
|
|
|
16407
16407
|
});
|
|
16408
16408
|
class fw {
|
|
16409
16409
|
constructor(t, r) {
|
|
16410
|
-
|
|
16411
|
-
|
|
16412
|
-
|
|
16413
|
-
|
|
16410
|
+
j(this, "triggerId");
|
|
16411
|
+
j(this, "trigger");
|
|
16412
|
+
j(this, "triggerSchema");
|
|
16413
|
+
j(this, "sampleData");
|
|
16414
16414
|
this.triggerManager = t, this.instance = r, Bn(this);
|
|
16415
16415
|
}
|
|
16416
16416
|
get schemaList() {
|
|
@@ -16547,7 +16547,7 @@ const Sw = D(({
|
|
|
16547
16547
|
} = We(), r = e.viz, {
|
|
16548
16548
|
vizManager: i
|
|
16549
16549
|
} = bt(vt), a = e.json, o = dt(() => i.getOrCreateInstance(a), [i, a]), l = dt(() => new wa(o, i.resolveComponent(r.type), Dr), [o, r.type]);
|
|
16550
|
-
return
|
|
16550
|
+
return q(() => o.instanceData.watchItem(
|
|
16551
16551
|
null,
|
|
16552
16552
|
// avoid too many updates
|
|
16553
16553
|
Uc((s) => {
|
|
@@ -16570,14 +16570,14 @@ const Sw = D(({
|
|
|
16570
16570
|
var Sl = /* @__PURE__ */ ((e) => (e.migrated = "migrated", e.nothingToMigrate = "nothingToMigrate", e.checkFailed = "checkFailed", e.migrationFailed = "migrationFailed", e))(Sl || {}), Jn = /* @__PURE__ */ ((e) => (e.notStarted = "notStarted", e.inProgress = "inProgress", e.done = "done", e))(Jn || {});
|
|
16571
16571
|
class Lw {
|
|
16572
16572
|
constructor(t) {
|
|
16573
|
-
|
|
16574
|
-
|
|
16575
|
-
|
|
16576
|
-
|
|
16577
|
-
|
|
16578
|
-
|
|
16579
|
-
|
|
16580
|
-
this.panelModel = t.getRequired(
|
|
16573
|
+
j(this, "vizInstance");
|
|
16574
|
+
j(this, "operationManager");
|
|
16575
|
+
j(this, "triggerManager");
|
|
16576
|
+
j(this, "vizManager");
|
|
16577
|
+
j(this, "runningMigration");
|
|
16578
|
+
j(this, "panelModel");
|
|
16579
|
+
j(this, "status", "notStarted");
|
|
16580
|
+
this.panelModel = t.getRequired(Re.instanceScope.panelModel), this.vizInstance = t.getRequired(Re.instanceScope.vizInstance), this.operationManager = t.getRequired(Re.instanceScope.operationManager), this.triggerManager = t.getRequired(Re.instanceScope.triggerManager), this.vizManager = t.getRequired(Re.vizManager);
|
|
16581
16581
|
}
|
|
16582
16582
|
async createMigrationTask() {
|
|
16583
16583
|
const t = [];
|
|
@@ -16622,15 +16622,15 @@ function kl(e) {
|
|
|
16622
16622
|
panel: t
|
|
16623
16623
|
} = We();
|
|
16624
16624
|
return He((r) => {
|
|
16625
|
-
const i = r.getRequired(
|
|
16626
|
-
return r.createScoped().provideFactory(
|
|
16627
|
-
const l = o.getRequired(
|
|
16625
|
+
const i = r.getRequired(Re.vizManager), a = i.resolveComponent(e.viz.type);
|
|
16626
|
+
return r.createScoped().provideFactory(Re.instanceScope.vizInstance, () => i.getOrCreateInstance(e)).provideFactory(Re.instanceScope.interactionManager, (o) => {
|
|
16627
|
+
const l = o.getRequired(Re.instanceScope.vizInstance);
|
|
16628
16628
|
return new wa(l, a, Dr);
|
|
16629
|
-
}).provideFactory(
|
|
16629
|
+
}).provideFactory(Re.instanceScope.operationManager, (o) => o.getRequired(Re.instanceScope.interactionManager).operationManager).provideFactory(Re.instanceScope.triggerManager, (o) => o.getRequired(Re.instanceScope.interactionManager).triggerManager).provideValue(Re.instanceScope.panelModel, t).provideFactory(Re.instanceScope.migrator, (o) => new Lw(o));
|
|
16630
16630
|
}, [e.viz.type, e.viz.conf]);
|
|
16631
16631
|
}
|
|
16632
16632
|
function Tl(e) {
|
|
16633
|
-
const [t, r] = U(!1), i = vs().getRequired(
|
|
16633
|
+
const [t, r] = U(!1), i = vs().getRequired(Re.instanceScope.migrator);
|
|
16634
16634
|
return Vn(async () => {
|
|
16635
16635
|
const a = i.status === Jn.notStarted;
|
|
16636
16636
|
r(i.status === Jn.done), i.status === Jn.notStarted && i.runMigration().then((o) => {
|
|
@@ -16641,8 +16641,8 @@ function Tl(e) {
|
|
|
16641
16641
|
}, [i]), t;
|
|
16642
16642
|
}
|
|
16643
16643
|
function Dl(e, t) {
|
|
16644
|
-
const r = vs().getRequired(
|
|
16645
|
-
return
|
|
16644
|
+
const r = vs().getRequired(Re.instanceScope.vizInstance);
|
|
16645
|
+
return q(() => (r.instanceData.setItem(null, t.viz.conf), r.instanceData.watchItem(null, (i) => {
|
|
16646
16646
|
e(i);
|
|
16647
16647
|
})), [e, t.viz.type]), r;
|
|
16648
16648
|
}
|
|
@@ -16761,7 +16761,7 @@ const _a = D(function({
|
|
|
16761
16761
|
panel: t,
|
|
16762
16762
|
view: r
|
|
16763
16763
|
}) {
|
|
16764
|
-
const i =
|
|
16764
|
+
const i = te(), {
|
|
16765
16765
|
inEditMode: a
|
|
16766
16766
|
} = bt(Jt), {
|
|
16767
16767
|
data: o,
|
|
@@ -16816,7 +16816,7 @@ const Ow = $.forwardRef(({
|
|
|
16816
16816
|
view: e,
|
|
16817
16817
|
className: t = "layout"
|
|
16818
16818
|
}) => {
|
|
16819
|
-
const r =
|
|
16819
|
+
const r = te(), {
|
|
16820
16820
|
panels: i,
|
|
16821
16821
|
layouts: a
|
|
16822
16822
|
} = r.panels.panelsByIDs(e.panelIDs), o = $.useCallback((s) => {
|
|
@@ -16843,7 +16843,7 @@ const Ow = $.forwardRef(({
|
|
|
16843
16843
|
const {
|
|
16844
16844
|
panels: i,
|
|
16845
16845
|
layouts: a
|
|
16846
|
-
} =
|
|
16846
|
+
} = te().panels.panelsByIDs(t.panelIDs);
|
|
16847
16847
|
return /* @__PURE__ */ n(Bw, { className: `dashboard-layout ${r}`, cols: 36, rowHeight: 1, margin: [0, 0], isDraggable: !1, isResizable: !1, layout: a, children: i.map((o) => /* @__PURE__ */ n("div", { "data-grid": {
|
|
16848
16848
|
...o.layout
|
|
16849
16849
|
}, className: "panel-grid-item", children: /* @__PURE__ */ n(_a, { view: t, panel: o }) }, o.id)) });
|
|
@@ -16929,7 +16929,7 @@ const jw = D(({
|
|
|
16929
16929
|
children: e,
|
|
16930
16930
|
view: t
|
|
16931
16931
|
}) => {
|
|
16932
|
-
const r = Dt(), i =
|
|
16932
|
+
const r = Dt(), i = te(), a = L(() => i.views.options.filter((c) => c.type === oe.Division), [t.id, i.views.options]), o = t.config, l = (c) => r.openConfirmModal({
|
|
16933
16933
|
title: "Delete this tab?",
|
|
16934
16934
|
labels: {
|
|
16935
16935
|
confirm: "Confirm",
|
|
@@ -17039,7 +17039,7 @@ const jw = D(({
|
|
|
17039
17039
|
function Jw(e, t, r) {
|
|
17040
17040
|
const {
|
|
17041
17041
|
panels: i
|
|
17042
|
-
} =
|
|
17042
|
+
} = te(), a = e.id === "Main", [o, l] = $.useState(() => a && i.findByID(t) ? t : null), s = $.useCallback((m) => {
|
|
17043
17043
|
l(m), a && r(m);
|
|
17044
17044
|
}, [a, r]), c = $.useCallback(() => {
|
|
17045
17045
|
l(null), a && r("");
|
|
@@ -17057,7 +17057,7 @@ const e_ = D(({
|
|
|
17057
17057
|
children: e,
|
|
17058
17058
|
view: t
|
|
17059
17059
|
}) => {
|
|
17060
|
-
const r =
|
|
17060
|
+
const r = te(), i = t.config, a = r.views.visibleViewIDs.includes(t.id), o = () => r.views.rmVisibleViewID(t.id);
|
|
17061
17061
|
return /* @__PURE__ */ n(Te, { size: i.width, centered: !0, overflow: "inside", opened: a, onClose: o, withCloseButton: !1, title: i.custom_modal_title.value, trapFocus: !0, onDragStart: (l) => {
|
|
17062
17062
|
l.stopPropagation();
|
|
17063
17063
|
}, styles: {
|
|
@@ -17077,7 +17077,7 @@ const e_ = D(({
|
|
|
17077
17077
|
children: e,
|
|
17078
17078
|
view: t
|
|
17079
17079
|
}) => {
|
|
17080
|
-
const r =
|
|
17080
|
+
const r = te(), i = t.config;
|
|
17081
17081
|
return /* @__PURE__ */ u(O, { className: "render-view-tabs", children: [
|
|
17082
17082
|
/* @__PURE__ */ u(b, { variant: i.variant, orientation: i.orientation, defaultValue: i.tabs.length > 0 ? i.tabs[0].id : "0", styles: {
|
|
17083
17083
|
panel: {
|
|
@@ -17238,7 +17238,7 @@ f.model({
|
|
|
17238
17238
|
function Ml(e, t) {
|
|
17239
17239
|
return e.map((r) => {
|
|
17240
17240
|
try {
|
|
17241
|
-
return r ?
|
|
17241
|
+
return r ? K.tz(r, "UTC").format(t) : null;
|
|
17242
17242
|
} catch {
|
|
17243
17243
|
return console.log(`[date-range] failed parsing ${r}`), null;
|
|
17244
17244
|
}
|
|
@@ -17282,14 +17282,14 @@ const l_ = f.model("FilterConfigModel_DateRange", {
|
|
|
17282
17282
|
max_days: r
|
|
17283
17283
|
} = e;
|
|
17284
17284
|
if (!(!r || !t))
|
|
17285
|
-
return
|
|
17285
|
+
return K(t).startOf("day").add(r, "days").toDate();
|
|
17286
17286
|
},
|
|
17287
17287
|
getMinDate(t) {
|
|
17288
17288
|
const {
|
|
17289
17289
|
max_days: r
|
|
17290
17290
|
} = e;
|
|
17291
17291
|
if (!(!r || !t))
|
|
17292
|
-
return
|
|
17292
|
+
return K(t).startOf("day").subtract(r, "days").toDate();
|
|
17293
17293
|
}
|
|
17294
17294
|
})).actions((e) => ({
|
|
17295
17295
|
setFilterValue(t) {
|
|
@@ -17326,7 +17326,7 @@ const l_ = f.model("FilterConfigModel_DateRange", {
|
|
|
17326
17326
|
}) {
|
|
17327
17327
|
return {
|
|
17328
17328
|
...t,
|
|
17329
|
-
default_value: e.map((r) => r === null ? null :
|
|
17329
|
+
default_value: e.map((r) => r === null ? null : K.tz(r, "UTC").toISOString())
|
|
17330
17330
|
};
|
|
17331
17331
|
},
|
|
17332
17332
|
postProcessor(e) {
|
|
@@ -17699,7 +17699,7 @@ function Pl(e, t) {
|
|
|
17699
17699
|
if (t._name === "date-range")
|
|
17700
17700
|
try {
|
|
17701
17701
|
const [...r] = e;
|
|
17702
|
-
return r.map((i) => i === null ? i :
|
|
17702
|
+
return r.map((i) => i === null ? i : K.tz(i, "UTC").format(t.inputFormat) ?? i);
|
|
17703
17703
|
} catch (r) {
|
|
17704
17704
|
return console.error(r), e;
|
|
17705
17705
|
}
|
|
@@ -17850,7 +17850,7 @@ function Nl(e) {
|
|
|
17850
17850
|
const xn = {
|
|
17851
17851
|
CryptoJS: xs,
|
|
17852
17852
|
d3Array: Wd,
|
|
17853
|
-
dayjs:
|
|
17853
|
+
dayjs: K,
|
|
17854
17854
|
lodash: k,
|
|
17855
17855
|
numbro: he,
|
|
17856
17856
|
mathjs: Kn,
|
|
@@ -18298,7 +18298,7 @@ const V_ = f.model("QueryModel", {
|
|
|
18298
18298
|
}
|
|
18299
18299
|
})
|
|
18300
18300
|
})).actions((e) => ({
|
|
18301
|
-
fetchData: e.typedAsHTTP ? e.runHTTP : e.runSQL,
|
|
18301
|
+
fetchData: () => e.typedAsHTTP ? e.runHTTP() : e.runSQL(),
|
|
18302
18302
|
beforeDestroy() {
|
|
18303
18303
|
var t;
|
|
18304
18304
|
(t = e.controller) == null || t.abort();
|
|
@@ -18989,8 +18989,8 @@ const X_ = f.model("EditorModel", {
|
|
|
18989
18989
|
}));
|
|
18990
18990
|
class J_ {
|
|
18991
18991
|
constructor(t) {
|
|
18992
|
-
|
|
18993
|
-
|
|
18992
|
+
j(this, "origin");
|
|
18993
|
+
j(this, "copy");
|
|
18994
18994
|
this.origin = t, this.copy = Ud(t), Bn(this, {}, {
|
|
18995
18995
|
autoBind: !0,
|
|
18996
18996
|
deep: !1
|
|
@@ -19788,7 +19788,7 @@ const g1 = f.model({
|
|
|
19788
19788
|
postProcessor(e) {
|
|
19789
19789
|
delete e.origin;
|
|
19790
19790
|
const t = bs(e.queries.current.map((r) => Po(r, ["id", "key", "type", "sql"])));
|
|
19791
|
-
return
|
|
19791
|
+
return $e({}, {
|
|
19792
19792
|
queries: {
|
|
19793
19793
|
current: t
|
|
19794
19794
|
}
|
|
@@ -19896,12 +19896,12 @@ function Hl({
|
|
|
19896
19896
|
});
|
|
19897
19897
|
}
|
|
19898
19898
|
function Ql(e) {
|
|
19899
|
-
return $.useCallback((t) => t.provideValue(
|
|
19899
|
+
return $.useCallback((t) => t.provideValue(Re.pluginManager, e.pluginManager).provideValue(Re.vizManager, e.vizManager).provideValue(Re.colorManager, e.colorManager), []);
|
|
19900
19900
|
}
|
|
19901
19901
|
const x1 = D(({
|
|
19902
19902
|
headerMenuItems: e = null
|
|
19903
19903
|
}) => {
|
|
19904
|
-
const t =
|
|
19904
|
+
const t = De(), r = te(), i = () => {
|
|
19905
19905
|
const a = JSON.stringify(r.json, null, 2), o = `${t.name}__${r.name}`;
|
|
19906
19906
|
w_(o, a);
|
|
19907
19907
|
};
|
|
@@ -19916,7 +19916,7 @@ const x1 = D(({
|
|
|
19916
19916
|
}), y1 = D(({
|
|
19917
19917
|
saveDashboardChanges: e
|
|
19918
19918
|
}) => {
|
|
19919
|
-
const t = Dt(), r =
|
|
19919
|
+
const t = Dt(), r = te(), i = () => {
|
|
19920
19920
|
t.openConfirmModal({
|
|
19921
19921
|
title: /* @__PURE__ */ u(v, { position: "left", children: [
|
|
19922
19922
|
/* @__PURE__ */ n(Wo, { size: 18, color: "red" }),
|
|
@@ -19958,7 +19958,7 @@ const x1 = D(({
|
|
|
19958
19958
|
headerSlot: t = null,
|
|
19959
19959
|
headerMenuItems: r
|
|
19960
19960
|
}) => {
|
|
19961
|
-
const i = Jd(), a =
|
|
19961
|
+
const i = Jd(), a = De(), o = () => {
|
|
19962
19962
|
i(`/dashboard/${a.id}`);
|
|
19963
19963
|
}, l = Dt(), s = () => {
|
|
19964
19964
|
l.openConfirmModal({
|
|
@@ -20011,7 +20011,7 @@ const x1 = D(({
|
|
|
20011
20011
|
borderBottom: "1px solid #e9ecef",
|
|
20012
20012
|
background: "rgba(233,236,239, 0.15)"
|
|
20013
20013
|
}, _1 = D(() => {
|
|
20014
|
-
const e =
|
|
20014
|
+
const e = te();
|
|
20015
20015
|
return /* @__PURE__ */ n(O, { sx: w1, pl: {
|
|
20016
20016
|
base: 200,
|
|
20017
20017
|
xs: 200,
|
|
@@ -20369,7 +20369,7 @@ const W1 = Ic(({
|
|
|
20369
20369
|
const j1 = {
|
|
20370
20370
|
interaction: W1
|
|
20371
20371
|
}, G1 = D(() => {
|
|
20372
|
-
const e =
|
|
20372
|
+
const e = te(), {
|
|
20373
20373
|
edges: t,
|
|
20374
20374
|
nodes: r
|
|
20375
20375
|
} = N1(e);
|
|
@@ -20456,7 +20456,7 @@ function Q1({
|
|
|
20456
20456
|
}), children: /* @__PURE__ */ n(v, { sx: {
|
|
20457
20457
|
width: "calc(100% - 28px)"
|
|
20458
20458
|
}, onClick: e, children: /* @__PURE__ */ n(C, { size: "sm", children: t }) }) }),
|
|
20459
|
-
r && /* @__PURE__ */ n(
|
|
20459
|
+
r && /* @__PURE__ */ n(Ee, { label: "Edit", position: "right", withinPortal: !0, children: /* @__PURE__ */ n(H, { onClick: i, variant: "light", color: "blue", sx: {
|
|
20460
20460
|
position: "absolute",
|
|
20461
20461
|
top: 0,
|
|
20462
20462
|
bottom: 0,
|
|
@@ -20468,7 +20468,7 @@ function Q1({
|
|
|
20468
20468
|
] });
|
|
20469
20469
|
}
|
|
20470
20470
|
const U1 = D(() => {
|
|
20471
|
-
const e =
|
|
20471
|
+
const e = De(), t = te(), r = He((a) => () => t.views.setIDOfVIE(a), [t]), i = (a) => {
|
|
20472
20472
|
e.editor.open(["_VIEWS_", a]);
|
|
20473
20473
|
};
|
|
20474
20474
|
return /* @__PURE__ */ u(O, { sx: {
|
|
@@ -20486,7 +20486,7 @@ const U1 = D(() => {
|
|
|
20486
20486
|
}, children: "Add a View" })
|
|
20487
20487
|
] });
|
|
20488
20488
|
}), X1 = D(() => {
|
|
20489
|
-
const e =
|
|
20489
|
+
const e = De(), t = te(), r = () => {
|
|
20490
20490
|
if (!t.queries.firstID) {
|
|
20491
20491
|
e.editor.open(["_QUERIES_", ""]);
|
|
20492
20492
|
return;
|
|
@@ -20516,13 +20516,13 @@ const U1 = D(() => {
|
|
|
20516
20516
|
borderColor: "#e9ecef"
|
|
20517
20517
|
}
|
|
20518
20518
|
}, children: [
|
|
20519
|
-
/* @__PURE__ */ n(
|
|
20519
|
+
/* @__PURE__ */ n(Ee, { label: "Filters", withinPortal: !0, children: /* @__PURE__ */ n(H, { variant: "default", radius: 0, size: "md", sx: {
|
|
20520
20520
|
height: "30px"
|
|
20521
20521
|
}, onClick: i, children: /* @__PURE__ */ n(Bo, { size: 20 }) }) }),
|
|
20522
|
-
/* @__PURE__ */ n(
|
|
20522
|
+
/* @__PURE__ */ n(Ee, { label: "Queries", withinPortal: !0, children: /* @__PURE__ */ n(H, { variant: "default", radius: 0, size: "md", sx: {
|
|
20523
20523
|
height: "30px"
|
|
20524
20524
|
}, onClick: r, children: /* @__PURE__ */ n(cr, { size: 20 }) }) }),
|
|
20525
|
-
/* @__PURE__ */ n(
|
|
20525
|
+
/* @__PURE__ */ n(Ee, { label: "Interactions Viewer", withinPortal: !0, children: /* @__PURE__ */ n(H, { variant: "default", radius: 0, size: "md", sx: {
|
|
20526
20526
|
height: "30px"
|
|
20527
20527
|
}, onClick: l, children: /* @__PURE__ */ n(md, { size: 20 }) }) })
|
|
20528
20528
|
] }),
|
|
@@ -20600,7 +20600,7 @@ const U1 = D(() => {
|
|
|
20600
20600
|
value: e,
|
|
20601
20601
|
onChange: t
|
|
20602
20602
|
}) => {
|
|
20603
|
-
const r =
|
|
20603
|
+
const r = te(), i = $.useMemo(() => r.queries.options, [r.queries.current]), a = i.length === 0;
|
|
20604
20604
|
return /* @__PURE__ */ n(E, { label: "Pick a query", data: i, value: e, onChange: t, allowDeselect: !1, clearable: !0, sx: {
|
|
20605
20605
|
flexGrow: 1
|
|
20606
20606
|
}, disabled: a, error: a ? "You need to add a query in Data Settings" : void 0 });
|
|
@@ -20818,7 +20818,7 @@ const U1 = D(() => {
|
|
|
20818
20818
|
}], dC = D(function({
|
|
20819
20819
|
filter: t
|
|
20820
20820
|
}) {
|
|
20821
|
-
const r =
|
|
20821
|
+
const r = te(), i = $.useMemo(() => lC[t.type], [t.type]);
|
|
20822
20822
|
return /* @__PURE__ */ u(v, { grow: !0, spacing: 20, align: "top", children: [
|
|
20823
20823
|
/* @__PURE__ */ u(O, { sx: {
|
|
20824
20824
|
maxWidth: "600px"
|
|
@@ -20857,7 +20857,7 @@ const U1 = D(() => {
|
|
|
20857
20857
|
}), uC = D(({
|
|
20858
20858
|
id: e
|
|
20859
20859
|
}) => {
|
|
20860
|
-
const t = Dt(), r =
|
|
20860
|
+
const t = Dt(), r = De(), i = te();
|
|
20861
20861
|
if (e === "")
|
|
20862
20862
|
return null;
|
|
20863
20863
|
const a = i.filters.findByID(e);
|
|
@@ -20885,6 +20885,9 @@ const U1 = D(() => {
|
|
|
20885
20885
|
onConfirm: () => {
|
|
20886
20886
|
i.filters.removeByID(e), o();
|
|
20887
20887
|
},
|
|
20888
|
+
confirmProps: {
|
|
20889
|
+
color: "red"
|
|
20890
|
+
},
|
|
20888
20891
|
zIndex: 320
|
|
20889
20892
|
});
|
|
20890
20893
|
}, children: "Delete this filter" }) }),
|
|
@@ -20895,7 +20898,7 @@ const U1 = D(() => {
|
|
|
20895
20898
|
}, children: /* @__PURE__ */ n(dC, { filter: a }) })
|
|
20896
20899
|
] });
|
|
20897
20900
|
}), hC = D(() => {
|
|
20898
|
-
const e =
|
|
20901
|
+
const e = te(), [t, r] = U(() => JSON.stringify(e.mock_context.current, null, 4)), i = () => {
|
|
20899
20902
|
try {
|
|
20900
20903
|
e.mock_context.replace(JSON.parse(t));
|
|
20901
20904
|
} catch (o) {
|
|
@@ -20970,7 +20973,7 @@ const U1 = D(() => {
|
|
|
20970
20973
|
} = e, [i, a] = hs(t), o = t !== i, l = $.useCallback(() => {
|
|
20971
20974
|
o && r(i);
|
|
20972
20975
|
}, [o, i]);
|
|
20973
|
-
return
|
|
20976
|
+
return q(() => {
|
|
20974
20977
|
a(t);
|
|
20975
20978
|
}, [t]), /* @__PURE__ */ n(z, { value: i, onChange: a, label: /* @__PURE__ */ u(v, { children: [
|
|
20976
20979
|
/* @__PURE__ */ n(C, { children: "Panel Title" }),
|
|
@@ -20996,7 +20999,7 @@ function fC() {
|
|
|
20996
20999
|
const bC = ({
|
|
20997
21000
|
queryID: e
|
|
20998
21001
|
}) => {
|
|
20999
|
-
const t =
|
|
21002
|
+
const t = te(), {
|
|
21000
21003
|
state: r,
|
|
21001
21004
|
error: i
|
|
21002
21005
|
} = t.getDataStuffByID(e), a = $.useMemo(() => t.queries.findByID(e), [t, e]);
|
|
@@ -21067,7 +21070,7 @@ function ec({
|
|
|
21067
21070
|
const tc = D(function({
|
|
21068
21071
|
id: t
|
|
21069
21072
|
}) {
|
|
21070
|
-
const r =
|
|
21073
|
+
const r = te(), {
|
|
21071
21074
|
data: i,
|
|
21072
21075
|
state: a
|
|
21073
21076
|
} = r.getDataStuffByID(t), o = a === "loading", l = () => {
|
|
@@ -21104,7 +21107,7 @@ const tc = D(function({
|
|
|
21104
21107
|
] })
|
|
21105
21108
|
] });
|
|
21106
21109
|
}), yC = D(function() {
|
|
21107
|
-
const t =
|
|
21110
|
+
const t = De(), r = te(), {
|
|
21108
21111
|
panel: {
|
|
21109
21112
|
queryID: i,
|
|
21110
21113
|
setQueryID: a
|
|
@@ -21130,7 +21133,7 @@ const tc = D(function({
|
|
|
21130
21133
|
flexGrow: "1 !important"
|
|
21131
21134
|
},
|
|
21132
21135
|
maxDropdownHeight: 300,
|
|
21133
|
-
rightSection: i && /* @__PURE__ */ n(
|
|
21136
|
+
rightSection: i && /* @__PURE__ */ n(Ee, { label: "Open this query", children: /* @__PURE__ */ n(H, { variant: "subtle", color: "blue", onClick: o, children: /* @__PURE__ */ n(fd, { size: 16 }) }) })
|
|
21134
21137
|
}
|
|
21135
21138
|
)
|
|
21136
21139
|
] }),
|
|
@@ -21139,7 +21142,7 @@ const tc = D(function({
|
|
|
21139
21142
|
}), vC = D(({
|
|
21140
21143
|
height: e
|
|
21141
21144
|
}) => {
|
|
21142
|
-
const t =
|
|
21145
|
+
const t = te(), {
|
|
21143
21146
|
data: r,
|
|
21144
21147
|
loading: i,
|
|
21145
21148
|
error: a,
|
|
@@ -21207,8 +21210,8 @@ const tc = D(function({
|
|
|
21207
21210
|
};
|
|
21208
21211
|
class _C {
|
|
21209
21212
|
constructor(t) {
|
|
21210
|
-
|
|
21211
|
-
|
|
21213
|
+
j(this, "panel");
|
|
21214
|
+
j(this, "selected");
|
|
21212
21215
|
this.panel = t, Bn(this, {}, {
|
|
21213
21216
|
deep: !1,
|
|
21214
21217
|
autoBind: !0
|
|
@@ -21351,7 +21354,7 @@ const RC = D(({
|
|
|
21351
21354
|
submit: t
|
|
21352
21355
|
}) => {
|
|
21353
21356
|
const [r, i] = hs(e);
|
|
21354
|
-
|
|
21357
|
+
q(() => {
|
|
21355
21358
|
i(e);
|
|
21356
21359
|
}, [e]);
|
|
21357
21360
|
const a = AC();
|
|
@@ -21442,8 +21445,8 @@ const VC = D(() => {
|
|
|
21442
21445
|
panel: e,
|
|
21443
21446
|
sourceViewID: t
|
|
21444
21447
|
}) => {
|
|
21445
|
-
const r =
|
|
21446
|
-
|
|
21448
|
+
const r = te(), [i, a] = U(t);
|
|
21449
|
+
q(() => {
|
|
21447
21450
|
a(t);
|
|
21448
21451
|
}, [t]);
|
|
21449
21452
|
const [o, {
|
|
@@ -21503,12 +21506,12 @@ function BC(e) {
|
|
|
21503
21506
|
const NC = D(({
|
|
21504
21507
|
panel: e
|
|
21505
21508
|
}) => {
|
|
21506
|
-
const t = Dt(), r =
|
|
21509
|
+
const t = Dt(), r = De(), i = te(), [a, o] = U("Data"), {
|
|
21507
21510
|
data: l,
|
|
21508
21511
|
state: s,
|
|
21509
21512
|
error: c
|
|
21510
21513
|
} = i.getDataStuffByID(e.queryID), d = i.queries.findByID(e.queryID), m = BC(e.viz.type) && s === "loading", h = m || c || !d || !!d.stateMessage, g = r.editor.path[1];
|
|
21511
|
-
|
|
21514
|
+
q(() => {
|
|
21512
21515
|
o((T) => h && T === "Visualization" ? "Data" : T);
|
|
21513
21516
|
}, [e.id, h]);
|
|
21514
21517
|
const w = () => {
|
|
@@ -21550,8 +21553,8 @@ const NC = D(({
|
|
|
21550
21553
|
/* @__PURE__ */ u(b.List, { children: [
|
|
21551
21554
|
/* @__PURE__ */ n(b.Tab, { value: "Data", disabled: m, children: "Data" }),
|
|
21552
21555
|
/* @__PURE__ */ n(b.Tab, { value: "Panel", children: "Panel" }),
|
|
21553
|
-
/* @__PURE__ */ n(b.Tab, { value: "Variables", disabled: h, children: /* @__PURE__ */ n(
|
|
21554
|
-
/* @__PURE__ */ n(b.Tab, { value: "Visualization", disabled: h, children: /* @__PURE__ */ n(
|
|
21556
|
+
/* @__PURE__ */ n(b.Tab, { value: "Variables", disabled: h, children: /* @__PURE__ */ n(Ee, { label: "Requires data", disabled: !h, withinPortal: !0, zIndex: 310, children: /* @__PURE__ */ n(C, { children: "Variables" }) }) }),
|
|
21557
|
+
/* @__PURE__ */ n(b.Tab, { value: "Visualization", disabled: h, children: /* @__PURE__ */ n(Ee, { label: "Requires data", disabled: !h, withinPortal: !0, zIndex: 310, children: /* @__PURE__ */ n(C, { children: "Visualization" }) }) }),
|
|
21555
21558
|
/* @__PURE__ */ n(b.Tab, { value: "Interactions", children: "Interactions" })
|
|
21556
21559
|
] }),
|
|
21557
21560
|
/* @__PURE__ */ u(b.Panel, { value: "Data", children: [
|
|
@@ -21568,7 +21571,7 @@ const NC = D(({
|
|
|
21568
21571
|
viewID: e,
|
|
21569
21572
|
panelID: t
|
|
21570
21573
|
}) => {
|
|
21571
|
-
const r =
|
|
21574
|
+
const r = te();
|
|
21572
21575
|
if (!r.views.findByID(e))
|
|
21573
21576
|
return /* @__PURE__ */ u(C, { size: 14, children: [
|
|
21574
21577
|
"View by ID[",
|
|
@@ -21593,14 +21596,14 @@ const NC = D(({
|
|
|
21593
21596
|
/* @__PURE__ */ n(Ua, { width: t, height: r, radius: "xs" })
|
|
21594
21597
|
] }), Ln = ({
|
|
21595
21598
|
value: e
|
|
21596
|
-
}) => e === null || e === "" ? null : /* @__PURE__ */ n(
|
|
21599
|
+
}) => e === null || e === "" ? null : /* @__PURE__ */ n(Ee, { label: e, disabled: !e, multiline: !0, children: /* @__PURE__ */ n(H, { children: /* @__PURE__ */ n(Fn, { size: 14 }) }) }), WC = ({
|
|
21597
21600
|
column: e
|
|
21598
21601
|
}) => {
|
|
21599
21602
|
const {
|
|
21600
21603
|
column_key: t,
|
|
21601
21604
|
column_key_text: r
|
|
21602
21605
|
} = e;
|
|
21603
|
-
return t ? /* @__PURE__ */ n(
|
|
21606
|
+
return t ? /* @__PURE__ */ n(Ee, { label: r, disabled: !r, children: /* @__PURE__ */ n(In, { children: t }) }) : null;
|
|
21604
21607
|
}, jC = D(({
|
|
21605
21608
|
dataSource: e
|
|
21606
21609
|
}) => {
|
|
@@ -21892,7 +21895,7 @@ const XC = D(({
|
|
|
21892
21895
|
}
|
|
21893
21896
|
}, rS = D(({
|
|
21894
21897
|
dataSource: e
|
|
21895
|
-
}) => (
|
|
21898
|
+
}) => (q(() => {
|
|
21896
21899
|
e.loadTablesIfEmpty();
|
|
21897
21900
|
}, [e]), e.tables.error ? /* @__PURE__ */ n(C, { color: "red", size: "md", align: "center", sx: {
|
|
21898
21901
|
fontFamily: "monospace"
|
|
@@ -21937,7 +21940,7 @@ const XC = D(({
|
|
|
21937
21940
|
triggerButtonProps: t = {}
|
|
21938
21941
|
}) => {
|
|
21939
21942
|
const [r, i] = U(!1);
|
|
21940
|
-
return /* @__PURE__ */ u(G, { children: [
|
|
21943
|
+
return e.type === "http" ? null : /* @__PURE__ */ u(G, { children: [
|
|
21941
21944
|
/* @__PURE__ */ n(Te, { opened: r, onClose: () => i(!1), title: /* @__PURE__ */ u(v, { position: "apart", sx: {
|
|
21942
21945
|
flexGrow: 1
|
|
21943
21946
|
}, children: [
|
|
@@ -21972,7 +21975,7 @@ const XC = D(({
|
|
|
21972
21975
|
value: e,
|
|
21973
21976
|
onChange: t
|
|
21974
21977
|
}) => {
|
|
21975
|
-
const r =
|
|
21978
|
+
const r = De(), {
|
|
21976
21979
|
data: i = [],
|
|
21977
21980
|
loading: a
|
|
21978
21981
|
} = On(Da, {
|
|
@@ -22003,6 +22006,8 @@ const XC = D(({
|
|
|
22003
22006
|
},
|
|
22004
22007
|
rightSection: {
|
|
22005
22008
|
pointerEvents: "none",
|
|
22009
|
+
justifyContent: "flex-end",
|
|
22010
|
+
paddingRight: "10px",
|
|
22006
22011
|
".mantine-Text-root": {
|
|
22007
22012
|
userSelect: "none"
|
|
22008
22013
|
}
|
|
@@ -22011,7 +22016,7 @@ const XC = D(({
|
|
|
22011
22016
|
}), sS = (e) => {
|
|
22012
22017
|
const {
|
|
22013
22018
|
queryModel: t
|
|
22014
|
-
} = e, r =
|
|
22019
|
+
} = e, r = De(), i = te(), o = i.findQueryUsage(t.id).length > 0, l = Dt(), s = () => {
|
|
22015
22020
|
l.openConfirmModal({
|
|
22016
22021
|
title: "Delete this query?",
|
|
22017
22022
|
labels: {
|
|
@@ -22022,10 +22027,13 @@ const XC = D(({
|
|
|
22022
22027
|
onConfirm: () => {
|
|
22023
22028
|
i.queries.removeQuery(t.id), r.editor.setPath(["_QUERIES_", ""]);
|
|
22024
22029
|
},
|
|
22030
|
+
confirmProps: {
|
|
22031
|
+
color: "red"
|
|
22032
|
+
},
|
|
22025
22033
|
zIndex: 320
|
|
22026
22034
|
});
|
|
22027
22035
|
};
|
|
22028
|
-
return o ? /* @__PURE__ */ n(
|
|
22036
|
+
return o ? /* @__PURE__ */ n(Ee, { label: "Can't delete this query for it's being used, check out Usage tab for details", withArrow: !0, events: {
|
|
22029
22037
|
hover: !0,
|
|
22030
22038
|
focus: !1,
|
|
22031
22039
|
touch: !1
|
|
@@ -22072,7 +22080,10 @@ function dS() {
|
|
|
22072
22080
|
border: "none"
|
|
22073
22081
|
},
|
|
22074
22082
|
content: {
|
|
22075
|
-
padding: 0
|
|
22083
|
+
padding: 0,
|
|
22084
|
+
table: {
|
|
22085
|
+
marginBottom: 0
|
|
22086
|
+
}
|
|
22076
22087
|
}
|
|
22077
22088
|
} }) }),
|
|
22078
22089
|
/* @__PURE__ */ n(I, { variant: "light", color: "violet", size: "xs", onClick: t, leftIcon: /* @__PURE__ */ n(Fn, { size: 16 }), children: "About parameter 'utils'" })
|
|
@@ -22108,7 +22119,7 @@ const uS = ({
|
|
|
22108
22119
|
}, d = () => {
|
|
22109
22120
|
l(i);
|
|
22110
22121
|
};
|
|
22111
|
-
|
|
22122
|
+
q(() => {
|
|
22112
22123
|
l(e);
|
|
22113
22124
|
}, [e]);
|
|
22114
22125
|
const p = o !== e;
|
|
@@ -22145,7 +22156,7 @@ WHERE
|
|
|
22145
22156
|
showSQLSnippets: t = !0,
|
|
22146
22157
|
sx: r = {}
|
|
22147
22158
|
}) {
|
|
22148
|
-
const i =
|
|
22159
|
+
const i = De(), a = te(), o = i.context.current, l = (() => {
|
|
22149
22160
|
const s = {
|
|
22150
22161
|
context: {
|
|
22151
22162
|
...a.mock_context.current,
|
|
@@ -22185,7 +22196,7 @@ WHERE
|
|
|
22185
22196
|
}, children: "See Global Variables" })
|
|
22186
22197
|
] });
|
|
22187
22198
|
}), So = {
|
|
22188
|
-
pre: ["function build_request({ context, filters }, utils) {", " // build the quest", " return { method, url, params, headers, data }", "}"].join(`
|
|
22199
|
+
pre: ["function build_request({ context, filters }, utils) {", " // build the quest", " return { method: 'POST', url: '/', params: {}, headers: {}, data: {} }", "}"].join(`
|
|
22189
22200
|
`),
|
|
22190
22201
|
post: ["function process_result(res, utils) {", " // your code goes here", " return data", "}"].join(`
|
|
22191
22202
|
`)
|
|
@@ -22207,7 +22218,7 @@ WHERE
|
|
|
22207
22218
|
queryID: e,
|
|
22208
22219
|
usage: t
|
|
22209
22220
|
}) => {
|
|
22210
|
-
const r =
|
|
22221
|
+
const r = De().editor, i = (o) => {
|
|
22211
22222
|
if (o.type === "filter") {
|
|
22212
22223
|
r.setPath(["_FILTERS_", o.id]);
|
|
22213
22224
|
return;
|
|
@@ -22277,7 +22288,7 @@ WHERE
|
|
|
22277
22288
|
} }), fS = D(({
|
|
22278
22289
|
value: e
|
|
22279
22290
|
}) => {
|
|
22280
|
-
const r =
|
|
22291
|
+
const r = te().payloadForSQL, i = $.useMemo(() => {
|
|
22281
22292
|
const {
|
|
22282
22293
|
context: a,
|
|
22283
22294
|
mock_context: o,
|
|
@@ -22338,18 +22349,22 @@ WHERE
|
|
|
22338
22349
|
}, xS = D(({
|
|
22339
22350
|
queryModel: e
|
|
22340
22351
|
}) => {
|
|
22341
|
-
const t =
|
|
22352
|
+
const t = te(), r = L(() => e.datasource ? e.typedAsHTTP ? "HTTP" : "SQL" : "Configurations", [e.datasource, e.typedAsHTTP]), [i, a] = U(r);
|
|
22353
|
+
q(() => {
|
|
22354
|
+
a((s) => s !== "Configurations" && r === "Configurations" ? "Configurations" : s);
|
|
22355
|
+
}, [r]);
|
|
22356
|
+
const o = t.findQueryUsage(e.id), l = o.length === 0;
|
|
22342
22357
|
return /* @__PURE__ */ n(S, { sx: {
|
|
22343
22358
|
flexGrow: 1
|
|
22344
|
-
}, my: 0, p: 0, children: /* @__PURE__ */ u(b, { defaultValue: r, orientation: "horizontal", keepMounted: !1, sx: {
|
|
22359
|
+
}, my: 0, p: 0, children: /* @__PURE__ */ u(b, { value: i, onTabChange: a, defaultValue: r, orientation: "horizontal", keepMounted: !1, sx: {
|
|
22345
22360
|
flexGrow: 1
|
|
22346
22361
|
}, children: [
|
|
22347
22362
|
/* @__PURE__ */ u(b.List, { grow: !0, children: [
|
|
22348
22363
|
/* @__PURE__ */ n(b.Tab, { value: "Configurations", children: "Configurations" }),
|
|
22349
22364
|
e.typedAsSQL && /* @__PURE__ */ n(b.Tab, { value: "SQL", children: "Request" }),
|
|
22350
22365
|
e.typedAsHTTP && /* @__PURE__ */ n(b.Tab, { value: "HTTP", children: "Request" }),
|
|
22351
|
-
/* @__PURE__ */ n(b.Tab, { value: "Data", disabled: !e.datasource, children: /* @__PURE__ */ n(
|
|
22352
|
-
/* @__PURE__ */ n(b.Tab, { value: "Usage", disabled:
|
|
22366
|
+
/* @__PURE__ */ n(b.Tab, { value: "Data", disabled: !e.datasource, children: /* @__PURE__ */ n(Ee, { label: "Need to pick a Data Source first", disabled: e.datasource, withinPortal: !0, children: /* @__PURE__ */ n(C, { children: "Data" }) }) }),
|
|
22367
|
+
/* @__PURE__ */ n(b.Tab, { value: "Usage", disabled: l, children: /* @__PURE__ */ n(Ee, { label: "This query is not used for any filter or panel", disabled: !l, withinPortal: !0, children: /* @__PURE__ */ n(C, { children: "Usage" }) }) })
|
|
22353
22368
|
] }),
|
|
22354
22369
|
/* @__PURE__ */ n(b.Panel, { value: "Configurations", pt: 0, p: 0, children: /* @__PURE__ */ n(cS, { queryModel: e }) }),
|
|
22355
22370
|
e.typedAsSQL && /* @__PURE__ */ n(b.Panel, { value: "SQL", sx: Xn, children: /* @__PURE__ */ n(S, { sx: {
|
|
@@ -22365,19 +22380,19 @@ WHERE
|
|
|
22365
22380
|
/* @__PURE__ */ n(b.Panel, { value: "Usage", sx: {
|
|
22366
22381
|
...Xn,
|
|
22367
22382
|
overflow: "hidden"
|
|
22368
|
-
}, children: /* @__PURE__ */ n(mS, { queryID: e.id, usage:
|
|
22383
|
+
}, children: /* @__PURE__ */ n(mS, { queryID: e.id, usage: o }) })
|
|
22369
22384
|
] }) });
|
|
22370
22385
|
}), yS = D(({
|
|
22371
22386
|
id: e
|
|
22372
22387
|
}) => {
|
|
22373
|
-
const r =
|
|
22388
|
+
const r = te().queries.findByID(e);
|
|
22374
22389
|
return e === "" ? null : r ? /* @__PURE__ */ n(S, { sx: {
|
|
22375
22390
|
height: "100%"
|
|
22376
22391
|
}, spacing: "sm", children: /* @__PURE__ */ n(xS, { queryModel: r }) }) : /* @__PURE__ */ n(C, { size: 14, color: "red", children: "Invalid Query ID" });
|
|
22377
22392
|
}), vS = D(({
|
|
22378
22393
|
value: e
|
|
22379
22394
|
}) => {
|
|
22380
|
-
const t =
|
|
22395
|
+
const t = te(), {
|
|
22381
22396
|
context: r,
|
|
22382
22397
|
mock_context: i,
|
|
22383
22398
|
filterValues: a
|
|
@@ -22393,7 +22408,7 @@ WHERE
|
|
|
22393
22408
|
}, c = o !== e.key, d = e.isADuplicatedKey(o), [p, m] = U(e.value), h = () => {
|
|
22394
22409
|
e.setValue(p);
|
|
22395
22410
|
};
|
|
22396
|
-
|
|
22411
|
+
q(() => {
|
|
22397
22412
|
l(e.key), m(e.value);
|
|
22398
22413
|
}, [e]);
|
|
22399
22414
|
const g = p !== e.value, w = Dt();
|
|
@@ -22428,6 +22443,9 @@ WHERE
|
|
|
22428
22443
|
},
|
|
22429
22444
|
onCancel: () => console.log("Cancel"),
|
|
22430
22445
|
onConfirm: t,
|
|
22446
|
+
confirmProps: {
|
|
22447
|
+
color: "red"
|
|
22448
|
+
},
|
|
22431
22449
|
zIndex: 320
|
|
22432
22450
|
});
|
|
22433
22451
|
}, children: "Delete this SQL Snippet" })
|
|
@@ -22458,7 +22476,7 @@ WHERE
|
|
|
22458
22476
|
}), _S = D(({
|
|
22459
22477
|
id: e
|
|
22460
22478
|
}) => {
|
|
22461
|
-
const t =
|
|
22479
|
+
const t = De(), r = te(), i = L(() => r.sqlSnippets.findByKey(e), [e]);
|
|
22462
22480
|
if (!e)
|
|
22463
22481
|
return null;
|
|
22464
22482
|
if (!i)
|
|
@@ -22618,7 +22636,7 @@ WHERE
|
|
|
22618
22636
|
] }) : null), AS = D(({
|
|
22619
22637
|
id: e
|
|
22620
22638
|
}) => {
|
|
22621
|
-
const t = Dt(), r =
|
|
22639
|
+
const t = Dt(), r = De(), i = te();
|
|
22622
22640
|
if (e === "")
|
|
22623
22641
|
return null;
|
|
22624
22642
|
const a = i.views.findByID(e);
|
|
@@ -22680,22 +22698,22 @@ function BS(e) {
|
|
|
22680
22698
|
const NS = D(() => /* @__PURE__ */ n(S, { sx: {
|
|
22681
22699
|
height: "100%"
|
|
22682
22700
|
}, p: "sm", children: /* @__PURE__ */ n(ac, {}) })), qS = D(() => {
|
|
22683
|
-
const e =
|
|
22701
|
+
const e = De().editor, t = e.path;
|
|
22684
22702
|
return RS(t) ? /* @__PURE__ */ n(NS, {}) : ES(t) ? /* @__PURE__ */ n(hC, {}) : OS(t) ? /* @__PURE__ */ n(O, { p: "xs", pl: 20, children: /* @__PURE__ */ n(uC, { id: t[1] }) }) : VS(t) ? /* @__PURE__ */ n(_S, { id: t[1] }) : FS(t) ? /* @__PURE__ */ n(yS, { id: t[1] }) : PS(t) ? /* @__PURE__ */ n(O, { p: "xs", pl: 20, children: /* @__PURE__ */ n(AS, { id: t[1] }) }) : BS(t) ? /* @__PURE__ */ n(qC, { viewID: t[1], panelID: t[3] }) : /* @__PURE__ */ n(O, { children: e.path });
|
|
22685
22703
|
}), WS = D(() => /* @__PURE__ */ n(qS, {})), jS = D(() => {
|
|
22686
|
-
const e =
|
|
22704
|
+
const e = De();
|
|
22687
22705
|
return /* @__PURE__ */ n(I, { variant: "subtle", leftIcon: /* @__PURE__ */ n(Pt, { size: 14 }), size: "sm", px: "xs", mb: 10, color: "blue", onClick: () => {
|
|
22688
22706
|
const r = (/* @__PURE__ */ new Date()).getTime().toString(), i = {
|
|
22689
22707
|
id: r,
|
|
22690
22708
|
key: r,
|
|
22691
22709
|
label: r,
|
|
22692
|
-
order: e.filters.current.length + 1,
|
|
22710
|
+
order: e.content.filters.current.length + 1,
|
|
22693
22711
|
type: Il.TextInput,
|
|
22694
22712
|
config: Fl(),
|
|
22695
22713
|
visibleInViewsIDs: ["Main"],
|
|
22696
22714
|
auto_submit: !1
|
|
22697
22715
|
};
|
|
22698
|
-
e.filters.append(i);
|
|
22716
|
+
e.content.filters.append(i), e.editor.setPath(["_FILTERS_", r]);
|
|
22699
22717
|
}, sx: {
|
|
22700
22718
|
width: "100%",
|
|
22701
22719
|
borderRadius: 0
|
|
@@ -22707,7 +22725,7 @@ const NS = D(() => /* @__PURE__ */ n(S, { sx: {
|
|
|
22707
22725
|
}), GS = D(({
|
|
22708
22726
|
parentID: e
|
|
22709
22727
|
}) => {
|
|
22710
|
-
const t =
|
|
22728
|
+
const t = te();
|
|
22711
22729
|
if (!e)
|
|
22712
22730
|
return null;
|
|
22713
22731
|
const r = t.views.findByID(e);
|
|
@@ -22720,7 +22738,7 @@ const NS = D(() => /* @__PURE__ */ n(S, { sx: {
|
|
|
22720
22738
|
}
|
|
22721
22739
|
}, children: "Add a Panel" }) : null;
|
|
22722
22740
|
}), YS = D(() => {
|
|
22723
|
-
const e =
|
|
22741
|
+
const e = De();
|
|
22724
22742
|
return /* @__PURE__ */ n(I, { variant: "subtle", leftIcon: /* @__PURE__ */ n(Pt, { size: 14 }), size: "sm", px: "xs", mb: 10, color: "blue", onClick: () => {
|
|
22725
22743
|
const r = (/* @__PURE__ */ new Date()).getTime().toString(), i = {
|
|
22726
22744
|
id: r,
|
|
@@ -22729,7 +22747,7 @@ const NS = D(() => /* @__PURE__ */ n(S, { sx: {
|
|
|
22729
22747
|
key: "",
|
|
22730
22748
|
sql: ""
|
|
22731
22749
|
};
|
|
22732
|
-
e.queries.append(i);
|
|
22750
|
+
e.content.queries.append(i), e.editor.setPath(["_QUERIES_", r]);
|
|
22733
22751
|
}, sx: {
|
|
22734
22752
|
width: "100%",
|
|
22735
22753
|
borderRadius: 0
|
|
@@ -22739,13 +22757,13 @@ const NS = D(() => /* @__PURE__ */ n(S, { sx: {
|
|
|
22739
22757
|
}
|
|
22740
22758
|
}, children: "Add a Query" });
|
|
22741
22759
|
}), HS = D(() => {
|
|
22742
|
-
const e =
|
|
22760
|
+
const e = De();
|
|
22743
22761
|
return /* @__PURE__ */ n(I, { variant: "subtle", leftIcon: /* @__PURE__ */ n(Pt, { size: 14 }), size: "sm", px: "xs", mb: 10, color: "blue", onClick: () => {
|
|
22744
|
-
const i = {
|
|
22745
|
-
key:
|
|
22762
|
+
const r = (/* @__PURE__ */ new Date()).getTime().toString(), i = {
|
|
22763
|
+
key: r,
|
|
22746
22764
|
value: ""
|
|
22747
22765
|
};
|
|
22748
|
-
e.sqlSnippets.append(i);
|
|
22766
|
+
e.content.sqlSnippets.append(i), e.editor.setPath(["_SQL_SNIPPETS_", r]);
|
|
22749
22767
|
}, sx: {
|
|
22750
22768
|
width: "100%",
|
|
22751
22769
|
borderRadius: 0
|
|
@@ -22755,7 +22773,7 @@ const NS = D(() => /* @__PURE__ */ n(S, { sx: {
|
|
|
22755
22773
|
}
|
|
22756
22774
|
}, children: "Add a SQL Snippet" });
|
|
22757
22775
|
}), QS = D(() => {
|
|
22758
|
-
const e =
|
|
22776
|
+
const e = te();
|
|
22759
22777
|
return /* @__PURE__ */ n(I, { variant: "subtle", leftIcon: /* @__PURE__ */ n(Pt, { size: 14 }), size: "sm", px: "xs", mb: 10, color: "blue", onClick: e.views.addARandomNewView, sx: {
|
|
22760
22778
|
width: "100%",
|
|
22761
22779
|
borderRadius: 0
|
|
@@ -22767,21 +22785,21 @@ const NS = D(() => /* @__PURE__ */ n(S, { sx: {
|
|
|
22767
22785
|
}), US = D(({
|
|
22768
22786
|
action_type: e,
|
|
22769
22787
|
parentID: t
|
|
22770
|
-
}) => (
|
|
22788
|
+
}) => (te(), e === "_Add_A_Filter_" ? /* @__PURE__ */ n(jS, {}) : e === "_Add_A_SQL_SNIPPET_" ? /* @__PURE__ */ n(HS, {}) : e === "_Add_A_QUERY_" ? /* @__PURE__ */ n(YS, {}) : e === "_Add_A_VIEW_" ? /* @__PURE__ */ n(QS, {}) : e === "_Add_A_PANEL_" ? /* @__PURE__ */ n(GS, { parentID: t }) : null)), oc = D(({
|
|
22771
22789
|
option: e
|
|
22772
22790
|
}) => {
|
|
22773
22791
|
var d;
|
|
22774
|
-
const t =
|
|
22775
|
-
return
|
|
22792
|
+
const t = De().editor, r = t.isOptionActive, i = r(t.path, e), a = t.isOptionOpened, o = t.navigate, l = a(e), [s, c] = U(l);
|
|
22793
|
+
return q(() => {
|
|
22776
22794
|
c(l);
|
|
22777
22795
|
}, [l]), /* @__PURE__ */ n(Gr, { active: i, defaultOpened: l, opened: s, onChange: c, label: e.label, onClick: () => o(e), icon: e.Icon ? /* @__PURE__ */ n(e.Icon, { size: 18 }) : null, children: (d = e.children) == null ? void 0 : d.map((p) => p._type === "ACTION" ? /* @__PURE__ */ n(US, { action_type: p._action_type, parentID: p.parentID }, `_ADD_${p.value}_`) : /* @__PURE__ */ n(oc, { option: p }, p.value)) }, e.label);
|
|
22778
22796
|
}), XS = D(() => {
|
|
22779
|
-
const e =
|
|
22797
|
+
const e = De();
|
|
22780
22798
|
return /* @__PURE__ */ n(O, { sx: {
|
|
22781
22799
|
position: "relative"
|
|
22782
22800
|
}, children: e.editor.navOptions.map((t) => /* @__PURE__ */ n(oc, { option: t }, t.value)) });
|
|
22783
22801
|
}), ZS = D(() => {
|
|
22784
|
-
const e =
|
|
22802
|
+
const e = De();
|
|
22785
22803
|
return /* @__PURE__ */ u(kt, { p: 0, width: {
|
|
22786
22804
|
base: 200,
|
|
22787
22805
|
xs: 200,
|
|
@@ -22827,7 +22845,7 @@ const NS = D(() => /* @__PURE__ */ n(S, { sx: {
|
|
|
22827
22845
|
height: "100vh"
|
|
22828
22846
|
}
|
|
22829
22847
|
}, JS = D(() => {
|
|
22830
|
-
const e =
|
|
22848
|
+
const e = De().editor;
|
|
22831
22849
|
return /* @__PURE__ */ n(Te, { onClose: () => e.setSettingsOpen(!1), closeOnEscape: !1, closeOnClickOutside: !1, opened: e.settings_open, fullScreen: !0, title: null, transitionDuration: 0, withCloseButton: !1, withinPortal: !0, zIndex: 300, styles: {
|
|
22832
22850
|
modal: {
|
|
22833
22851
|
padding: "0 !important"
|
|
@@ -22835,7 +22853,7 @@ const NS = D(() => /* @__PURE__ */ n(S, { sx: {
|
|
|
22835
22853
|
}, children: /* @__PURE__ */ n(zo, { padding: 0, navbar: /* @__PURE__ */ n(ZS, {}), styles: KS, children: /* @__PURE__ */ n(WS, {}) }) });
|
|
22836
22854
|
}), ek = (e) => e.replace(/([^:])(\/\/+)/g, "$1/");
|
|
22837
22855
|
function tk(e) {
|
|
22838
|
-
|
|
22856
|
+
q(() => {
|
|
22839
22857
|
if (Pr.__getMonacoInstance())
|
|
22840
22858
|
return;
|
|
22841
22859
|
console.log("loading monaco for @devtable/dashboard");
|
|
@@ -23144,9 +23162,9 @@ var ii = {}, mk = {
|
|
|
23144
23162
|
}, h = function(y, T) {
|
|
23145
23163
|
var R, F = s.meridiem;
|
|
23146
23164
|
if (F) {
|
|
23147
|
-
for (var
|
|
23148
|
-
if (y.indexOf(F(
|
|
23149
|
-
R =
|
|
23165
|
+
for (var W = 1; W <= 24; W += 1)
|
|
23166
|
+
if (y.indexOf(F(W, 0, T)) > -1) {
|
|
23167
|
+
R = W > 12;
|
|
23150
23168
|
break;
|
|
23151
23169
|
}
|
|
23152
23170
|
} else
|
|
@@ -23185,23 +23203,23 @@ var ii = {}, mk = {
|
|
|
23185
23203
|
function w(y) {
|
|
23186
23204
|
var T, R;
|
|
23187
23205
|
T = y, R = s && s.formats;
|
|
23188
|
-
for (var F = (y = T.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(ne,
|
|
23206
|
+
for (var F = (y = T.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(ne, ee, de) {
|
|
23189
23207
|
var pe = de && de.toUpperCase();
|
|
23190
|
-
return
|
|
23208
|
+
return ee || R[de] || r[de] || R[pe].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(ge, ue, Ce) {
|
|
23191
23209
|
return ue || Ce.slice(1);
|
|
23192
23210
|
});
|
|
23193
|
-
})).match(i),
|
|
23211
|
+
})).match(i), W = F.length, Q = 0; Q < W; Q += 1) {
|
|
23194
23212
|
var N = F[Q], P = g[N], V = P && P[0], Y = P && P[1];
|
|
23195
23213
|
F[Q] = Y ? { regex: V, parser: Y } : N.replace(/^\[|\]$/g, "");
|
|
23196
23214
|
}
|
|
23197
23215
|
return function(ne) {
|
|
23198
|
-
for (var
|
|
23216
|
+
for (var ee = {}, de = 0, pe = 0; de < W; de += 1) {
|
|
23199
23217
|
var ge = F[de];
|
|
23200
23218
|
if (typeof ge == "string")
|
|
23201
23219
|
pe += ge.length;
|
|
23202
23220
|
else {
|
|
23203
|
-
var ue = ge.regex, Ce = ge.parser,
|
|
23204
|
-
Ce.call(
|
|
23221
|
+
var ue = ge.regex, Ce = ge.parser, Le = ne.slice(pe), qe = ue.exec(Le)[0];
|
|
23222
|
+
Ce.call(ee, qe), ne = ne.replace(qe, "");
|
|
23205
23223
|
}
|
|
23206
23224
|
}
|
|
23207
23225
|
return function(pt) {
|
|
@@ -23210,23 +23228,23 @@ var ii = {}, mk = {
|
|
|
23210
23228
|
var _t = pt.hours;
|
|
23211
23229
|
Ze ? _t < 12 && (pt.hours += 12) : _t === 12 && (pt.hours = 0), delete pt.afternoon;
|
|
23212
23230
|
}
|
|
23213
|
-
}(
|
|
23231
|
+
}(ee), ee;
|
|
23214
23232
|
};
|
|
23215
23233
|
}
|
|
23216
23234
|
return function(y, T, R) {
|
|
23217
23235
|
R.p.customParseFormat = !0, y && y.parseTwoDigitYear && (c = y.parseTwoDigitYear);
|
|
23218
|
-
var F = T.prototype,
|
|
23236
|
+
var F = T.prototype, W = F.parse;
|
|
23219
23237
|
F.parse = function(Q) {
|
|
23220
23238
|
var N = Q.date, P = Q.utc, V = Q.args;
|
|
23221
23239
|
this.$u = P;
|
|
23222
23240
|
var Y = V[1];
|
|
23223
23241
|
if (typeof Y == "string") {
|
|
23224
|
-
var ne = V[2] === !0,
|
|
23225
|
-
|
|
23242
|
+
var ne = V[2] === !0, ee = V[3] === !0, de = ne || ee, pe = V[2];
|
|
23243
|
+
ee && (pe = V[2]), s = this.$locale(), !ne && pe && (s = R.Ls[pe]), this.$d = function(Le, qe, pt) {
|
|
23226
23244
|
try {
|
|
23227
23245
|
if (["x", "X"].indexOf(qe) > -1)
|
|
23228
|
-
return new Date((qe === "X" ? 1e3 : 1) *
|
|
23229
|
-
var Ze = w(qe)(
|
|
23246
|
+
return new Date((qe === "X" ? 1e3 : 1) * Le);
|
|
23247
|
+
var Ze = w(qe)(Le), _t = Ze.year, Wt = Ze.month, jn = Ze.day, Gn = Ze.hours, Ir = Ze.minutes, $r = Ze.seconds, yn = Ze.milliseconds, en = Ze.zone, $t = /* @__PURE__ */ new Date(), jt = jn || (_t || Wt ? 1 : $t.getDate()), zt = _t || $t.getFullYear(), tn = 0;
|
|
23230
23248
|
_t && !Wt || (tn = Wt > 0 ? Wt - 1 : $t.getMonth());
|
|
23231
23249
|
var nn = Gn || 0, vn = Ir || 0, wn = $r || 0, Mt = yn || 0;
|
|
23232
23250
|
return en ? new Date(Date.UTC(zt, tn, jt, nn, vn, wn, Mt + 60 * en.offset * 1e3)) : pt ? new Date(Date.UTC(zt, tn, jt, nn, vn, wn, Mt)) : new Date(zt, tn, jt, nn, vn, wn, Mt);
|
|
@@ -23245,7 +23263,7 @@ var ii = {}, mk = {
|
|
|
23245
23263
|
ue === ge && (this.$d = /* @__PURE__ */ new Date(""));
|
|
23246
23264
|
}
|
|
23247
23265
|
else
|
|
23248
|
-
|
|
23266
|
+
W.call(this, Q);
|
|
23249
23267
|
};
|
|
23250
23268
|
};
|
|
23251
23269
|
});
|
|
@@ -23296,18 +23314,18 @@ var oi = {}, xk = {
|
|
|
23296
23314
|
return T(N) ? Math.ceil(N) : Math.floor(N);
|
|
23297
23315
|
}, F = function(N) {
|
|
23298
23316
|
return Math.abs(N);
|
|
23299
|
-
},
|
|
23317
|
+
}, W = function(N, P) {
|
|
23300
23318
|
return N ? T(N) ? { negative: !0, format: "" + F(N) + P } : { negative: !1, format: "" + N + P } : { negative: !1, format: "" };
|
|
23301
23319
|
}, Q = function() {
|
|
23302
23320
|
function N(V, Y, ne) {
|
|
23303
|
-
var
|
|
23321
|
+
var ee = this;
|
|
23304
23322
|
if (this.$d = {}, this.$l = ne, V === void 0 && (this.$ms = 0, this.parseFromMilliseconds()), Y)
|
|
23305
23323
|
return w(V * h[y(Y)], this);
|
|
23306
23324
|
if (typeof V == "number")
|
|
23307
23325
|
return this.$ms = V, this.parseFromMilliseconds(), this;
|
|
23308
23326
|
if (typeof V == "object")
|
|
23309
23327
|
return Object.keys(V).forEach(function(ge) {
|
|
23310
|
-
|
|
23328
|
+
ee.$d[y(ge)] = V[ge];
|
|
23311
23329
|
}), this.calMilliseconds(), this;
|
|
23312
23330
|
if (typeof V == "string") {
|
|
23313
23331
|
var de = V.match(m);
|
|
@@ -23330,18 +23348,18 @@ var oi = {}, xk = {
|
|
|
23330
23348
|
var V = this.$ms;
|
|
23331
23349
|
this.$d.years = R(V / d), V %= d, this.$d.months = R(V / p), V %= p, this.$d.days = R(V / s), V %= s, this.$d.hours = R(V / l), V %= l, this.$d.minutes = R(V / o), V %= o, this.$d.seconds = R(V / a), V %= a, this.$d.milliseconds = V;
|
|
23332
23350
|
}, P.toISOString = function() {
|
|
23333
|
-
var V =
|
|
23351
|
+
var V = W(this.$d.years, "Y"), Y = W(this.$d.months, "M"), ne = +this.$d.days || 0;
|
|
23334
23352
|
this.$d.weeks && (ne += 7 * this.$d.weeks);
|
|
23335
|
-
var
|
|
23353
|
+
var ee = W(ne, "D"), de = W(this.$d.hours, "H"), pe = W(this.$d.minutes, "M"), ge = this.$d.seconds || 0;
|
|
23336
23354
|
this.$d.milliseconds && (ge += this.$d.milliseconds / 1e3);
|
|
23337
|
-
var ue =
|
|
23355
|
+
var ue = W(ge, "S"), Ce = V.negative || Y.negative || ee.negative || de.negative || pe.negative || ue.negative, Le = de.format || pe.format || ue.format ? "T" : "", qe = (Ce ? "-" : "") + "P" + V.format + Y.format + ee.format + Le + de.format + pe.format + ue.format;
|
|
23338
23356
|
return qe === "P" || qe === "-P" ? "P0D" : qe;
|
|
23339
23357
|
}, P.toJSON = function() {
|
|
23340
23358
|
return this.toISOString();
|
|
23341
23359
|
}, P.format = function(V) {
|
|
23342
23360
|
var Y = V || "YYYY-MM-DDTHH:mm:ss", ne = { Y: this.$d.years, YY: i.s(this.$d.years, 2, "0"), YYYY: i.s(this.$d.years, 4, "0"), M: this.$d.months, MM: i.s(this.$d.months, 2, "0"), D: this.$d.days, DD: i.s(this.$d.days, 2, "0"), H: this.$d.hours, HH: i.s(this.$d.hours, 2, "0"), m: this.$d.minutes, mm: i.s(this.$d.minutes, 2, "0"), s: this.$d.seconds, ss: i.s(this.$d.seconds, 2, "0"), SSS: i.s(this.$d.milliseconds, 3, "0") };
|
|
23343
|
-
return Y.replace(c, function(
|
|
23344
|
-
return de || String(ne[
|
|
23361
|
+
return Y.replace(c, function(ee, de) {
|
|
23362
|
+
return de || String(ne[ee]);
|
|
23345
23363
|
});
|
|
23346
23364
|
}, P.as = function(V) {
|
|
23347
23365
|
return this.$ms / h[y(V)];
|
|
@@ -23349,8 +23367,8 @@ var oi = {}, xk = {
|
|
|
23349
23367
|
var Y = this.$ms, ne = y(V);
|
|
23350
23368
|
return ne === "milliseconds" ? Y %= 1e3 : Y = ne === "weeks" ? R(Y / h[ne]) : this.$d[ne], Y === 0 ? 0 : Y;
|
|
23351
23369
|
}, P.add = function(V, Y, ne) {
|
|
23352
|
-
var
|
|
23353
|
-
return
|
|
23370
|
+
var ee;
|
|
23371
|
+
return ee = Y ? V * h[y(Y)] : g(V) ? V.$ms : w(V, this).$ms, w(this.$ms + ee * (ne ? -1 : 1), this);
|
|
23354
23372
|
}, P.subtract = function(V, Y) {
|
|
23355
23373
|
return this.add(V, Y, !0);
|
|
23356
23374
|
}, P.locale = function(V) {
|
|
@@ -23395,15 +23413,15 @@ var oi = {}, xk = {
|
|
|
23395
23413
|
}, N;
|
|
23396
23414
|
}();
|
|
23397
23415
|
return function(N, P, V) {
|
|
23398
|
-
r = V, i = V().$utils(), V.duration = function(
|
|
23416
|
+
r = V, i = V().$utils(), V.duration = function(ee, de) {
|
|
23399
23417
|
var pe = V.locale();
|
|
23400
|
-
return w(
|
|
23418
|
+
return w(ee, { $l: pe }, de);
|
|
23401
23419
|
}, V.isDuration = g;
|
|
23402
23420
|
var Y = P.prototype.add, ne = P.prototype.subtract;
|
|
23403
|
-
P.prototype.add = function(
|
|
23404
|
-
return g(
|
|
23405
|
-
}, P.prototype.subtract = function(
|
|
23406
|
-
return g(
|
|
23421
|
+
P.prototype.add = function(ee, de) {
|
|
23422
|
+
return g(ee) && (ee = ee.asMilliseconds()), Y.bind(this)(ee, de);
|
|
23423
|
+
}, P.prototype.subtract = function(ee, de) {
|
|
23424
|
+
return g(ee) && (ee = ee.asMilliseconds()), ne.bind(this)(ee, de);
|
|
23407
23425
|
};
|
|
23408
23426
|
};
|
|
23409
23427
|
});
|
|
@@ -23646,14 +23664,14 @@ var bi = {}, Bk = {
|
|
|
23646
23664
|
var o = i.prototype, l = function(m) {
|
|
23647
23665
|
return m && (m.indexOf ? m : m.s);
|
|
23648
23666
|
}, s = function(m, h, g, w, y) {
|
|
23649
|
-
var T = m.name ? m : m.$locale(), R = l(T[h]), F = l(T[g]),
|
|
23667
|
+
var T = m.name ? m : m.$locale(), R = l(T[h]), F = l(T[g]), W = R || F.map(function(N) {
|
|
23650
23668
|
return N.slice(0, w);
|
|
23651
23669
|
});
|
|
23652
23670
|
if (!y)
|
|
23653
|
-
return
|
|
23671
|
+
return W;
|
|
23654
23672
|
var Q = T.weekStart;
|
|
23655
|
-
return
|
|
23656
|
-
return
|
|
23673
|
+
return W.map(function(N, P) {
|
|
23674
|
+
return W[(P + (Q || 0)) % 7];
|
|
23657
23675
|
});
|
|
23658
23676
|
}, c = function() {
|
|
23659
23677
|
return a.Ls[a.locale()];
|
|
@@ -23735,8 +23753,8 @@ var xi = {}, qk = {
|
|
|
23735
23753
|
var d = this.$locale().formats, p = function(m, h) {
|
|
23736
23754
|
return m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(g, w, y) {
|
|
23737
23755
|
var T = y && y.toUpperCase();
|
|
23738
|
-
return w || h[y] || r[y] || h[T].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(R, F,
|
|
23739
|
-
return F ||
|
|
23756
|
+
return w || h[y] || r[y] || h[T].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(R, F, W) {
|
|
23757
|
+
return F || W.slice(1);
|
|
23740
23758
|
});
|
|
23741
23759
|
});
|
|
23742
23760
|
}(c, d === void 0 ? {} : d);
|
|
@@ -23799,11 +23817,11 @@ var vi = {}, Yk = {
|
|
|
23799
23817
|
return /* @__PURE__ */ new Date();
|
|
23800
23818
|
var T = w ? a.utc() : a();
|
|
23801
23819
|
Object.keys(g).forEach(function(Y) {
|
|
23802
|
-
var ne,
|
|
23803
|
-
y[ne = Y,
|
|
23820
|
+
var ne, ee;
|
|
23821
|
+
y[ne = Y, ee = o.$utils().p(ne), ee === "date" ? "day" : ee] = g[Y];
|
|
23804
23822
|
});
|
|
23805
|
-
var R = y.day || (y.year || y.month >= 0 ? 1 : T.date()), F = y.year || T.year(),
|
|
23806
|
-
return w ? new Date(Date.UTC(F,
|
|
23823
|
+
var R = y.day || (y.year || y.month >= 0 ? 1 : T.date()), F = y.year || T.year(), W = y.month >= 0 ? y.month : y.year || y.day ? 0 : T.month(), Q = y.hour || 0, N = y.minute || 0, P = y.second || 0, V = y.millisecond || 0;
|
|
23824
|
+
return w ? new Date(Date.UTC(F, W, R, Q, N, P, V)) : new Date(F, W, R, Q, N, P, V);
|
|
23807
23825
|
}
|
|
23808
23826
|
return g;
|
|
23809
23827
|
}, s = o.parse;
|
|
@@ -23944,7 +23962,7 @@ var Si = {}, eT = {
|
|
|
23944
23962
|
return o.fromToBase(d, p, m, h);
|
|
23945
23963
|
}
|
|
23946
23964
|
a.en.relativeTime = l, o.fromToBase = function(d, p, m, h, g) {
|
|
23947
|
-
for (var w, y, T, R = m.$locale().relativeTime || l, F = r.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }],
|
|
23965
|
+
for (var w, y, T, R = m.$locale().relativeTime || l, F = r.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], W = F.length, Q = 0; Q < W; Q += 1) {
|
|
23948
23966
|
var N = F[Q];
|
|
23949
23967
|
N.d && (w = h ? a(d).diff(m, N.d, !0) : m.diff(d, N.d, !0));
|
|
23950
23968
|
var P = (r.rounding || Math.round)(Math.abs(w));
|
|
@@ -23994,14 +24012,14 @@ var ki = {}, nT = {
|
|
|
23994
24012
|
w === void 0 && (w = {});
|
|
23995
24013
|
var y = new Date(h), T = function(R, F) {
|
|
23996
24014
|
F === void 0 && (F = {});
|
|
23997
|
-
var
|
|
23998
|
-
return N || (N = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: R, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName:
|
|
24015
|
+
var W = F.timeZoneName || "short", Q = R + "|" + W, N = i[Q];
|
|
24016
|
+
return N || (N = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: R, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: W }), i[Q] = N), N;
|
|
23999
24017
|
}(g, w);
|
|
24000
24018
|
return T.formatToParts(y);
|
|
24001
24019
|
}, d = function(h, g) {
|
|
24002
24020
|
for (var w = c(h, g), y = [], T = 0; T < w.length; T += 1) {
|
|
24003
|
-
var R = w[T], F = R.type,
|
|
24004
|
-
Q >= 0 && (y[Q] = parseInt(
|
|
24021
|
+
var R = w[T], F = R.type, W = R.value, Q = r[F];
|
|
24022
|
+
Q >= 0 && (y[Q] = parseInt(W, 10));
|
|
24005
24023
|
}
|
|
24006
24024
|
var N = y[3], P = N === 24 ? 0 : N, V = y[0] + "-" + y[1] + "-" + y[2] + " " + P + ":" + y[4] + ":" + y[5] + ":000", Y = +h;
|
|
24007
24025
|
return (l.utc(V).valueOf() - (Y -= Y % 1e3)) / 6e4;
|
|
@@ -24010,8 +24028,8 @@ var ki = {}, nT = {
|
|
|
24010
24028
|
h === void 0 && (h = s);
|
|
24011
24029
|
var w = this.utcOffset(), y = this.toDate(), T = y.toLocaleString("en-US", { timeZone: h }), R = Math.round((y - new Date(T)) / 1e3 / 60), F = l(T).$set("millisecond", this.$ms).utcOffset(15 * -Math.round(y.getTimezoneOffset() / 15) - R, !0);
|
|
24012
24030
|
if (g) {
|
|
24013
|
-
var
|
|
24014
|
-
F = F.add(w -
|
|
24031
|
+
var W = F.utcOffset();
|
|
24032
|
+
F = F.add(w - W, "minute");
|
|
24015
24033
|
}
|
|
24016
24034
|
return F.$x.$timezone = h, F;
|
|
24017
24035
|
}, p.offsetName = function(h) {
|
|
@@ -24031,12 +24049,12 @@ var ki = {}, nT = {
|
|
|
24031
24049
|
if (typeof h != "string")
|
|
24032
24050
|
return l(h).tz(T);
|
|
24033
24051
|
var F = function(P, V, Y) {
|
|
24034
|
-
var ne = P - 60 * V * 1e3,
|
|
24035
|
-
if (V ===
|
|
24052
|
+
var ne = P - 60 * V * 1e3, ee = d(ne, Y);
|
|
24053
|
+
if (V === ee)
|
|
24036
24054
|
return [ne, V];
|
|
24037
|
-
var de = d(ne -= 60 * (
|
|
24038
|
-
return
|
|
24039
|
-
}(l.utc(h, y).valueOf(), R, T),
|
|
24055
|
+
var de = d(ne -= 60 * (ee - V) * 1e3, Y);
|
|
24056
|
+
return ee === de ? [ne, ee] : [P - 60 * Math.min(ee, de) * 1e3, Math.max(ee, de)];
|
|
24057
|
+
}(l.utc(h, y).valueOf(), R, T), W = F[0], Q = F[1], N = l(W).utcOffset(Q);
|
|
24040
24058
|
return N.$x.$timezone = T, N;
|
|
24041
24059
|
}, l.tz.guess = function() {
|
|
24042
24060
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
@@ -24161,15 +24179,15 @@ var Ii = {}, dT = {
|
|
|
24161
24179
|
return ne === 0 ? 0 : Y === "+" ? ne : -ne;
|
|
24162
24180
|
}(y), y === null))
|
|
24163
24181
|
return this;
|
|
24164
|
-
var F = Math.abs(y) <= 16 ? 60 * y : y,
|
|
24182
|
+
var F = Math.abs(y) <= 16 ? 60 * y : y, W = this;
|
|
24165
24183
|
if (T)
|
|
24166
|
-
return
|
|
24184
|
+
return W.$offset = F, W.$u = y === 0, W;
|
|
24167
24185
|
if (y !== 0) {
|
|
24168
24186
|
var Q = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
24169
|
-
(
|
|
24187
|
+
(W = this.local().add(F + Q, r)).$offset = F, W.$x.$localOffset = Q;
|
|
24170
24188
|
} else
|
|
24171
|
-
|
|
24172
|
-
return
|
|
24189
|
+
W = this.utc();
|
|
24190
|
+
return W;
|
|
24173
24191
|
};
|
|
24174
24192
|
var h = c.format;
|
|
24175
24193
|
c.format = function(y) {
|
|
@@ -24193,8 +24211,8 @@ var Ii = {}, dT = {
|
|
|
24193
24211
|
c.diff = function(y, T, R) {
|
|
24194
24212
|
if (y && this.$u === y.$u)
|
|
24195
24213
|
return w.call(this, y, T, R);
|
|
24196
|
-
var F = this.local(),
|
|
24197
|
-
return w.call(F,
|
|
24214
|
+
var F = this.local(), W = s(y).local();
|
|
24215
|
+
return w.call(F, W, T, R);
|
|
24198
24216
|
};
|
|
24199
24217
|
};
|
|
24200
24218
|
});
|
|
@@ -24275,41 +24293,41 @@ var Mi = {}, fT = {
|
|
|
24275
24293
|
});
|
|
24276
24294
|
})(fT);
|
|
24277
24295
|
const bT = Mi;
|
|
24278
|
-
|
|
24279
|
-
|
|
24280
|
-
|
|
24281
|
-
|
|
24282
|
-
|
|
24283
|
-
|
|
24284
|
-
|
|
24285
|
-
|
|
24286
|
-
|
|
24287
|
-
|
|
24288
|
-
|
|
24289
|
-
|
|
24290
|
-
|
|
24291
|
-
|
|
24292
|
-
|
|
24293
|
-
|
|
24294
|
-
|
|
24295
|
-
|
|
24296
|
-
|
|
24297
|
-
|
|
24298
|
-
|
|
24299
|
-
|
|
24300
|
-
|
|
24301
|
-
|
|
24302
|
-
|
|
24303
|
-
|
|
24304
|
-
|
|
24305
|
-
|
|
24306
|
-
|
|
24307
|
-
|
|
24308
|
-
|
|
24309
|
-
|
|
24310
|
-
|
|
24311
|
-
|
|
24312
|
-
|
|
24296
|
+
K.extend(ak);
|
|
24297
|
+
K.extend(sk);
|
|
24298
|
+
K.extend(ck);
|
|
24299
|
+
K.extend(uk);
|
|
24300
|
+
K.extend(pk);
|
|
24301
|
+
K.extend(gk);
|
|
24302
|
+
K.extend(bk);
|
|
24303
|
+
K.extend(yk);
|
|
24304
|
+
K.extend(wk);
|
|
24305
|
+
K.extend(Ck);
|
|
24306
|
+
K.extend(kk);
|
|
24307
|
+
K.extend(zk);
|
|
24308
|
+
K.extend(Ak);
|
|
24309
|
+
K.extend(Ek);
|
|
24310
|
+
K.extend(Vk);
|
|
24311
|
+
K.extend(Pk);
|
|
24312
|
+
K.extend(Dk);
|
|
24313
|
+
K.extend(Ik);
|
|
24314
|
+
K.extend(Nk);
|
|
24315
|
+
K.extend(Wk);
|
|
24316
|
+
K.extend(Gk);
|
|
24317
|
+
K.extend(Hk);
|
|
24318
|
+
K.extend(Uk);
|
|
24319
|
+
K.extend(Zk);
|
|
24320
|
+
K.extend(Jk);
|
|
24321
|
+
K.extend(tT);
|
|
24322
|
+
K.extend(rT);
|
|
24323
|
+
K.extend(aT);
|
|
24324
|
+
K.extend(sT);
|
|
24325
|
+
K.extend(cT);
|
|
24326
|
+
K.extend(uT);
|
|
24327
|
+
K.extend(gT);
|
|
24328
|
+
K.extend(bT);
|
|
24329
|
+
K.extend(pT);
|
|
24330
|
+
K.tz.setDefault("UTC");
|
|
24313
24331
|
const TD = () => Promise.resolve().then(() => qu).then(({
|
|
24314
24332
|
version: e
|
|
24315
24333
|
}) => (console.log(`[@devtable/dashboard] version: ${e}`), e));
|
|
@@ -24351,9 +24369,9 @@ export {
|
|
|
24351
24369
|
o1 as getNewPanel,
|
|
24352
24370
|
TD as getVersion,
|
|
24353
24371
|
_D as initialDashboardContent,
|
|
24354
|
-
|
|
24372
|
+
te as useContentModelContext,
|
|
24355
24373
|
uu as useFullScreenPanelContext,
|
|
24356
|
-
|
|
24374
|
+
De as useModelContext,
|
|
24357
24375
|
We as usePanelContext,
|
|
24358
24376
|
Ql as useTopLevelServices
|
|
24359
24377
|
};
|