@devtable/dashboard 4.10.0 → 4.11.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 +598 -572
- package/dist/dashboard.umd.js +12 -12
- package/dist/filter/filter-date-range/render.d.ts +2 -2
- package/package.json +1 -1
- package/dist/model/filters/filter/date-range.d.ts +0 -28
- package/dist/model/filters/filter/index.d.ts +0 -174
- package/dist/model/filters/index.d.ts +0 -4623
package/dist/dashboard.es.js
CHANGED
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var E = (t, e, n) => (
|
|
4
|
-
import { Box as q, Text as v, Button as F, Checkbox as He, MultiSelect as dn, Select as j, TextInput as k, Group as g, Stack as w, ActionIcon as z, LoadingOverlay as Tt, Table as Vt, Tabs as V, Textarea as hn, AppShell as pn, Modal as Ce, Divider as ie, SimpleGrid as
|
|
5
|
-
import { useModals as
|
|
6
|
-
import { useRequest as zt, useBoolean as mt, useCreation as
|
|
7
|
-
import { observer as
|
|
8
|
-
import x, { forwardRef as fn, useMemo as A, useState as de, createElement as Et, useEffect as K, useCallback as
|
|
9
|
-
import $, { omit as Ot, get as re, values as Or, unset as
|
|
1
|
+
var Ai = Object.defineProperty;
|
|
2
|
+
var Li = (t, e, n) => e in t ? Ai(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
|
+
var E = (t, e, n) => (Li(t, typeof e != "symbol" ? e + "" : e, n), n);
|
|
4
|
+
import { Box as q, Text as v, Button as F, Checkbox as He, MultiSelect as dn, Select as j, TextInput as k, Group as g, Stack as w, ActionIcon as z, LoadingOverlay as Tt, Table as Vt, Tabs as V, Textarea as hn, AppShell as pn, Modal as Ce, Divider as ie, SimpleGrid as qi, NumberInput as Be, Menu as ue, Tooltip as $i, Paper as Ni, Code as dr, Switch as Fe, useMantineTheme as ji, ColorInput as Bi, ColorSwatch as hr, Slider as zr, createStyles as mn, Popover as Kt, Accordion as M, SegmentedControl as Gi, JsonInput as Wi } from "@mantine/core";
|
|
5
|
+
import { useModals as Qi, ModalsProvider as Er } from "@mantine/modals";
|
|
6
|
+
import { useRequest as zt, useBoolean as mt, useCreation as Pe, useAsyncEffect as ft, useLatest as pr } from "ahooks";
|
|
7
|
+
import { observer as D } from "mobx-react-lite";
|
|
8
|
+
import x, { forwardRef as fn, useMemo as A, useState as de, createElement as Et, useEffect as K, useCallback as Dt, useRef as Yi, useContext as Me, createContext as Ui } from "react";
|
|
9
|
+
import $, { omit as Ot, get as re, values as Or, unset as Hi, isObject as Fr, set as Pr, orderBy as Xi, last as Ji, noop as Ki, defaults as te, isEqual as Ie, defaultsDeep as Ge, findLastIndex as Zi, isEmpty as Mr, isNumber as eo, isString as Ar, range as to, cloneDeep as Lr, maxBy as qr, merge as $r, minBy as no, groupBy as ro, template as Nr, cloneDeepWith as ao, throttle as io } from "lodash";
|
|
10
10
|
import { useForm as ke, Controller as _, useFieldArray as we } from "react-hook-form";
|
|
11
|
-
import { DateRangePicker as
|
|
12
|
-
import { Calendar as
|
|
13
|
-
import
|
|
11
|
+
import { DateRangePicker as oo } from "@mantine/dates";
|
|
12
|
+
import { Calendar as so, Refresh as jr, DeviceFloppy as Z, Trash as J, PlaylistAdd as Je, Recycle as Br, Settings as Gr, Filter as lo, Database as co, Share as uo, Download as Wr, Code as ho, InfoCircle as po, ArrowRight as Zt, ArrowsMaximize as mo, Copy as fo, ArrowLeft as go, ArrowsMove as bo, ChevronDownRight as vo } from "tabler-icons-react";
|
|
13
|
+
import yo from "axios";
|
|
14
14
|
import { Prism as Ne } from "@mantine/prism";
|
|
15
|
-
import { cast as Ae, types as b, getRoot as mr, flow as
|
|
16
|
-
import { randomId as fe, useClipboard as
|
|
15
|
+
import { cast as Ae, types as b, getRoot as mr, flow as xo, toGenerator as Co, addDisposer as wo } from "mobx-state-tree";
|
|
16
|
+
import { randomId as fe, useClipboard as So, useElementSize as rn, useInputState as Qr } from "@mantine/hooks";
|
|
17
17
|
import Yr, { RichTextEditor as Ur } from "@mantine/rte";
|
|
18
18
|
import { makeAutoObservable as gn, runInAction as ct, observable as Hr, toJS as Ft, reaction as bn } from "mobx";
|
|
19
19
|
import { showNotification as vn } from "@mantine/notifications";
|
|
20
20
|
import fr from "eventemitter2";
|
|
21
21
|
import ht from "chroma-js";
|
|
22
22
|
import ve from "numbro";
|
|
23
|
-
import { quantile as
|
|
24
|
-
import { flexRender as Xr, createColumnHelper as
|
|
25
|
-
import { useVirtual as
|
|
23
|
+
import { quantile as _o } from "d3-array";
|
|
24
|
+
import { flexRender as Xr, createColumnHelper as Io, useReactTable as Do, getCoreRowModel as Ro, getSortedRowModel as ko } from "@tanstack/react-table";
|
|
25
|
+
import { useVirtual as To } from "react-virtual";
|
|
26
26
|
import { useForm as yn } from "@mantine/form";
|
|
27
27
|
import Le from "echarts-for-react/lib/core";
|
|
28
|
-
import { SunburstChart as
|
|
28
|
+
import { SunburstChart as Vo, PieChart as zo, BoxplotChart as Eo, BarChart as Jr, LineChart as Kr, ScatterChart as Zr, RadarChart as Oo } from "echarts/charts";
|
|
29
29
|
import * as ne from "echarts/core";
|
|
30
30
|
import { CanvasRenderer as qe } from "echarts/renderers";
|
|
31
31
|
import "echarts-gl";
|
|
32
|
-
import { GridComponent as Ke, VisualMapComponent as
|
|
32
|
+
import { GridComponent as Ke, VisualMapComponent as Fo, LegendComponent as Ze, TooltipComponent as et, DataZoomComponent as Pt, MarkLineComponent as Po } from "echarts/components";
|
|
33
33
|
import { transform as ea } from "echarts-stat";
|
|
34
34
|
import * as ze from "d3-regression";
|
|
35
35
|
import Mo from "stickybits";
|
|
36
36
|
import ta, { WidthProvider as na } from "react-grid-layout";
|
|
37
|
-
import
|
|
38
|
-
const
|
|
37
|
+
import Ao from "jszip";
|
|
38
|
+
const Lo = {
|
|
39
39
|
viewPanelInFullScreen: $.noop,
|
|
40
40
|
inFullScreen: !1
|
|
41
|
-
}, xn = x.createContext(
|
|
41
|
+
}, xn = x.createContext(Lo), ra = x.createContext(null), aa = ra.Provider;
|
|
42
42
|
function ee() {
|
|
43
43
|
const t = x.useContext(ra);
|
|
44
44
|
if (!t)
|
|
45
45
|
throw new Error("Please use ModelContextProvider");
|
|
46
46
|
return t;
|
|
47
47
|
}
|
|
48
|
-
var it = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {},
|
|
48
|
+
var it = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Mt = { exports: {} }, ot = {};
|
|
49
49
|
/**
|
|
50
50
|
* @license React
|
|
51
51
|
* react-jsx-runtime.production.min.js
|
|
@@ -56,7 +56,7 @@ var it = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
56
56
|
* LICENSE file in the root directory of this source tree.
|
|
57
57
|
*/
|
|
58
58
|
var gr;
|
|
59
|
-
function
|
|
59
|
+
function qo() {
|
|
60
60
|
if (gr)
|
|
61
61
|
return ot;
|
|
62
62
|
gr = 1;
|
|
@@ -84,13 +84,13 @@ var st = {};
|
|
|
84
84
|
* LICENSE file in the root directory of this source tree.
|
|
85
85
|
*/
|
|
86
86
|
var br;
|
|
87
|
-
function
|
|
87
|
+
function $o() {
|
|
88
88
|
return br || (br = 1, process.env.NODE_ENV !== "production" && function() {
|
|
89
|
-
var t = x, e = Symbol.for("react.element"), n = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), l = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), y = Symbol.for("react.offscreen"), I = Symbol.iterator,
|
|
89
|
+
var t = x, e = Symbol.for("react.element"), n = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), l = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), y = Symbol.for("react.offscreen"), I = Symbol.iterator, R = "@@iterator";
|
|
90
90
|
function O(d) {
|
|
91
91
|
if (d === null || typeof d != "object")
|
|
92
92
|
return null;
|
|
93
|
-
var C = I && d[I] || d[
|
|
93
|
+
var C = I && d[I] || d[R];
|
|
94
94
|
return typeof C == "function" ? C : null;
|
|
95
95
|
}
|
|
96
96
|
var Q = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -175,7 +175,7 @@ function qo() {
|
|
|
175
175
|
function Xn() {
|
|
176
176
|
}
|
|
177
177
|
Xn.__reactDisabledLog = !0;
|
|
178
|
-
function
|
|
178
|
+
function hi() {
|
|
179
179
|
{
|
|
180
180
|
if (Ve === 0) {
|
|
181
181
|
Bn = console.log, Gn = console.info, Wn = console.warn, Qn = console.error, Yn = console.group, Un = console.groupCollapsed, Hn = console.groupEnd;
|
|
@@ -198,7 +198,7 @@ function qo() {
|
|
|
198
198
|
Ve++;
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function pi() {
|
|
202
202
|
{
|
|
203
203
|
if (Ve--, Ve === 0) {
|
|
204
204
|
var d = {
|
|
@@ -249,8 +249,8 @@ function qo() {
|
|
|
249
249
|
}
|
|
250
250
|
var Qt = !1, xt;
|
|
251
251
|
{
|
|
252
|
-
var
|
|
253
|
-
xt = new
|
|
252
|
+
var mi = typeof WeakMap == "function" ? WeakMap : Map;
|
|
253
|
+
xt = new mi();
|
|
254
254
|
}
|
|
255
255
|
function Jn(d, C) {
|
|
256
256
|
if (!d || Qt)
|
|
@@ -265,7 +265,7 @@ function qo() {
|
|
|
265
265
|
var N = Error.prepareStackTrace;
|
|
266
266
|
Error.prepareStackTrace = void 0;
|
|
267
267
|
var B;
|
|
268
|
-
B = Gt.current, Gt.current = null,
|
|
268
|
+
B = Gt.current, Gt.current = null, hi();
|
|
269
269
|
try {
|
|
270
270
|
if (C) {
|
|
271
271
|
var L = function() {
|
|
@@ -300,17 +300,17 @@ function qo() {
|
|
|
300
300
|
}
|
|
301
301
|
} catch (_e) {
|
|
302
302
|
if (_e && T && typeof _e.stack == "string") {
|
|
303
|
-
for (var
|
|
303
|
+
for (var P = _e.stack.split(`
|
|
304
304
|
`), ae = T.stack.split(`
|
|
305
|
-
`), H =
|
|
305
|
+
`), H = P.length - 1, X = ae.length - 1; H >= 1 && X >= 0 && P[H] !== ae[X]; )
|
|
306
306
|
X--;
|
|
307
307
|
for (; H >= 1 && X >= 0; H--, X--)
|
|
308
|
-
if (
|
|
308
|
+
if (P[H] !== ae[X]) {
|
|
309
309
|
if (H !== 1 || X !== 1)
|
|
310
310
|
do
|
|
311
|
-
if (H--, X--, X < 0 ||
|
|
311
|
+
if (H--, X--, X < 0 || P[H] !== ae[X]) {
|
|
312
312
|
var pe = `
|
|
313
|
-
` +
|
|
313
|
+
` + P[H].replace(" at new ", " at ");
|
|
314
314
|
return d.displayName && pe.includes("<anonymous>") && (pe = pe.replace("<anonymous>", d.displayName)), typeof d == "function" && xt.set(d, pe), pe;
|
|
315
315
|
}
|
|
316
316
|
while (H >= 1 && X >= 0);
|
|
@@ -318,15 +318,15 @@ function qo() {
|
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
} finally {
|
|
321
|
-
Qt = !1, Gt.current = B,
|
|
321
|
+
Qt = !1, Gt.current = B, pi(), Error.prepareStackTrace = N;
|
|
322
322
|
}
|
|
323
323
|
var Ye = d ? d.displayName || d.name : "", ur = Ye ? yt(Ye) : "";
|
|
324
324
|
return typeof d == "function" && xt.set(d, ur), ur;
|
|
325
325
|
}
|
|
326
|
-
function
|
|
326
|
+
function fi(d, C, S) {
|
|
327
327
|
return Jn(d, !1);
|
|
328
328
|
}
|
|
329
|
-
function
|
|
329
|
+
function gi(d) {
|
|
330
330
|
var C = d.prototype;
|
|
331
331
|
return !!(C && C.isReactComponent);
|
|
332
332
|
}
|
|
@@ -334,7 +334,7 @@ function qo() {
|
|
|
334
334
|
if (d == null)
|
|
335
335
|
return "";
|
|
336
336
|
if (typeof d == "function")
|
|
337
|
-
return Jn(d,
|
|
337
|
+
return Jn(d, gi(d));
|
|
338
338
|
if (typeof d == "string")
|
|
339
339
|
return yt(d);
|
|
340
340
|
switch (d) {
|
|
@@ -346,7 +346,7 @@ function qo() {
|
|
|
346
346
|
if (typeof d == "object")
|
|
347
347
|
switch (d.$$typeof) {
|
|
348
348
|
case u:
|
|
349
|
-
return
|
|
349
|
+
return fi(d.render);
|
|
350
350
|
case f:
|
|
351
351
|
return Ct(d.type, C, S);
|
|
352
352
|
case m: {
|
|
@@ -367,36 +367,36 @@ function qo() {
|
|
|
367
367
|
} else
|
|
368
368
|
Zn.setExtraStackFrame(null);
|
|
369
369
|
}
|
|
370
|
-
function
|
|
370
|
+
function bi(d, C, S, T, N) {
|
|
371
371
|
{
|
|
372
372
|
var B = Function.call.bind(wt);
|
|
373
373
|
for (var L in d)
|
|
374
374
|
if (B(d, L)) {
|
|
375
|
-
var
|
|
375
|
+
var P = void 0;
|
|
376
376
|
try {
|
|
377
377
|
if (typeof d[L] != "function") {
|
|
378
378
|
var ae = Error((T || "React class") + ": " + S + " type `" + L + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof d[L] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
379
379
|
throw ae.name = "Invariant Violation", ae;
|
|
380
380
|
}
|
|
381
|
-
|
|
381
|
+
P = d[L](C, L, T, S, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
382
382
|
} catch (H) {
|
|
383
|
-
|
|
383
|
+
P = H;
|
|
384
384
|
}
|
|
385
|
-
|
|
385
|
+
P && !(P instanceof Error) && (St(N), W("%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).", T || "React class", S, L, typeof P), St(null)), P instanceof Error && !(P.message in Kn) && (Kn[P.message] = !0, St(N), W("Failed %s type: %s", S, P.message), St(null));
|
|
386
386
|
}
|
|
387
387
|
}
|
|
388
388
|
}
|
|
389
|
-
var
|
|
389
|
+
var vi = Array.isArray;
|
|
390
390
|
function Yt(d) {
|
|
391
|
-
return
|
|
391
|
+
return vi(d);
|
|
392
392
|
}
|
|
393
|
-
function
|
|
393
|
+
function yi(d) {
|
|
394
394
|
{
|
|
395
395
|
var C = typeof Symbol == "function" && Symbol.toStringTag, S = C && d[Symbol.toStringTag] || d.constructor.name || "Object";
|
|
396
396
|
return S;
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
|
-
function
|
|
399
|
+
function xi(d) {
|
|
400
400
|
try {
|
|
401
401
|
return er(d), !1;
|
|
402
402
|
} catch {
|
|
@@ -407,17 +407,17 @@ function qo() {
|
|
|
407
407
|
return "" + d;
|
|
408
408
|
}
|
|
409
409
|
function tr(d) {
|
|
410
|
-
if (
|
|
411
|
-
return W("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
410
|
+
if (xi(d))
|
|
411
|
+
return W("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", yi(d)), er(d);
|
|
412
412
|
}
|
|
413
|
-
var at = Q.ReactCurrentOwner,
|
|
413
|
+
var at = Q.ReactCurrentOwner, Ci = {
|
|
414
414
|
key: !0,
|
|
415
415
|
ref: !0,
|
|
416
416
|
__self: !0,
|
|
417
417
|
__source: !0
|
|
418
418
|
}, nr, rr, Ut;
|
|
419
419
|
Ut = {};
|
|
420
|
-
function
|
|
420
|
+
function wi(d) {
|
|
421
421
|
if (wt.call(d, "ref")) {
|
|
422
422
|
var C = Object.getOwnPropertyDescriptor(d, "ref").get;
|
|
423
423
|
if (C && C.isReactWarning)
|
|
@@ -425,7 +425,7 @@ function qo() {
|
|
|
425
425
|
}
|
|
426
426
|
return d.ref !== void 0;
|
|
427
427
|
}
|
|
428
|
-
function
|
|
428
|
+
function Si(d) {
|
|
429
429
|
if (wt.call(d, "key")) {
|
|
430
430
|
var C = Object.getOwnPropertyDescriptor(d, "key").get;
|
|
431
431
|
if (C && C.isReactWarning)
|
|
@@ -433,13 +433,13 @@ function qo() {
|
|
|
433
433
|
}
|
|
434
434
|
return d.key !== void 0;
|
|
435
435
|
}
|
|
436
|
-
function
|
|
436
|
+
function _i(d, C) {
|
|
437
437
|
if (typeof d.ref == "string" && at.current && C && at.current.stateNode !== C) {
|
|
438
438
|
var S = le(at.current.type);
|
|
439
439
|
Ut[S] || (W('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', le(at.current.type), d.ref), Ut[S] = !0);
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
|
-
function
|
|
442
|
+
function Ii(d, C) {
|
|
443
443
|
{
|
|
444
444
|
var S = function() {
|
|
445
445
|
nr || (nr = !0, W("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", C));
|
|
@@ -450,7 +450,7 @@ function qo() {
|
|
|
450
450
|
});
|
|
451
451
|
}
|
|
452
452
|
}
|
|
453
|
-
function
|
|
453
|
+
function Di(d, C) {
|
|
454
454
|
{
|
|
455
455
|
var S = function() {
|
|
456
456
|
rr || (rr = !0, W("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", C));
|
|
@@ -462,7 +462,7 @@ function qo() {
|
|
|
462
462
|
}
|
|
463
463
|
}
|
|
464
464
|
var Ri = function(d, C, S, T, N, B, L) {
|
|
465
|
-
var
|
|
465
|
+
var P = {
|
|
466
466
|
$$typeof: e,
|
|
467
467
|
type: d,
|
|
468
468
|
key: C,
|
|
@@ -470,39 +470,39 @@ function qo() {
|
|
|
470
470
|
props: L,
|
|
471
471
|
_owner: B
|
|
472
472
|
};
|
|
473
|
-
return
|
|
473
|
+
return P._store = {}, Object.defineProperty(P._store, "validated", {
|
|
474
474
|
configurable: !1,
|
|
475
475
|
enumerable: !1,
|
|
476
476
|
writable: !0,
|
|
477
477
|
value: !1
|
|
478
|
-
}), Object.defineProperty(
|
|
478
|
+
}), Object.defineProperty(P, "_self", {
|
|
479
479
|
configurable: !1,
|
|
480
480
|
enumerable: !1,
|
|
481
481
|
writable: !1,
|
|
482
482
|
value: T
|
|
483
|
-
}), Object.defineProperty(
|
|
483
|
+
}), Object.defineProperty(P, "_source", {
|
|
484
484
|
configurable: !1,
|
|
485
485
|
enumerable: !1,
|
|
486
486
|
writable: !1,
|
|
487
487
|
value: N
|
|
488
|
-
}), Object.freeze && (Object.freeze(
|
|
488
|
+
}), Object.freeze && (Object.freeze(P.props), Object.freeze(P)), P;
|
|
489
489
|
};
|
|
490
|
-
function
|
|
490
|
+
function ki(d, C, S, T, N) {
|
|
491
491
|
{
|
|
492
|
-
var B, L = {},
|
|
493
|
-
S !== void 0 && (tr(S),
|
|
492
|
+
var B, L = {}, P = null, ae = null;
|
|
493
|
+
S !== void 0 && (tr(S), P = "" + S), Si(C) && (tr(C.key), P = "" + C.key), wi(C) && (ae = C.ref, _i(C, N));
|
|
494
494
|
for (B in C)
|
|
495
|
-
wt.call(C, B) && !
|
|
495
|
+
wt.call(C, B) && !Ci.hasOwnProperty(B) && (L[B] = C[B]);
|
|
496
496
|
if (d && d.defaultProps) {
|
|
497
497
|
var H = d.defaultProps;
|
|
498
498
|
for (B in H)
|
|
499
499
|
L[B] === void 0 && (L[B] = H[B]);
|
|
500
500
|
}
|
|
501
|
-
if (
|
|
501
|
+
if (P || ae) {
|
|
502
502
|
var X = typeof d == "function" ? d.displayName || d.name || "Unknown" : d;
|
|
503
|
-
|
|
503
|
+
P && Ii(L, X), ae && Di(L, X);
|
|
504
504
|
}
|
|
505
|
-
return Ri(d,
|
|
505
|
+
return Ri(d, P, ae, N, T, at.current, L);
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
508
|
var Ht = Q.ReactCurrentOwner, ar = Q.ReactDebugCurrentFrame;
|
|
@@ -530,7 +530,7 @@ Check the render method of \`` + d + "`.";
|
|
|
530
530
|
return "";
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function Ti(d) {
|
|
534
534
|
{
|
|
535
535
|
if (d !== void 0) {
|
|
536
536
|
var C = d.fileName.replace(/^.*[\\\/]/, ""), S = d.lineNumber;
|
|
@@ -542,7 +542,7 @@ Check your code at ` + C + ":" + S + ".";
|
|
|
542
542
|
}
|
|
543
543
|
}
|
|
544
544
|
var or = {};
|
|
545
|
-
function
|
|
545
|
+
function Vi(d) {
|
|
546
546
|
{
|
|
547
547
|
var C = ir();
|
|
548
548
|
if (!C) {
|
|
@@ -559,7 +559,7 @@ Check the top-level render call using <` + S + ">.");
|
|
|
559
559
|
if (!d._store || d._store.validated || d.key != null)
|
|
560
560
|
return;
|
|
561
561
|
d._store.validated = !0;
|
|
562
|
-
var S =
|
|
562
|
+
var S = Vi(C);
|
|
563
563
|
if (or[S])
|
|
564
564
|
return;
|
|
565
565
|
or[S] = !0;
|
|
@@ -586,7 +586,7 @@ Check the top-level render call using <` + S + ">.");
|
|
|
586
586
|
}
|
|
587
587
|
}
|
|
588
588
|
}
|
|
589
|
-
function
|
|
589
|
+
function zi(d) {
|
|
590
590
|
{
|
|
591
591
|
var C = d.type;
|
|
592
592
|
if (C == null || typeof C == "string")
|
|
@@ -600,7 +600,7 @@ Check the top-level render call using <` + S + ">.");
|
|
|
600
600
|
return;
|
|
601
601
|
if (S) {
|
|
602
602
|
var T = le(C);
|
|
603
|
-
|
|
603
|
+
bi(S, d.props, "prop", T, d);
|
|
604
604
|
} else if (C.PropTypes !== void 0 && !Xt) {
|
|
605
605
|
Xt = !0;
|
|
606
606
|
var N = le(C);
|
|
@@ -609,7 +609,7 @@ Check the top-level render call using <` + S + ">.");
|
|
|
609
609
|
typeof C.getDefaultProps == "function" && !C.getDefaultProps.isReactClassApproved && W("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
610
610
|
}
|
|
611
611
|
}
|
|
612
|
-
function
|
|
612
|
+
function Ei(d) {
|
|
613
613
|
{
|
|
614
614
|
for (var C = Object.keys(d.props), S = 0; S < C.length; S++) {
|
|
615
615
|
var T = C[S];
|
|
@@ -625,14 +625,14 @@ Check the top-level render call using <` + S + ">.");
|
|
|
625
625
|
{
|
|
626
626
|
var L = vt(d);
|
|
627
627
|
if (!L) {
|
|
628
|
-
var
|
|
629
|
-
(d === void 0 || typeof d == "object" && d !== null && Object.keys(d).length === 0) && (
|
|
630
|
-
var ae =
|
|
631
|
-
ae ?
|
|
628
|
+
var P = "";
|
|
629
|
+
(d === void 0 || typeof d == "object" && d !== null && Object.keys(d).length === 0) && (P += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
630
|
+
var ae = Ti(N);
|
|
631
|
+
ae ? P += ae : P += ir();
|
|
632
632
|
var H;
|
|
633
|
-
d === null ? H = "null" : Yt(d) ? H = "array" : d !== void 0 && d.$$typeof === e ? (H = "<" + (le(d.type) || "Unknown") + " />",
|
|
633
|
+
d === null ? H = "null" : Yt(d) ? H = "array" : d !== void 0 && d.$$typeof === e ? (H = "<" + (le(d.type) || "Unknown") + " />", P = " Did you accidentally export a JSX literal instead of a component?") : H = typeof d, W("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", H, P);
|
|
634
634
|
}
|
|
635
|
-
var X =
|
|
635
|
+
var X = ki(d, C, S, N, B);
|
|
636
636
|
if (X == null)
|
|
637
637
|
return X;
|
|
638
638
|
if (L) {
|
|
@@ -648,23 +648,23 @@ Check the top-level render call using <` + S + ">.");
|
|
|
648
648
|
else
|
|
649
649
|
lr(pe, d);
|
|
650
650
|
}
|
|
651
|
-
return d === a ?
|
|
651
|
+
return d === a ? Ei(X) : zi(X), X;
|
|
652
652
|
}
|
|
653
653
|
}
|
|
654
|
-
function
|
|
654
|
+
function Oi(d, C, S) {
|
|
655
655
|
return cr(d, C, S, !0);
|
|
656
656
|
}
|
|
657
|
-
function
|
|
657
|
+
function Fi(d, C, S) {
|
|
658
658
|
return cr(d, C, S, !1);
|
|
659
659
|
}
|
|
660
|
-
var
|
|
661
|
-
st.Fragment = a, st.jsx =
|
|
660
|
+
var Pi = Fi, Mi = Oi;
|
|
661
|
+
st.Fragment = a, st.jsx = Pi, st.jsxs = Mi;
|
|
662
662
|
}()), st;
|
|
663
663
|
}
|
|
664
664
|
(function(t) {
|
|
665
|
-
process.env.NODE_ENV === "production" ? t.exports =
|
|
666
|
-
})(
|
|
667
|
-
const U =
|
|
665
|
+
process.env.NODE_ENV === "production" ? t.exports = qo() : t.exports = $o();
|
|
666
|
+
})(Mt);
|
|
667
|
+
const U = Mt.exports.Fragment, r = Mt.exports.jsx, c = Mt.exports.jsxs;
|
|
668
668
|
class Xe extends x.Component {
|
|
669
669
|
constructor(e) {
|
|
670
670
|
super(e), this.state = {
|
|
@@ -704,7 +704,7 @@ class Xe extends x.Component {
|
|
|
704
704
|
return this.props.children;
|
|
705
705
|
}
|
|
706
706
|
}
|
|
707
|
-
function
|
|
707
|
+
function No({
|
|
708
708
|
label: t,
|
|
709
709
|
config: {
|
|
710
710
|
default_value: e,
|
|
@@ -724,21 +724,21 @@ function $o({
|
|
|
724
724
|
})]
|
|
725
725
|
});
|
|
726
726
|
}
|
|
727
|
-
function
|
|
727
|
+
function ia({
|
|
728
728
|
label: t,
|
|
729
729
|
config: e,
|
|
730
730
|
value: n,
|
|
731
731
|
onChange: a
|
|
732
732
|
}) {
|
|
733
|
-
return /* @__PURE__ */ r(
|
|
733
|
+
return /* @__PURE__ */ r(oo, {
|
|
734
734
|
label: t,
|
|
735
735
|
value: n,
|
|
736
736
|
onChange: a,
|
|
737
|
-
icon: /* @__PURE__ */ r(
|
|
737
|
+
icon: /* @__PURE__ */ r(so, {
|
|
738
738
|
size: 16
|
|
739
739
|
}),
|
|
740
740
|
sx: {
|
|
741
|
-
minWidth: "
|
|
741
|
+
minWidth: "16em"
|
|
742
742
|
},
|
|
743
743
|
...e
|
|
744
744
|
});
|
|
@@ -759,13 +759,13 @@ function Cn(t, e) {
|
|
|
759
759
|
throw n.length === 0 && t.includes("$") ? new Error("[formatSQL] insufficient params") : i;
|
|
760
760
|
}
|
|
761
761
|
}
|
|
762
|
-
function
|
|
762
|
+
function oa(t, e, n) {
|
|
763
763
|
const a = e.reduce((i, o) => (i[o.key] = Cn(o.value, t), i), {});
|
|
764
764
|
return $.merge({}, a, t, { filters: n });
|
|
765
765
|
}
|
|
766
|
-
function
|
|
766
|
+
function sa(t, e, n, a) {
|
|
767
767
|
try {
|
|
768
|
-
const i =
|
|
768
|
+
const i = oa(e, n, a);
|
|
769
769
|
return Cn(t, i);
|
|
770
770
|
} catch (i) {
|
|
771
771
|
return console.error(i), i.message;
|
|
@@ -786,7 +786,7 @@ const je = {
|
|
|
786
786
|
params: t === "GET" ? n : a.params,
|
|
787
787
|
headers: i
|
|
788
788
|
};
|
|
789
|
-
return t === "POST" && (o.data = a.string ? JSON.stringify(n) : n),
|
|
789
|
+
return t === "POST" && (o.data = a.string ? JSON.stringify(n) : n), yo(o).then((s) => s.data).catch((s) => Promise.reject(s));
|
|
790
790
|
};
|
|
791
791
|
}
|
|
792
792
|
}, wn = ({ type: t, key: e, sql: n }) => async () => {
|
|
@@ -803,7 +803,7 @@ async function Bo({ context: t, sqlSnippets: e, title: n, query: a, filterValues
|
|
|
803
803
|
return [];
|
|
804
804
|
const { type: o, key: s, sql: l } = a, u = l.includes("$");
|
|
805
805
|
try {
|
|
806
|
-
const p =
|
|
806
|
+
const p = oa(t, e, i), h = Cn(l, p);
|
|
807
807
|
return u && (console.groupCollapsed(`Final SQL for: ${n}`), console.log(h), console.groupEnd()), await je.getRequest("POST")("/query", { type: o, key: s, query: h });
|
|
808
808
|
} catch (p) {
|
|
809
809
|
return console.error(p), [];
|
|
@@ -908,13 +908,13 @@ function Uo({
|
|
|
908
908
|
config: e
|
|
909
909
|
});
|
|
910
910
|
case "date-range":
|
|
911
|
-
return /* @__PURE__ */ r(
|
|
911
|
+
return /* @__PURE__ */ r(ia, {
|
|
912
912
|
...a,
|
|
913
913
|
...i,
|
|
914
914
|
config: e
|
|
915
915
|
});
|
|
916
916
|
case "checkbox":
|
|
917
|
-
return /* @__PURE__ */ r(
|
|
917
|
+
return /* @__PURE__ */ r(No, {
|
|
918
918
|
...a,
|
|
919
919
|
...i,
|
|
920
920
|
config: e
|
|
@@ -923,7 +923,7 @@ function Uo({
|
|
|
923
923
|
return null;
|
|
924
924
|
}
|
|
925
925
|
}
|
|
926
|
-
const
|
|
926
|
+
const la = x.forwardRef(function({
|
|
927
927
|
filter: e,
|
|
928
928
|
...n
|
|
929
929
|
}, a) {
|
|
@@ -934,7 +934,7 @@ const sa = x.forwardRef(function({
|
|
|
934
934
|
children: Uo(e, n)
|
|
935
935
|
})
|
|
936
936
|
});
|
|
937
|
-
}),
|
|
937
|
+
}), ca = D(function({
|
|
938
938
|
view: e
|
|
939
939
|
}) {
|
|
940
940
|
const n = ee(), {
|
|
@@ -961,7 +961,7 @@ const sa = x.forwardRef(function({
|
|
|
961
961
|
control: a,
|
|
962
962
|
render: ({
|
|
963
963
|
field: l
|
|
964
|
-
}) => /* @__PURE__ */ r(
|
|
964
|
+
}) => /* @__PURE__ */ r(la, {
|
|
965
965
|
filter: s,
|
|
966
966
|
...l
|
|
967
967
|
})
|
|
@@ -984,13 +984,13 @@ const sa = x.forwardRef(function({
|
|
|
984
984
|
freezeLayout: $.noop,
|
|
985
985
|
inEditMode: !1,
|
|
986
986
|
inUseMode: !0
|
|
987
|
-
}, Se = x.createContext(Ho),
|
|
987
|
+
}, Se = x.createContext(Ho), ua = x.createContext({
|
|
988
988
|
panel: null,
|
|
989
989
|
data: [],
|
|
990
990
|
loading: !1
|
|
991
|
-
}), Xo =
|
|
991
|
+
}), Xo = ua.Provider;
|
|
992
992
|
function he() {
|
|
993
|
-
const t = x.useContext(
|
|
993
|
+
const t = x.useContext(ua);
|
|
994
994
|
if (!t.panel)
|
|
995
995
|
throw new Error("Please use PanelContextProvider");
|
|
996
996
|
return t;
|
|
@@ -1007,7 +1007,7 @@ WHERE
|
|
|
1007
1007
|
-- SQL snippets
|
|
1008
1008
|
AND \${sql_snippets.author_email_condition}
|
|
1009
1009
|
\${sql_snippets.order_by_clause}
|
|
1010
|
-
`,
|
|
1010
|
+
`, da = D(function({
|
|
1011
1011
|
showSQLSnippets: e = !0,
|
|
1012
1012
|
sx: n = {}
|
|
1013
1013
|
}) {
|
|
@@ -1110,7 +1110,7 @@ function Ko({
|
|
|
1110
1110
|
})]
|
|
1111
1111
|
});
|
|
1112
1112
|
}
|
|
1113
|
-
const
|
|
1113
|
+
const ha = D(function({
|
|
1114
1114
|
id: e
|
|
1115
1115
|
}) {
|
|
1116
1116
|
const n = ee(), {
|
|
@@ -1176,7 +1176,7 @@ const da = R(function({
|
|
|
1176
1176
|
}), /* @__PURE__ */ r(v, {
|
|
1177
1177
|
children: e
|
|
1178
1178
|
})]
|
|
1179
|
-
})),
|
|
1179
|
+
})), pa = D(function({
|
|
1180
1180
|
value: e,
|
|
1181
1181
|
onChange: n
|
|
1182
1182
|
}) {
|
|
@@ -1207,17 +1207,17 @@ const da = R(function({
|
|
|
1207
1207
|
}
|
|
1208
1208
|
});
|
|
1209
1209
|
});
|
|
1210
|
-
function
|
|
1210
|
+
function ma({
|
|
1211
1211
|
value: t
|
|
1212
1212
|
}) {
|
|
1213
|
-
const e = ee(), n = e.context.current, a = x.useMemo(() =>
|
|
1213
|
+
const e = ee(), n = e.context.current, a = x.useMemo(() => sa(t, n, e.sqlSnippets.current, e.filters.values), [t, n, e.sqlSnippets.current, e.filters.values]);
|
|
1214
1214
|
return /* @__PURE__ */ r(Ne, {
|
|
1215
1215
|
language: "sql",
|
|
1216
1216
|
colorScheme: "light",
|
|
1217
1217
|
children: a
|
|
1218
1218
|
});
|
|
1219
1219
|
}
|
|
1220
|
-
const es =
|
|
1220
|
+
const es = D(function({
|
|
1221
1221
|
queryModel: e,
|
|
1222
1222
|
setCurrentID: n
|
|
1223
1223
|
}) {
|
|
@@ -1278,7 +1278,7 @@ const es = R(function({
|
|
|
1278
1278
|
size: 18
|
|
1279
1279
|
})
|
|
1280
1280
|
})
|
|
1281
|
-
}), /* @__PURE__ */ r(
|
|
1281
|
+
}), /* @__PURE__ */ r(pa, {
|
|
1282
1282
|
value: {
|
|
1283
1283
|
type: e.type,
|
|
1284
1284
|
key: e.key
|
|
@@ -1335,14 +1335,14 @@ const es = R(function({
|
|
|
1335
1335
|
}), /* @__PURE__ */ r(V.Panel, {
|
|
1336
1336
|
value: "Preview",
|
|
1337
1337
|
pt: "sm",
|
|
1338
|
-
children: /* @__PURE__ */ r(
|
|
1338
|
+
children: /* @__PURE__ */ r(ma, {
|
|
1339
1339
|
value: e.sql
|
|
1340
1340
|
})
|
|
1341
1341
|
})]
|
|
1342
1342
|
})]
|
|
1343
1343
|
})]
|
|
1344
1344
|
});
|
|
1345
|
-
}), ts =
|
|
1345
|
+
}), ts = D(function({
|
|
1346
1346
|
id: e,
|
|
1347
1347
|
setID: n
|
|
1348
1348
|
}) {
|
|
@@ -1355,7 +1355,7 @@ const es = R(function({
|
|
|
1355
1355
|
}) : null;
|
|
1356
1356
|
});
|
|
1357
1357
|
var xe = /* @__PURE__ */ ((t) => (t.Postgresql = "postgresql", t.MySQL = "mysql", t.HTTP = "http", t))(xe || {});
|
|
1358
|
-
const ns =
|
|
1358
|
+
const ns = D(function({
|
|
1359
1359
|
id: e,
|
|
1360
1360
|
setID: n
|
|
1361
1361
|
}) {
|
|
@@ -1410,7 +1410,7 @@ const ns = R(function({
|
|
|
1410
1410
|
})]
|
|
1411
1411
|
})
|
|
1412
1412
|
});
|
|
1413
|
-
}), rs =
|
|
1413
|
+
}), rs = D(function() {
|
|
1414
1414
|
const [e, n] = x.useState("");
|
|
1415
1415
|
return /* @__PURE__ */ c(pn, {
|
|
1416
1416
|
sx: {
|
|
@@ -1444,8 +1444,8 @@ const ns = R(function({
|
|
|
1444
1444
|
id: e,
|
|
1445
1445
|
setID: n
|
|
1446
1446
|
})]
|
|
1447
|
-
}), /* @__PURE__ */ r(
|
|
1448
|
-
}), /* @__PURE__ */ r(
|
|
1447
|
+
}), /* @__PURE__ */ r(da, {})]
|
|
1448
|
+
}), /* @__PURE__ */ r(ha, {
|
|
1449
1449
|
id: e
|
|
1450
1450
|
})]
|
|
1451
1451
|
});
|
|
@@ -1465,7 +1465,7 @@ function as({
|
|
|
1465
1465
|
})]
|
|
1466
1466
|
});
|
|
1467
1467
|
}
|
|
1468
|
-
const is =
|
|
1468
|
+
const is = D(function() {
|
|
1469
1469
|
const e = ee(), n = () => e.sqlSnippets.append(Ae({
|
|
1470
1470
|
key: fe(),
|
|
1471
1471
|
value: ""
|
|
@@ -1575,13 +1575,13 @@ function os() {
|
|
|
1575
1575
|
grow: !0,
|
|
1576
1576
|
align: "stretch",
|
|
1577
1577
|
noWrap: !0,
|
|
1578
|
-
children: [/* @__PURE__ */ r(is, {}), /* @__PURE__ */ r(
|
|
1578
|
+
children: [/* @__PURE__ */ r(is, {}), /* @__PURE__ */ r(da, {
|
|
1579
1579
|
showSQLSnippets: !1
|
|
1580
1580
|
})]
|
|
1581
1581
|
})
|
|
1582
1582
|
});
|
|
1583
1583
|
}
|
|
1584
|
-
const ss =
|
|
1584
|
+
const ss = D(function({
|
|
1585
1585
|
opened: e,
|
|
1586
1586
|
close: n
|
|
1587
1587
|
}) {
|
|
@@ -1623,11 +1623,11 @@ const ss = R(function({
|
|
|
1623
1623
|
});
|
|
1624
1624
|
});
|
|
1625
1625
|
var me = /* @__PURE__ */ ((t) => (t.Select = "select", t.MultiSelect = "multi-select", t.TextInput = "text-input", t.Checkbox = "checkbox", t.DateRange = "date-range", t))(me || {});
|
|
1626
|
-
const
|
|
1626
|
+
const fa = b.model({
|
|
1627
1627
|
type: b.enumeration("DataSourceType", [xe.Postgresql, xe.MySQL, xe.HTTP]),
|
|
1628
1628
|
key: b.string,
|
|
1629
1629
|
sql: b.string
|
|
1630
|
-
}),
|
|
1630
|
+
}), ga = b.model("FilterConfigModel_TextInput", {
|
|
1631
1631
|
required: b.boolean,
|
|
1632
1632
|
default_value: b.string
|
|
1633
1633
|
}).actions((t) => ({
|
|
@@ -1637,10 +1637,10 @@ const ma = b.model({
|
|
|
1637
1637
|
setDefaultValue(e) {
|
|
1638
1638
|
t.default_value = e;
|
|
1639
1639
|
}
|
|
1640
|
-
})),
|
|
1640
|
+
})), ba = () => ga.create({
|
|
1641
1641
|
required: !1,
|
|
1642
1642
|
default_value: ""
|
|
1643
|
-
}), ls =
|
|
1643
|
+
}), ls = D(function({
|
|
1644
1644
|
config: e
|
|
1645
1645
|
}) {
|
|
1646
1646
|
return /* @__PURE__ */ r(U, {
|
|
@@ -1659,7 +1659,7 @@ const ma = b.model({
|
|
|
1659
1659
|
}, {
|
|
1660
1660
|
label: "2022-01-01",
|
|
1661
1661
|
value: "YYYY-MM-DD"
|
|
1662
|
-
}], us =
|
|
1662
|
+
}], us = D(function({
|
|
1663
1663
|
config: e
|
|
1664
1664
|
}) {
|
|
1665
1665
|
return /* @__PURE__ */ c(U, {
|
|
@@ -1678,6 +1678,11 @@ const ma = b.model({
|
|
|
1678
1678
|
label: "Display Format",
|
|
1679
1679
|
value: e.inputFormat,
|
|
1680
1680
|
onChange: e.setInputFormat
|
|
1681
|
+
}), /* @__PURE__ */ r(ia, {
|
|
1682
|
+
label: "Default Value",
|
|
1683
|
+
config: e,
|
|
1684
|
+
value: e.default_value,
|
|
1685
|
+
onChange: e.setDefaultValue
|
|
1681
1686
|
})]
|
|
1682
1687
|
});
|
|
1683
1688
|
});
|
|
@@ -1728,7 +1733,7 @@ function ds({
|
|
|
1728
1733
|
})]
|
|
1729
1734
|
});
|
|
1730
1735
|
}
|
|
1731
|
-
const hs =
|
|
1736
|
+
const hs = D(function({
|
|
1732
1737
|
query: e
|
|
1733
1738
|
}) {
|
|
1734
1739
|
const {
|
|
@@ -1764,13 +1769,13 @@ const hs = R(function({
|
|
|
1764
1769
|
})]
|
|
1765
1770
|
})]
|
|
1766
1771
|
});
|
|
1767
|
-
}),
|
|
1772
|
+
}), va = D(function({
|
|
1768
1773
|
value: e,
|
|
1769
1774
|
onChange: n
|
|
1770
1775
|
}) {
|
|
1771
1776
|
return /* @__PURE__ */ c(w, {
|
|
1772
1777
|
my: 0,
|
|
1773
|
-
children: [/* @__PURE__ */ r(
|
|
1778
|
+
children: [/* @__PURE__ */ r(pa, {
|
|
1774
1779
|
value: e,
|
|
1775
1780
|
onChange: ({
|
|
1776
1781
|
type: a,
|
|
@@ -1815,7 +1820,7 @@ const hs = R(function({
|
|
|
1815
1820
|
}), /* @__PURE__ */ r(V.Panel, {
|
|
1816
1821
|
value: "Preview",
|
|
1817
1822
|
pt: "sm",
|
|
1818
|
-
children: /* @__PURE__ */ r(
|
|
1823
|
+
children: /* @__PURE__ */ r(ma, {
|
|
1819
1824
|
value: e.sql
|
|
1820
1825
|
})
|
|
1821
1826
|
}), /* @__PURE__ */ r(V.Panel, {
|
|
@@ -1827,7 +1832,7 @@ const hs = R(function({
|
|
|
1827
1832
|
})]
|
|
1828
1833
|
})]
|
|
1829
1834
|
});
|
|
1830
|
-
}), ps =
|
|
1835
|
+
}), ps = D(function({
|
|
1831
1836
|
config: e
|
|
1832
1837
|
}) {
|
|
1833
1838
|
const n = () => {
|
|
@@ -1898,12 +1903,12 @@ const hs = R(function({
|
|
|
1898
1903
|
}), /* @__PURE__ */ r(ie, {
|
|
1899
1904
|
label: "Or fetch options from database",
|
|
1900
1905
|
labelPosition: "center"
|
|
1901
|
-
}), /* @__PURE__ */ r(
|
|
1906
|
+
}), /* @__PURE__ */ r(va, {
|
|
1902
1907
|
value: e.options_query,
|
|
1903
1908
|
onChange: e.setOptionsQuery
|
|
1904
1909
|
})]
|
|
1905
1910
|
});
|
|
1906
|
-
}), ms =
|
|
1911
|
+
}), ms = D(function({
|
|
1907
1912
|
config: e
|
|
1908
1913
|
}) {
|
|
1909
1914
|
const n = () => {
|
|
@@ -1981,12 +1986,12 @@ const hs = R(function({
|
|
|
1981
1986
|
}), /* @__PURE__ */ r(ie, {
|
|
1982
1987
|
label: "Or fetch options from database",
|
|
1983
1988
|
labelPosition: "center"
|
|
1984
|
-
}), /* @__PURE__ */ r(
|
|
1989
|
+
}), /* @__PURE__ */ r(va, {
|
|
1985
1990
|
value: e.options_query,
|
|
1986
1991
|
onChange: e.setOptionsQuery
|
|
1987
1992
|
})]
|
|
1988
1993
|
});
|
|
1989
|
-
}), fs =
|
|
1994
|
+
}), fs = D(function({
|
|
1990
1995
|
config: e
|
|
1991
1996
|
}) {
|
|
1992
1997
|
return /* @__PURE__ */ c(U, {
|
|
@@ -2002,7 +2007,7 @@ const hs = R(function({
|
|
|
2002
2007
|
label: "Required"
|
|
2003
2008
|
})]
|
|
2004
2009
|
});
|
|
2005
|
-
}), gs =
|
|
2010
|
+
}), gs = D(function({
|
|
2006
2011
|
filter: e
|
|
2007
2012
|
}) {
|
|
2008
2013
|
const n = e.config.default_value, [a, i] = x.useState(n);
|
|
@@ -2016,7 +2021,7 @@ const hs = R(function({
|
|
|
2016
2021
|
pb: "md",
|
|
2017
2022
|
color: "gray",
|
|
2018
2023
|
children: "Preview"
|
|
2019
|
-
}), /* @__PURE__ */ r(
|
|
2024
|
+
}), /* @__PURE__ */ r(la, {
|
|
2020
2025
|
filter: e,
|
|
2021
2026
|
value: a,
|
|
2022
2027
|
onChange: i
|
|
@@ -2053,12 +2058,12 @@ const hs = R(function({
|
|
|
2053
2058
|
}, {
|
|
2054
2059
|
label: "Date Range",
|
|
2055
2060
|
value: "date-range"
|
|
2056
|
-
}], ys =
|
|
2061
|
+
}], ys = D(function({
|
|
2057
2062
|
filter: e,
|
|
2058
2063
|
index: n
|
|
2059
2064
|
}) {
|
|
2060
2065
|
const a = ee(), i = x.useMemo(() => bs[e.type], [e.type]);
|
|
2061
|
-
return /* @__PURE__ */ c(
|
|
2066
|
+
return /* @__PURE__ */ c(qi, {
|
|
2062
2067
|
cols: 2,
|
|
2063
2068
|
children: [/* @__PURE__ */ c(q, {
|
|
2064
2069
|
pl: "md",
|
|
@@ -2113,7 +2118,7 @@ const hs = R(function({
|
|
|
2113
2118
|
})]
|
|
2114
2119
|
});
|
|
2115
2120
|
});
|
|
2116
|
-
const xs =
|
|
2121
|
+
const xs = D(function() {
|
|
2117
2122
|
const e = ee(), n = e.filters.current, a = () => {
|
|
2118
2123
|
const i = fe(), o = {
|
|
2119
2124
|
id: i,
|
|
@@ -2121,7 +2126,7 @@ const xs = R(function() {
|
|
|
2121
2126
|
label: i,
|
|
2122
2127
|
order: n.length + 1,
|
|
2123
2128
|
type: me.TextInput,
|
|
2124
|
-
config:
|
|
2129
|
+
config: ba(),
|
|
2125
2130
|
visibleInViewsIDs: ["Main"]
|
|
2126
2131
|
};
|
|
2127
2132
|
e.filters.append(o);
|
|
@@ -2228,7 +2233,7 @@ const xs = R(function() {
|
|
|
2228
2233
|
})
|
|
2229
2234
|
})]
|
|
2230
2235
|
});
|
|
2231
|
-
}), Cs =
|
|
2236
|
+
}), Cs = D(function({
|
|
2232
2237
|
opened: e,
|
|
2233
2238
|
close: n
|
|
2234
2239
|
}) {
|
|
@@ -2251,10 +2256,10 @@ const xs = R(function() {
|
|
|
2251
2256
|
children: /* @__PURE__ */ r(xs, {})
|
|
2252
2257
|
});
|
|
2253
2258
|
});
|
|
2254
|
-
var ws = /* @__PURE__ */ ((t) => (t.Use = "use", t.Edit = "edit", t))(ws || {}),
|
|
2255
|
-
const _s =
|
|
2259
|
+
var ws = /* @__PURE__ */ ((t) => (t.Use = "use", t.Edit = "edit", t))(ws || {}), De = /* @__PURE__ */ ((t) => (t.Division = "div", t.Modal = "modal", t))(De || {}), Ss = /* @__PURE__ */ ((t) => (t.Select = "select", t.MultiSelect = "multi-select", t.TextInput = "text-input", t.Checkbox = "checkbox", t.DateRange = "date-range", t))(Ss || {});
|
|
2260
|
+
const _s = D(() => {
|
|
2256
2261
|
const e = ee().views.VIE;
|
|
2257
|
-
return !e || e.type !==
|
|
2262
|
+
return !e || e.type !== De.Division ? null : /* @__PURE__ */ c(w, {
|
|
2258
2263
|
children: [/* @__PURE__ */ r(ie, {
|
|
2259
2264
|
mt: 8,
|
|
2260
2265
|
mb: 0,
|
|
@@ -2267,9 +2272,9 @@ const _s = R(() => {
|
|
|
2267
2272
|
children: "Under construction"
|
|
2268
2273
|
})]
|
|
2269
2274
|
});
|
|
2270
|
-
}), Is =
|
|
2275
|
+
}), Is = D(() => {
|
|
2271
2276
|
const e = ee().views.VIE;
|
|
2272
|
-
return !e || e.type !==
|
|
2277
|
+
return !e || e.type !== De.Modal ? null : /* @__PURE__ */ c(w, {
|
|
2273
2278
|
children: [/* @__PURE__ */ r(ie, {
|
|
2274
2279
|
mt: 8,
|
|
2275
2280
|
label: "Modal settings",
|
|
@@ -2289,15 +2294,15 @@ const _s = R(() => {
|
|
|
2289
2294
|
})]
|
|
2290
2295
|
})]
|
|
2291
2296
|
});
|
|
2292
|
-
}),
|
|
2297
|
+
}), Ds = D(() => /* @__PURE__ */ c(U, {
|
|
2293
2298
|
children: [/* @__PURE__ */ r(_s, {}), /* @__PURE__ */ r(Is, {})]
|
|
2294
|
-
})),
|
|
2299
|
+
})), Rs = [{
|
|
2295
2300
|
label: "Division",
|
|
2296
|
-
value:
|
|
2301
|
+
value: De.Division
|
|
2297
2302
|
}, {
|
|
2298
2303
|
label: "Modal",
|
|
2299
|
-
value:
|
|
2300
|
-
}], ks =
|
|
2304
|
+
value: De.Modal
|
|
2305
|
+
}], ks = D(() => {
|
|
2301
2306
|
const e = ee().views.VIE;
|
|
2302
2307
|
return e ? /* @__PURE__ */ c(w, {
|
|
2303
2308
|
sx: {
|
|
@@ -2313,10 +2318,10 @@ const _s = R(() => {
|
|
|
2313
2318
|
label: "Type",
|
|
2314
2319
|
value: e.type,
|
|
2315
2320
|
onChange: e.setType,
|
|
2316
|
-
data:
|
|
2317
|
-
}), /* @__PURE__ */ r(
|
|
2321
|
+
data: Rs
|
|
2322
|
+
}), /* @__PURE__ */ r(Ds, {})]
|
|
2318
2323
|
}) : null;
|
|
2319
|
-
}), Ts =
|
|
2324
|
+
}), Ts = D(({
|
|
2320
2325
|
opened: t,
|
|
2321
2326
|
close: e
|
|
2322
2327
|
}) => {
|
|
@@ -2395,7 +2400,7 @@ const _s = R(() => {
|
|
|
2395
2400
|
children: t
|
|
2396
2401
|
})
|
|
2397
2402
|
})
|
|
2398
|
-
})), vr = "TRIGGER_TO_ADD", zs =
|
|
2403
|
+
})), vr = "TRIGGER_TO_ADD", zs = D(({
|
|
2399
2404
|
value: t,
|
|
2400
2405
|
onChange: e,
|
|
2401
2406
|
triggerAdd: n,
|
|
@@ -2451,7 +2456,7 @@ const _s = R(() => {
|
|
|
2451
2456
|
})
|
|
2452
2457
|
})]
|
|
2453
2458
|
});
|
|
2454
|
-
}), Es =
|
|
2459
|
+
}), Es = D(() => {
|
|
2455
2460
|
const t = ee(), [e, n] = de(!1), a = () => {
|
|
2456
2461
|
n(!0);
|
|
2457
2462
|
}, i = () => {
|
|
@@ -2502,7 +2507,7 @@ function Os({
|
|
|
2502
2507
|
})
|
|
2503
2508
|
});
|
|
2504
2509
|
}
|
|
2505
|
-
const
|
|
2510
|
+
const ya = D(function({
|
|
2506
2511
|
saveChanges: e
|
|
2507
2512
|
}) {
|
|
2508
2513
|
const n = ee(), a = x.useCallback(() => {
|
|
@@ -2520,7 +2525,7 @@ const va = R(function({
|
|
|
2520
2525
|
}, o = n.views.changed || n.sqlSnippets.changed || n.queries.changed || n.filters.changed, {
|
|
2521
2526
|
inEditMode: s,
|
|
2522
2527
|
inUseMode: l
|
|
2523
|
-
} = x.useContext(Se), [u, p] = x.useState(!1), h = () => p(!0), f = () => p(!1), [m, y] = x.useState(!1), I = () => y(!0),
|
|
2528
|
+
} = x.useContext(Se), [u, p] = x.useState(!1), h = () => p(!0), f = () => p(!1), [m, y] = x.useState(!1), I = () => y(!0), R = () => y(!1), [O, Q] = x.useState(!1), W = () => Q(!0), ge = () => Q(!1);
|
|
2524
2529
|
return /* @__PURE__ */ c(g, {
|
|
2525
2530
|
position: "apart",
|
|
2526
2531
|
pt: 0,
|
|
@@ -2544,7 +2549,7 @@ const va = R(function({
|
|
|
2544
2549
|
variant: "default",
|
|
2545
2550
|
size: "xs",
|
|
2546
2551
|
onClick: I,
|
|
2547
|
-
leftIcon: /* @__PURE__ */ r(
|
|
2552
|
+
leftIcon: /* @__PURE__ */ r(lo, {
|
|
2548
2553
|
size: 20
|
|
2549
2554
|
}),
|
|
2550
2555
|
children: "Filters"
|
|
@@ -2552,7 +2557,7 @@ const va = R(function({
|
|
|
2552
2557
|
variant: "default",
|
|
2553
2558
|
size: "xs",
|
|
2554
2559
|
onClick: h,
|
|
2555
|
-
leftIcon: /* @__PURE__ */ r(
|
|
2560
|
+
leftIcon: /* @__PURE__ */ r(co, {
|
|
2556
2561
|
size: 20
|
|
2557
2562
|
}),
|
|
2558
2563
|
children: "Data Settings"
|
|
@@ -2580,7 +2585,7 @@ const va = R(function({
|
|
|
2580
2585
|
children: /* @__PURE__ */ r(F, {
|
|
2581
2586
|
variant: "default",
|
|
2582
2587
|
size: "xs",
|
|
2583
|
-
leftIcon: /* @__PURE__ */ r(
|
|
2588
|
+
leftIcon: /* @__PURE__ */ r(uo, {
|
|
2584
2589
|
size: 20
|
|
2585
2590
|
}),
|
|
2586
2591
|
children: "Export"
|
|
@@ -2593,7 +2598,7 @@ const va = R(function({
|
|
|
2593
2598
|
onClick: n.queries.downloadAllData,
|
|
2594
2599
|
children: "Download Data"
|
|
2595
2600
|
}), /* @__PURE__ */ r(ue.Item, {
|
|
2596
|
-
icon: /* @__PURE__ */ r(
|
|
2601
|
+
icon: /* @__PURE__ */ r(ho, {
|
|
2597
2602
|
size: 14
|
|
2598
2603
|
}),
|
|
2599
2604
|
onClick: W,
|
|
@@ -2603,7 +2608,7 @@ const va = R(function({
|
|
|
2603
2608
|
})]
|
|
2604
2609
|
}), /* @__PURE__ */ r(Cs, {
|
|
2605
2610
|
opened: m,
|
|
2606
|
-
close:
|
|
2611
|
+
close: R
|
|
2607
2612
|
}), /* @__PURE__ */ r(ss, {
|
|
2608
2613
|
opened: u,
|
|
2609
2614
|
close: f
|
|
@@ -2614,7 +2619,7 @@ const va = R(function({
|
|
|
2614
2619
|
})]
|
|
2615
2620
|
});
|
|
2616
2621
|
});
|
|
2617
|
-
function
|
|
2622
|
+
function xa() {
|
|
2618
2623
|
const {
|
|
2619
2624
|
freezeLayout: t
|
|
2620
2625
|
} = x.useContext(Se), [e, n] = x.useState(!1), {
|
|
@@ -2636,7 +2641,7 @@ function ya() {
|
|
|
2636
2641
|
border: "none"
|
|
2637
2642
|
}
|
|
2638
2643
|
})
|
|
2639
|
-
}), /* @__PURE__ */ r(
|
|
2644
|
+
}), /* @__PURE__ */ r($i, {
|
|
2640
2645
|
label: "Click to see description",
|
|
2641
2646
|
position: "top-start",
|
|
2642
2647
|
children: /* @__PURE__ */ r(z, {
|
|
@@ -2647,24 +2652,24 @@ function ya() {
|
|
|
2647
2652
|
verticalAlign: "baseline",
|
|
2648
2653
|
cursor: "pointer"
|
|
2649
2654
|
},
|
|
2650
|
-
children: /* @__PURE__ */ r(
|
|
2655
|
+
children: /* @__PURE__ */ r(po, {
|
|
2651
2656
|
size: 20
|
|
2652
2657
|
})
|
|
2653
2658
|
})
|
|
2654
2659
|
})]
|
|
2655
2660
|
});
|
|
2656
2661
|
}
|
|
2657
|
-
const
|
|
2662
|
+
const Ca = (t) => {
|
|
2658
2663
|
const {
|
|
2659
2664
|
title: e = "Variables",
|
|
2660
2665
|
variables: n
|
|
2661
|
-
} = t, a =
|
|
2666
|
+
} = t, a = So(), i = (o) => {
|
|
2662
2667
|
a.copy(o), vn({
|
|
2663
2668
|
color: "green",
|
|
2664
2669
|
message: "Copied to clipboard"
|
|
2665
2670
|
});
|
|
2666
2671
|
};
|
|
2667
|
-
return /* @__PURE__ */ c(
|
|
2672
|
+
return /* @__PURE__ */ c(Ni, {
|
|
2668
2673
|
withBorder: !0,
|
|
2669
2674
|
p: "sm",
|
|
2670
2675
|
children: [/* @__PURE__ */ r(v, {
|
|
@@ -2713,10 +2718,10 @@ class Fs {
|
|
|
2713
2718
|
this.operationId && (await this.operationManager.createOrGetOperation(this.operationId, e), await this.configOperation(this.operationId, this.variables));
|
|
2714
2719
|
}
|
|
2715
2720
|
}
|
|
2716
|
-
function
|
|
2721
|
+
function Ps(t) {
|
|
2717
2722
|
return !!t.operationId;
|
|
2718
2723
|
}
|
|
2719
|
-
const
|
|
2724
|
+
const Ms = D(({
|
|
2720
2725
|
model: t,
|
|
2721
2726
|
onClick: e
|
|
2722
2727
|
}) => {
|
|
@@ -2727,7 +2732,7 @@ const Ps = R(({
|
|
|
2727
2732
|
onClick: e,
|
|
2728
2733
|
children: n
|
|
2729
2734
|
});
|
|
2730
|
-
}), As =
|
|
2735
|
+
}), As = D(({
|
|
2731
2736
|
model: t
|
|
2732
2737
|
}) => {
|
|
2733
2738
|
const e = {
|
|
@@ -2754,7 +2759,7 @@ function Ls({
|
|
|
2754
2759
|
value: t.operationSchema.id
|
|
2755
2760
|
});
|
|
2756
2761
|
}
|
|
2757
|
-
const qs =
|
|
2762
|
+
const qs = D((t) => {
|
|
2758
2763
|
const [e, {
|
|
2759
2764
|
setTrue: n,
|
|
2760
2765
|
setFalse: a
|
|
@@ -2763,11 +2768,11 @@ const qs = R((t) => {
|
|
|
2763
2768
|
operationId: o,
|
|
2764
2769
|
instance: s,
|
|
2765
2770
|
variables: l
|
|
2766
|
-
} = t, u =
|
|
2771
|
+
} = t, u = Pe(() => new Fs(i, s), [i, s]);
|
|
2767
2772
|
return ft(async () => {
|
|
2768
2773
|
await u.configOperation(o, l);
|
|
2769
|
-
}, [o, u]),
|
|
2770
|
-
children: [/* @__PURE__ */ r(
|
|
2774
|
+
}, [o, u]), Ps(u) ? /* @__PURE__ */ c(U, {
|
|
2775
|
+
children: [/* @__PURE__ */ r(Ms, {
|
|
2771
2776
|
model: u,
|
|
2772
2777
|
onClick: n
|
|
2773
2778
|
}), /* @__PURE__ */ r(Ce, {
|
|
@@ -2780,7 +2785,7 @@ const qs = R((t) => {
|
|
|
2780
2785
|
model: u
|
|
2781
2786
|
}), /* @__PURE__ */ r(As, {
|
|
2782
2787
|
model: u
|
|
2783
|
-
}), /* @__PURE__ */ r(
|
|
2788
|
+
}), /* @__PURE__ */ r(Ca, {
|
|
2784
2789
|
title: "Variables",
|
|
2785
2790
|
variables: u.variables
|
|
2786
2791
|
})]
|
|
@@ -2816,9 +2821,9 @@ function Ns(t) {
|
|
|
2816
2821
|
return !!t.triggerId && !!t.triggerSchema;
|
|
2817
2822
|
}
|
|
2818
2823
|
function js(t, e) {
|
|
2819
|
-
return
|
|
2824
|
+
return Pe(() => new $s(t, e), [t, e]);
|
|
2820
2825
|
}
|
|
2821
|
-
const Bs =
|
|
2826
|
+
const Bs = D(({
|
|
2822
2827
|
model: t,
|
|
2823
2828
|
onClick: e
|
|
2824
2829
|
}) => {
|
|
@@ -2832,7 +2837,7 @@ const Bs = R(({
|
|
|
2832
2837
|
onClick: e,
|
|
2833
2838
|
children: Et(n, a)
|
|
2834
2839
|
});
|
|
2835
|
-
}), Gs =
|
|
2840
|
+
}), Gs = D(({
|
|
2836
2841
|
model: t
|
|
2837
2842
|
}) => {
|
|
2838
2843
|
const e = t.schemaList, n = e.map((i) => ({
|
|
@@ -2848,7 +2853,7 @@ const Bs = R(({
|
|
|
2848
2853
|
value: t.triggerSchema.id,
|
|
2849
2854
|
onChange: a
|
|
2850
2855
|
});
|
|
2851
|
-
}), Ws =
|
|
2856
|
+
}), Ws = D(({
|
|
2852
2857
|
model: t
|
|
2853
2858
|
}) => {
|
|
2854
2859
|
const e = {
|
|
@@ -2857,7 +2862,7 @@ const Bs = R(({
|
|
|
2857
2862
|
sampleData: t.sampleData
|
|
2858
2863
|
};
|
|
2859
2864
|
return Et(t.triggerSchema.configRender, e);
|
|
2860
|
-
}), Qs =
|
|
2865
|
+
}), Qs = D((t) => {
|
|
2861
2866
|
const [e, {
|
|
2862
2867
|
setTrue: n,
|
|
2863
2868
|
setFalse: a
|
|
@@ -2873,7 +2878,7 @@ const Bs = R(({
|
|
|
2873
2878
|
model: i
|
|
2874
2879
|
}), /* @__PURE__ */ r(Ws, {
|
|
2875
2880
|
model: i
|
|
2876
|
-
}), /* @__PURE__ */ r(
|
|
2881
|
+
}), /* @__PURE__ */ r(Ca, {
|
|
2877
2882
|
title: "Payload",
|
|
2878
2883
|
variables: i.triggerSchema.payload
|
|
2879
2884
|
})]
|
|
@@ -2947,14 +2952,14 @@ class Sn {
|
|
|
2947
2952
|
);
|
|
2948
2953
|
}
|
|
2949
2954
|
}
|
|
2950
|
-
class
|
|
2955
|
+
class wa {
|
|
2951
2956
|
constructor(e) {
|
|
2952
2957
|
E(this, "rootRef");
|
|
2953
2958
|
this.rootRef = Hr({ current: e });
|
|
2954
2959
|
}
|
|
2955
2960
|
async deleteItem(e) {
|
|
2956
2961
|
ct(() => {
|
|
2957
|
-
|
|
2962
|
+
Hi(this.rootRef.current, [e]);
|
|
2958
2963
|
});
|
|
2959
2964
|
}
|
|
2960
2965
|
getItem(e) {
|
|
@@ -2974,7 +2979,7 @@ class Ca {
|
|
|
2974
2979
|
throw new Error("Cannot set root value to non-object");
|
|
2975
2980
|
else
|
|
2976
2981
|
ct(() => {
|
|
2977
|
-
|
|
2982
|
+
Pr(this.rootRef.current, [e], n);
|
|
2978
2983
|
});
|
|
2979
2984
|
return Promise.resolve(this.getItem(e));
|
|
2980
2985
|
}
|
|
@@ -3024,18 +3029,18 @@ class Us {
|
|
|
3024
3029
|
name: e.viz.type,
|
|
3025
3030
|
type: e.viz.type,
|
|
3026
3031
|
messageChannels: new Ys(),
|
|
3027
|
-
instanceData: new
|
|
3032
|
+
instanceData: new wa(e.viz.conf)
|
|
3028
3033
|
};
|
|
3029
3034
|
return this.instances.set(e.id, a), a;
|
|
3030
3035
|
}
|
|
3031
3036
|
}
|
|
3032
|
-
function
|
|
3037
|
+
function Sa(t, e, n) {
|
|
3033
3038
|
return {
|
|
3034
3039
|
vizManager: n,
|
|
3035
3040
|
locale: "zh",
|
|
3036
3041
|
msgChannels: t.messageChannels,
|
|
3037
3042
|
instanceData: t.instanceData,
|
|
3038
|
-
pluginData: new
|
|
3043
|
+
pluginData: new wa({}),
|
|
3039
3044
|
colorPalette: {
|
|
3040
3045
|
getColor() {
|
|
3041
3046
|
return () => "";
|
|
@@ -3050,7 +3055,7 @@ const Hs = (t) => {
|
|
|
3050
3055
|
vizManager: n,
|
|
3051
3056
|
data: a
|
|
3052
3057
|
} = t, i = n.resolveComponent(e.viz.type), o = n.getOrCreateInstance(e), s = {
|
|
3053
|
-
...
|
|
3058
|
+
...Sa(o, a, n),
|
|
3054
3059
|
viewport: {
|
|
3055
3060
|
width: e.layout.w,
|
|
3056
3061
|
height: e.layout.h
|
|
@@ -3068,7 +3073,7 @@ const Hs = (t) => {
|
|
|
3068
3073
|
panelInfoEditor: a,
|
|
3069
3074
|
data: i
|
|
3070
3075
|
} = t, o = e.resolveComponent(n.viz.type), s = e.getOrCreateInstance(n), l = {
|
|
3071
|
-
...
|
|
3076
|
+
...Sa(s, i, e),
|
|
3072
3077
|
panelInfoEditor: a
|
|
3073
3078
|
}, u = o.configRender;
|
|
3074
3079
|
return /* @__PURE__ */ r(u, {
|
|
@@ -3076,7 +3081,7 @@ const Hs = (t) => {
|
|
|
3076
3081
|
instance: s,
|
|
3077
3082
|
...Ot(t, ["panel", "vizManager", "data", "panelInfoEditor"])
|
|
3078
3083
|
});
|
|
3079
|
-
},
|
|
3084
|
+
}, _a = (t, e) => {
|
|
3080
3085
|
const n = ht.bezier(t), a = ht.bezier(e);
|
|
3081
3086
|
return function(i) {
|
|
3082
3087
|
return i < 50 ? n(i * 2 / 100).hex() : a((i - 50) * 2 / 100).hex();
|
|
@@ -3089,13 +3094,13 @@ const Hs = (t) => {
|
|
|
3089
3094
|
}, Js = {
|
|
3090
3095
|
type: "interpolation",
|
|
3091
3096
|
displayName: "Red / Green",
|
|
3092
|
-
getColor:
|
|
3097
|
+
getColor: _a(["darkred", "deeppink", "lightyellow"], ["lightyellow", "lightgreen", "teal"]),
|
|
3093
3098
|
name: "red-green",
|
|
3094
3099
|
category: "diverging"
|
|
3095
3100
|
}, Ks = {
|
|
3096
3101
|
type: "interpolation",
|
|
3097
3102
|
displayName: "Yellow / Blue",
|
|
3098
|
-
getColor:
|
|
3103
|
+
getColor: _a(["#8f531d", "#ffd347", "#e3efe3"], ["#eefaee", "#4ecbbf", "#003f94"]),
|
|
3099
3104
|
name: "yellow-blue",
|
|
3100
3105
|
category: "diverging"
|
|
3101
3106
|
}, Zs = {
|
|
@@ -3122,7 +3127,7 @@ const Hs = (t) => {
|
|
|
3122
3127
|
getColor: At(["#fff7f1", "darkorange", "#b60000"]),
|
|
3123
3128
|
name: "orange",
|
|
3124
3129
|
category: "sequential"
|
|
3125
|
-
}, rl = "4.
|
|
3130
|
+
}, rl = "4.11.0";
|
|
3126
3131
|
class al {
|
|
3127
3132
|
constructor(e) {
|
|
3128
3133
|
E(this, "staticColors", /* @__PURE__ */ new Map());
|
|
@@ -3200,8 +3205,8 @@ class ol {
|
|
|
3200
3205
|
throw new Error(`Can not downgrade from version '${e.from}' to (${e.to})`);
|
|
3201
3206
|
const a = this.migrations.filter(
|
|
3202
3207
|
(s) => s.version > e.from && s.version <= e.to
|
|
3203
|
-
), i =
|
|
3204
|
-
if (((o =
|
|
3208
|
+
), i = Xi(a, "version", "asc");
|
|
3209
|
+
if (((o = Ji(i)) == null ? void 0 : o.version) !== e.to)
|
|
3205
3210
|
throw new Error(`Migration to version ${e.to} not found`);
|
|
3206
3211
|
return i.reduce((s, l) => l.handler(s), n);
|
|
3207
3212
|
}
|
|
@@ -3231,7 +3236,7 @@ const _n = {
|
|
|
3231
3236
|
}), t.watchItem(e, (l) => {
|
|
3232
3237
|
o(l);
|
|
3233
3238
|
})));
|
|
3234
|
-
const s =
|
|
3239
|
+
const s = Dt(
|
|
3235
3240
|
async (l) => {
|
|
3236
3241
|
await t.setItem(e, l), o(l);
|
|
3237
3242
|
},
|
|
@@ -3243,8 +3248,8 @@ const _n = {
|
|
|
3243
3248
|
set: s
|
|
3244
3249
|
};
|
|
3245
3250
|
};
|
|
3246
|
-
function
|
|
3247
|
-
const e =
|
|
3251
|
+
function Ia(t) {
|
|
3252
|
+
const e = Yi(null);
|
|
3248
3253
|
return K(() => {
|
|
3249
3254
|
var n, a, i;
|
|
3250
3255
|
t && ((i = (a = (n = e.current) == null ? void 0 : n.editor) == null ? void 0 : a.clipboard) == null || i.dangerouslyPasteHTML(t));
|
|
@@ -3255,12 +3260,12 @@ function sl({
|
|
|
3255
3260
|
}) {
|
|
3256
3261
|
const {
|
|
3257
3262
|
value: e
|
|
3258
|
-
} = G(t.instanceData, "config"), n = e == null ? void 0 : e.content, a =
|
|
3263
|
+
} = G(t.instanceData, "config"), n = e == null ? void 0 : e.content, a = Ia(n);
|
|
3259
3264
|
return e != null && e.content ? /* @__PURE__ */ r(Ur, {
|
|
3260
3265
|
ref: a,
|
|
3261
3266
|
readOnly: !0,
|
|
3262
3267
|
value: e.content,
|
|
3263
|
-
onChange:
|
|
3268
|
+
onChange: Ki,
|
|
3264
3269
|
sx: {
|
|
3265
3270
|
border: "none",
|
|
3266
3271
|
".ql-editor": {
|
|
@@ -3284,7 +3289,7 @@ function ll({
|
|
|
3284
3289
|
defaultValues: a
|
|
3285
3290
|
});
|
|
3286
3291
|
s("content");
|
|
3287
|
-
const u = l(), p = A(() => !Ie(u, e), [u, e]), h =
|
|
3292
|
+
const u = l(), p = A(() => !Ie(u, e), [u, e]), h = Ia(e == null ? void 0 : e.content);
|
|
3288
3293
|
return /* @__PURE__ */ r(w, {
|
|
3289
3294
|
mt: "md",
|
|
3290
3295
|
spacing: "xs",
|
|
@@ -3423,7 +3428,7 @@ const an = fn(function({
|
|
|
3423
3428
|
onChange: n,
|
|
3424
3429
|
...a
|
|
3425
3430
|
});
|
|
3426
|
-
}),
|
|
3431
|
+
}), Dn = {
|
|
3427
3432
|
mantissa: 0,
|
|
3428
3433
|
output: "number",
|
|
3429
3434
|
trimMantissa: !1,
|
|
@@ -3559,7 +3564,7 @@ function pl({
|
|
|
3559
3564
|
})]
|
|
3560
3565
|
});
|
|
3561
3566
|
}
|
|
3562
|
-
const
|
|
3567
|
+
const Da = x.forwardRef(pl);
|
|
3563
3568
|
function Lt() {
|
|
3564
3569
|
return {
|
|
3565
3570
|
name: fe(),
|
|
@@ -3571,7 +3576,7 @@ function Lt() {
|
|
|
3571
3576
|
},
|
|
3572
3577
|
data_field: "",
|
|
3573
3578
|
aggregation: { type: "none", config: {} },
|
|
3574
|
-
formatter:
|
|
3579
|
+
formatter: Dn
|
|
3575
3580
|
};
|
|
3576
3581
|
}
|
|
3577
3582
|
const ml = [{
|
|
@@ -3692,7 +3697,7 @@ function vl({
|
|
|
3692
3697
|
o((y) => (y.splice(m, 1), [...y]));
|
|
3693
3698
|
}, [o]), u = x.useMemo(() => !$.isEqual(i, e), [i, e]), p = () => {
|
|
3694
3699
|
n(i.map((m) => m.toString()));
|
|
3695
|
-
}, h =
|
|
3700
|
+
}, h = ji(), f = x.useMemo(() => Object.entries(h.colors).map(([m, y]) => y[6]), [h]);
|
|
3696
3701
|
return /* @__PURE__ */ c(U, {
|
|
3697
3702
|
children: [/* @__PURE__ */ c(g, {
|
|
3698
3703
|
position: "left",
|
|
@@ -3710,10 +3715,10 @@ function vl({
|
|
|
3710
3715
|
})
|
|
3711
3716
|
})]
|
|
3712
3717
|
}), /* @__PURE__ */ c(g, {
|
|
3713
|
-
children: [i.map((m, y) => /* @__PURE__ */ r(
|
|
3718
|
+
children: [i.map((m, y) => /* @__PURE__ */ r(Bi, {
|
|
3714
3719
|
value: m,
|
|
3715
3720
|
onChange: (I) => {
|
|
3716
|
-
o((
|
|
3721
|
+
o((R) => (R.splice(y, 1, I), [...R]));
|
|
3717
3722
|
},
|
|
3718
3723
|
swatches: f,
|
|
3719
3724
|
rightSection: /* @__PURE__ */ r(z, {
|
|
@@ -3744,7 +3749,7 @@ function xl({
|
|
|
3744
3749
|
}, n) {
|
|
3745
3750
|
const {
|
|
3746
3751
|
colorManager: a
|
|
3747
|
-
} =
|
|
3752
|
+
} = Me(Te), i = x.useMemo(() => a.getStaticColors().map((l) => ({
|
|
3748
3753
|
label: l.name,
|
|
3749
3754
|
group: l.category,
|
|
3750
3755
|
value: l.value
|
|
@@ -3788,7 +3793,7 @@ function xl({
|
|
|
3788
3793
|
})]
|
|
3789
3794
|
});
|
|
3790
3795
|
}
|
|
3791
|
-
const
|
|
3796
|
+
const Re = x.forwardRef(xl), _t = [{
|
|
3792
3797
|
label: "initial",
|
|
3793
3798
|
value: 0
|
|
3794
3799
|
}, {
|
|
@@ -3942,7 +3947,7 @@ const _l = x.forwardRef(Sl), Il = x.forwardRef(function({
|
|
|
3942
3947
|
}],
|
|
3943
3948
|
value: e.color.type,
|
|
3944
3949
|
onChange: (s) => o("color.type", s)
|
|
3945
|
-
}), i === "static" && /* @__PURE__ */ r(
|
|
3950
|
+
}), i === "static" && /* @__PURE__ */ r(Re, {
|
|
3946
3951
|
value: e.color.staticColor,
|
|
3947
3952
|
onChange: (s) => o("color.staticColor", s)
|
|
3948
3953
|
}), i === "continuous" && /* @__PURE__ */ c(U, {
|
|
@@ -4003,7 +4008,7 @@ const _l = x.forwardRef(Sl), Il = x.forwardRef(function({
|
|
|
4003
4008
|
my: "xs",
|
|
4004
4009
|
label: "Format",
|
|
4005
4010
|
labelPosition: "center"
|
|
4006
|
-
}), /* @__PURE__ */ r(
|
|
4011
|
+
}), /* @__PURE__ */ r(Da, {
|
|
4007
4012
|
value: e.formatter,
|
|
4008
4013
|
onChange: (l) => s("formatter", l)
|
|
4009
4014
|
}), i && /* @__PURE__ */ r(Il, {
|
|
@@ -4012,11 +4017,11 @@ const _l = x.forwardRef(Sl), Il = x.forwardRef(function({
|
|
|
4012
4017
|
})]
|
|
4013
4018
|
});
|
|
4014
4019
|
});
|
|
4015
|
-
function
|
|
4020
|
+
function Dl(t) {
|
|
4016
4021
|
const e = Array.from(t).sort((a, i) => a - i), n = Math.floor(e.length / 2);
|
|
4017
4022
|
return e.length % 2 === 0 ? (e[n - 1] + e[n]) / 2 : e[n];
|
|
4018
4023
|
}
|
|
4019
|
-
function
|
|
4024
|
+
function Rn(t, e, n) {
|
|
4020
4025
|
var i, o, s, l;
|
|
4021
4026
|
const a = t.map((u) => u[e]);
|
|
4022
4027
|
switch (n.type) {
|
|
@@ -4025,13 +4030,13 @@ function Dn(t, e, n) {
|
|
|
4025
4030
|
case "mean":
|
|
4026
4031
|
return $.mean(a);
|
|
4027
4032
|
case "median":
|
|
4028
|
-
return
|
|
4033
|
+
return Dl(a);
|
|
4029
4034
|
case "max":
|
|
4030
4035
|
return (i = $.max(a)) != null ? i : 0;
|
|
4031
4036
|
case "min":
|
|
4032
4037
|
return (o = $.min(a)) != null ? o : 0;
|
|
4033
4038
|
case "quantile":
|
|
4034
|
-
return (s =
|
|
4039
|
+
return (s = _o(a, n.config.p)) != null ? s : 0;
|
|
4035
4040
|
default:
|
|
4036
4041
|
return (l = t[0]) == null ? void 0 : l[e];
|
|
4037
4042
|
}
|
|
@@ -4045,10 +4050,10 @@ process.env.NODE_ENV !== "production" && (Ra = function(t, e) {
|
|
|
4045
4050
|
if (!t)
|
|
4046
4051
|
throw new Error(e);
|
|
4047
4052
|
});
|
|
4048
|
-
const
|
|
4053
|
+
const Rl = (t, e, n) => Math.min(Math.max(n, t), e), ka = (t, e, n) => {
|
|
4049
4054
|
const a = e - t;
|
|
4050
4055
|
return a === 0 ? 1 : (n - t) / a;
|
|
4051
|
-
}, kn = (t, e, n) => -n * t + n * e + t,
|
|
4056
|
+
}, kn = (t, e, n) => -n * t + n * e + t, Ta = (t, e) => (n) => Math.max(Math.min(n, e), t), ut = (t) => t % 1 ? Number(t.toFixed(5)) : t, Rt = /(-)?([\d]*\.?[\d])+/g, on = /(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi, kl = /^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;
|
|
4052
4057
|
function gt(t) {
|
|
4053
4058
|
return typeof t == "string";
|
|
4054
4059
|
}
|
|
@@ -4056,7 +4061,7 @@ const $t = {
|
|
|
4056
4061
|
test: (t) => typeof t == "number",
|
|
4057
4062
|
parse: parseFloat,
|
|
4058
4063
|
transform: (t) => t
|
|
4059
|
-
},
|
|
4064
|
+
}, Va = Object.assign(Object.assign({}, $t), { transform: Ta(0, 1) });
|
|
4060
4065
|
Object.assign(Object.assign({}, $t), { default: 1 });
|
|
4061
4066
|
const Tl = (t) => ({
|
|
4062
4067
|
test: (e) => gt(e) && e.endsWith(t) && e.split(" ").length === 1,
|
|
@@ -4064,10 +4069,10 @@ const Tl = (t) => ({
|
|
|
4064
4069
|
transform: (e) => `${e}${t}`
|
|
4065
4070
|
}), dt = Tl("%");
|
|
4066
4071
|
Object.assign(Object.assign({}, dt), { parse: (t) => dt.parse(t) / 100, transform: (t) => dt.transform(t * 100) });
|
|
4067
|
-
const Tn = (t, e) => (n) => Boolean(gt(n) && kl.test(n) && n.startsWith(t) || e && Object.prototype.hasOwnProperty.call(n, e)),
|
|
4072
|
+
const Tn = (t, e) => (n) => Boolean(gt(n) && kl.test(n) && n.startsWith(t) || e && Object.prototype.hasOwnProperty.call(n, e)), za = (t, e, n) => (a) => {
|
|
4068
4073
|
if (!gt(a))
|
|
4069
4074
|
return a;
|
|
4070
|
-
const [i, o, s, l] = a.match(
|
|
4075
|
+
const [i, o, s, l] = a.match(Rt);
|
|
4071
4076
|
return {
|
|
4072
4077
|
[t]: parseFloat(i),
|
|
4073
4078
|
[e]: parseFloat(o),
|
|
@@ -4076,12 +4081,12 @@ const Tn = (t, e) => (n) => Boolean(gt(n) && kl.test(n) && n.startsWith(t) || e
|
|
|
4076
4081
|
};
|
|
4077
4082
|
}, $e = {
|
|
4078
4083
|
test: Tn("hsl", "hue"),
|
|
4079
|
-
parse:
|
|
4080
|
-
transform: ({ hue: t, saturation: e, lightness: n, alpha: a = 1 }) => "hsla(" + Math.round(t) + ", " + dt.transform(ut(e)) + ", " + dt.transform(ut(n)) + ", " + ut(
|
|
4081
|
-
}, Vl =
|
|
4084
|
+
parse: za("hue", "saturation", "lightness"),
|
|
4085
|
+
transform: ({ hue: t, saturation: e, lightness: n, alpha: a = 1 }) => "hsla(" + Math.round(t) + ", " + dt.transform(ut(e)) + ", " + dt.transform(ut(n)) + ", " + ut(Va.transform(a)) + ")"
|
|
4086
|
+
}, Vl = Ta(0, 255), en = Object.assign(Object.assign({}, $t), { transform: (t) => Math.round(Vl(t)) }), Ee = {
|
|
4082
4087
|
test: Tn("rgb", "red"),
|
|
4083
|
-
parse:
|
|
4084
|
-
transform: ({ red: t, green: e, blue: n, alpha: a = 1 }) => "rgba(" + en.transform(t) + ", " + en.transform(e) + ", " + en.transform(n) + ", " + ut(
|
|
4088
|
+
parse: za("red", "green", "blue"),
|
|
4089
|
+
transform: ({ red: t, green: e, blue: n, alpha: a = 1 }) => "rgba(" + en.transform(t) + ", " + en.transform(e) + ", " + en.transform(n) + ", " + ut(Va.transform(a)) + ")"
|
|
4085
4090
|
};
|
|
4086
4091
|
function zl(t) {
|
|
4087
4092
|
let e = "", n = "", a = "", i = "";
|
|
@@ -4100,38 +4105,38 @@ const sn = {
|
|
|
4100
4105
|
test: (t) => Ee.test(t) || sn.test(t) || $e.test(t),
|
|
4101
4106
|
parse: (t) => Ee.test(t) ? Ee.parse(t) : $e.test(t) ? $e.parse(t) : sn.parse(t),
|
|
4102
4107
|
transform: (t) => gt(t) ? t : t.hasOwnProperty("red") ? Ee.transform(t) : $e.transform(t)
|
|
4103
|
-
},
|
|
4108
|
+
}, Ea = "${c}", Oa = "${n}";
|
|
4104
4109
|
function El(t) {
|
|
4105
4110
|
var e, n, a, i;
|
|
4106
|
-
return isNaN(t) && gt(t) && ((n = (e = t.match(
|
|
4111
|
+
return isNaN(t) && gt(t) && ((n = (e = t.match(Rt)) === null || e === void 0 ? void 0 : e.length) !== null && n !== void 0 ? n : 0) + ((i = (a = t.match(on)) === null || a === void 0 ? void 0 : a.length) !== null && i !== void 0 ? i : 0) > 0;
|
|
4107
4112
|
}
|
|
4108
|
-
function
|
|
4113
|
+
function Fa(t) {
|
|
4109
4114
|
typeof t == "number" && (t = `${t}`);
|
|
4110
4115
|
const e = [];
|
|
4111
4116
|
let n = 0;
|
|
4112
4117
|
const a = t.match(on);
|
|
4113
|
-
a && (n = a.length, t = t.replace(on,
|
|
4114
|
-
const i = t.match(
|
|
4115
|
-
return i && (t = t.replace(
|
|
4118
|
+
a && (n = a.length, t = t.replace(on, Ea), e.push(...a.map(Nt.parse)));
|
|
4119
|
+
const i = t.match(Rt);
|
|
4120
|
+
return i && (t = t.replace(Rt, Oa), e.push(...i.map($t.parse))), { values: e, numColors: n, tokenised: t };
|
|
4116
4121
|
}
|
|
4117
|
-
function
|
|
4118
|
-
return
|
|
4122
|
+
function Pa(t) {
|
|
4123
|
+
return Fa(t).values;
|
|
4119
4124
|
}
|
|
4120
4125
|
function Ma(t) {
|
|
4121
|
-
const { values: e, numColors: n, tokenised: a } =
|
|
4126
|
+
const { values: e, numColors: n, tokenised: a } = Fa(t), i = e.length;
|
|
4122
4127
|
return (o) => {
|
|
4123
4128
|
let s = a;
|
|
4124
4129
|
for (let l = 0; l < i; l++)
|
|
4125
|
-
s = s.replace(l < n ?
|
|
4130
|
+
s = s.replace(l < n ? Ea : Oa, l < n ? Nt.transform(o[l]) : ut(o[l]));
|
|
4126
4131
|
return s;
|
|
4127
4132
|
};
|
|
4128
4133
|
}
|
|
4129
4134
|
const Ol = (t) => typeof t == "number" ? 0 : t;
|
|
4130
4135
|
function Fl(t) {
|
|
4131
|
-
const e =
|
|
4136
|
+
const e = Pa(t);
|
|
4132
4137
|
return Ma(t)(e.map(Ol));
|
|
4133
4138
|
}
|
|
4134
|
-
const
|
|
4139
|
+
const Aa = { test: El, parse: Pa, createTransformer: Ma, getAnimatableNone: Fl };
|
|
4135
4140
|
function tn(t, e, n) {
|
|
4136
4141
|
return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? t + (e - t) * 6 * n : n < 1 / 2 ? e : n < 2 / 3 ? t + (e - t) * (2 / 3 - n) * 6 : t;
|
|
4137
4142
|
}
|
|
@@ -4151,10 +4156,10 @@ function yr({ hue: t, saturation: e, lightness: n, alpha: a }) {
|
|
|
4151
4156
|
alpha: a
|
|
4152
4157
|
};
|
|
4153
4158
|
}
|
|
4154
|
-
const
|
|
4159
|
+
const Pl = (t, e, n) => {
|
|
4155
4160
|
const a = t * t, i = e * e;
|
|
4156
4161
|
return Math.sqrt(Math.max(0, n * (i - a) + a));
|
|
4157
|
-
},
|
|
4162
|
+
}, Ml = [sn, Ee, $e], xr = (t) => Ml.find((e) => e.test(t)), Cr = (t) => `'${t}' is not an animatable color. Use the equivalent color code instead.`, La = (t, e) => {
|
|
4158
4163
|
let n = xr(t), a = xr(e);
|
|
4159
4164
|
pt(!!n, Cr(t)), pt(!!a, Cr(e));
|
|
4160
4165
|
let i = n.parse(t), o = a.parse(e);
|
|
@@ -4162,15 +4167,15 @@ const Ml = (t, e, n) => {
|
|
|
4162
4167
|
const s = Object.assign({}, i);
|
|
4163
4168
|
return (l) => {
|
|
4164
4169
|
for (const u in s)
|
|
4165
|
-
u !== "alpha" && (s[u] =
|
|
4170
|
+
u !== "alpha" && (s[u] = Pl(i[u], o[u], l));
|
|
4166
4171
|
return s.alpha = kn(i.alpha, o.alpha, l), n.transform(s);
|
|
4167
4172
|
};
|
|
4168
|
-
}, Al = (t) => typeof t == "number", Ll = (t, e) => (n) => e(t(n)),
|
|
4169
|
-
function
|
|
4170
|
-
return Al(t) ? (n) => kn(t, e, n) : Nt.test(t) ?
|
|
4173
|
+
}, Al = (t) => typeof t == "number", Ll = (t, e) => (n) => e(t(n)), qa = (...t) => t.reduce(Ll);
|
|
4174
|
+
function $a(t, e) {
|
|
4175
|
+
return Al(t) ? (n) => kn(t, e, n) : Nt.test(t) ? La(t, e) : ja(t, e);
|
|
4171
4176
|
}
|
|
4172
|
-
const
|
|
4173
|
-
const n = [...t], a = n.length, i = t.map((o, s) =>
|
|
4177
|
+
const Na = (t, e) => {
|
|
4178
|
+
const n = [...t], a = n.length, i = t.map((o, s) => $a(o, e[s]));
|
|
4174
4179
|
return (o) => {
|
|
4175
4180
|
for (let s = 0; s < a; s++)
|
|
4176
4181
|
n[s] = i[s](o);
|
|
@@ -4179,7 +4184,7 @@ const $a = (t, e) => {
|
|
|
4179
4184
|
}, ql = (t, e) => {
|
|
4180
4185
|
const n = Object.assign(Object.assign({}, t), e), a = {};
|
|
4181
4186
|
for (const i in n)
|
|
4182
|
-
t[i] !== void 0 && e[i] !== void 0 && (a[i] =
|
|
4187
|
+
t[i] !== void 0 && e[i] !== void 0 && (a[i] = $a(t[i], e[i]));
|
|
4183
4188
|
return (i) => {
|
|
4184
4189
|
for (const o in a)
|
|
4185
4190
|
n[o] = a[o](i);
|
|
@@ -4187,23 +4192,23 @@ const $a = (t, e) => {
|
|
|
4187
4192
|
};
|
|
4188
4193
|
};
|
|
4189
4194
|
function wr(t) {
|
|
4190
|
-
const e =
|
|
4195
|
+
const e = Aa.parse(t), n = e.length;
|
|
4191
4196
|
let a = 0, i = 0, o = 0;
|
|
4192
4197
|
for (let s = 0; s < n; s++)
|
|
4193
4198
|
a || typeof e[s] == "number" ? a++ : e[s].hue !== void 0 ? o++ : i++;
|
|
4194
4199
|
return { parsed: e, numNumbers: a, numRGB: i, numHSL: o };
|
|
4195
4200
|
}
|
|
4196
|
-
const
|
|
4197
|
-
const n =
|
|
4198
|
-
return a.numHSL === i.numHSL && a.numRGB === i.numRGB && a.numNumbers >= i.numNumbers ?
|
|
4201
|
+
const ja = (t, e) => {
|
|
4202
|
+
const n = Aa.createTransformer(e), a = wr(t), i = wr(e);
|
|
4203
|
+
return a.numHSL === i.numHSL && a.numRGB === i.numRGB && a.numNumbers >= i.numNumbers ? qa(Na(a.parsed, i.parsed), n) : (Ra(!0, `Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), (s) => `${s > 0 ? e : t}`);
|
|
4199
4204
|
}, $l = (t, e) => (n) => kn(t, e, n);
|
|
4200
4205
|
function Nl(t) {
|
|
4201
4206
|
if (typeof t == "number")
|
|
4202
4207
|
return $l;
|
|
4203
4208
|
if (typeof t == "string")
|
|
4204
|
-
return Nt.test(t) ?
|
|
4209
|
+
return Nt.test(t) ? La : ja;
|
|
4205
4210
|
if (Array.isArray(t))
|
|
4206
|
-
return
|
|
4211
|
+
return Na;
|
|
4207
4212
|
if (typeof t == "object")
|
|
4208
4213
|
return ql;
|
|
4209
4214
|
}
|
|
@@ -4213,14 +4218,14 @@ function jl(t, e, n) {
|
|
|
4213
4218
|
let l = i(t[s], t[s + 1]);
|
|
4214
4219
|
if (e) {
|
|
4215
4220
|
const u = Array.isArray(e) ? e[s] : e;
|
|
4216
|
-
l =
|
|
4221
|
+
l = qa(u, l);
|
|
4217
4222
|
}
|
|
4218
4223
|
a.push(l);
|
|
4219
4224
|
}
|
|
4220
4225
|
return a;
|
|
4221
4226
|
}
|
|
4222
4227
|
function Bl([t, e], [n]) {
|
|
4223
|
-
return (a) => n(
|
|
4228
|
+
return (a) => n(ka(t, e, a));
|
|
4224
4229
|
}
|
|
4225
4230
|
function Gl(t, e) {
|
|
4226
4231
|
const n = t.length, a = n - 1;
|
|
@@ -4232,7 +4237,7 @@ function Gl(t, e) {
|
|
|
4232
4237
|
;
|
|
4233
4238
|
o = u - 1;
|
|
4234
4239
|
}
|
|
4235
|
-
const l =
|
|
4240
|
+
const l = ka(t[o], t[o + 1], i);
|
|
4236
4241
|
return e[o](l);
|
|
4237
4242
|
};
|
|
4238
4243
|
}
|
|
@@ -4240,7 +4245,7 @@ function Wl(t, e, { clamp: n = !0, ease: a, mixer: i } = {}) {
|
|
|
4240
4245
|
const o = t.length;
|
|
4241
4246
|
pt(o === e.length, "Both input and output ranges must be the same length"), pt(!a || !Array.isArray(a) || a.length === o - 1, "Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."), t[0] > t[o - 1] && (t = [].concat(t), e = [].concat(e), t.reverse(), e.reverse());
|
|
4242
4247
|
const s = jl(e, a, i), l = o === 2 ? Bl(t, s) : Gl(t, s);
|
|
4243
|
-
return n ? (u) => l(
|
|
4248
|
+
return n ? (u) => l(Rl(t[0], t[o - 1], u)) : l;
|
|
4244
4249
|
}
|
|
4245
4250
|
class Ql {
|
|
4246
4251
|
constructor({ valueRange: e, colorRange: n }) {
|
|
@@ -4254,8 +4259,8 @@ class Ql {
|
|
|
4254
4259
|
function Yl(t) {
|
|
4255
4260
|
return t === null ? "null" : t === void 0 ? "undefined" : Array.isArray(t) ? `Array(${t.length})` : t.toString();
|
|
4256
4261
|
}
|
|
4257
|
-
function
|
|
4258
|
-
return
|
|
4262
|
+
function Ba({ data_field: t, aggregation: e }, n) {
|
|
4263
|
+
return Rn(n, t, e);
|
|
4259
4264
|
}
|
|
4260
4265
|
function jt({ formatter: t }, e) {
|
|
4261
4266
|
return ["string", "number"].includes(typeof e) ? ve(e).format(t) : Yl(e);
|
|
@@ -4273,7 +4278,7 @@ function Hl(t, e) {
|
|
|
4273
4278
|
aggregation: l,
|
|
4274
4279
|
size: u,
|
|
4275
4280
|
weight: p
|
|
4276
|
-
} = a, h =
|
|
4281
|
+
} = a, h = Rn(e, s, l), f = jt(a, h);
|
|
4277
4282
|
n[i] = /* @__PURE__ */ r(v, {
|
|
4278
4283
|
sx: {
|
|
4279
4284
|
fontSize: u,
|
|
@@ -4320,11 +4325,11 @@ function ln(t, e, n) {
|
|
|
4320
4325
|
function Kl(t, e) {
|
|
4321
4326
|
const n = {};
|
|
4322
4327
|
return t.forEach((a) => {
|
|
4323
|
-
const { name: i, data_field: o, aggregation: s } = a, l =
|
|
4328
|
+
const { name: i, data_field: o, aggregation: s } = a, l = Rn(e, o, s);
|
|
4324
4329
|
n[i] = jt(a, l);
|
|
4325
4330
|
}), n;
|
|
4326
4331
|
}
|
|
4327
|
-
function
|
|
4332
|
+
function Ga(t, e, n) {
|
|
4328
4333
|
const a = Kl(e, n), i = /^\{(.+)\}(.*)$/;
|
|
4329
4334
|
return t.split("$").map((o) => {
|
|
4330
4335
|
var p;
|
|
@@ -4532,8 +4537,8 @@ const kt = {
|
|
|
4532
4537
|
}, ac = ({
|
|
4533
4538
|
vizManager: t,
|
|
4534
4539
|
instance: e
|
|
4535
|
-
}) =>
|
|
4536
|
-
() => new
|
|
4540
|
+
}) => Pe(
|
|
4541
|
+
() => new Ja(e, t.resolveComponent(e.type), $n),
|
|
4537
4542
|
[e, t]
|
|
4538
4543
|
), ic = (t, e) => {
|
|
4539
4544
|
const [n, a] = de([]);
|
|
@@ -4559,7 +4564,7 @@ class oc {
|
|
|
4559
4564
|
return (o) => a * o + i;
|
|
4560
4565
|
}
|
|
4561
4566
|
getStepFunctionForValue(e) {
|
|
4562
|
-
let n =
|
|
4567
|
+
let n = Zi(this.steps, (a) => a.from <= e);
|
|
4563
4568
|
return n = Sr(n, 0, this.steps.length - 2), this.getLinearFunction(this.steps[n], this.steps[n + 1]);
|
|
4564
4569
|
}
|
|
4565
4570
|
mapValue(e) {
|
|
@@ -4574,7 +4579,7 @@ function sc(t, e) {
|
|
|
4574
4579
|
i = a[o], !(e.indexOf(i) >= 0) && (n[i] = t[i]);
|
|
4575
4580
|
return n;
|
|
4576
4581
|
}
|
|
4577
|
-
function
|
|
4582
|
+
function Wa(t, e) {
|
|
4578
4583
|
if (t == null)
|
|
4579
4584
|
return {};
|
|
4580
4585
|
var n = sc(t, e), a, i;
|
|
@@ -4587,12 +4592,12 @@ function Ga(t, e) {
|
|
|
4587
4592
|
}
|
|
4588
4593
|
var lc = ["size", "color", "stroke"];
|
|
4589
4594
|
function cc(t) {
|
|
4590
|
-
var e = t.size, n = e === void 0 ? 24 : e, a = t.color, i = a === void 0 ? "currentColor" : a, o = t.stroke, s = o === void 0 ? 2 : o, l =
|
|
4595
|
+
var e = t.size, n = e === void 0 ? 24 : e, a = t.color, i = a === void 0 ? "currentColor" : a, o = t.stroke, s = o === void 0 ? 2 : o, l = Wa(t, lc);
|
|
4591
4596
|
return /* @__PURE__ */ c("svg", { xmlns: "http://www.w3.org/2000/svg", className: "icon icon-tabler icon-tabler-arrow-down", width: n, height: n, viewBox: "0 0 24 24", strokeWidth: s, stroke: i, fill: "none", strokeLinecap: "round", strokeLinejoin: "round", ...l, children: [/* @__PURE__ */ r("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), /* @__PURE__ */ r("line", { x1: 12, y1: 5, x2: 12, y2: 19 }), /* @__PURE__ */ r("line", { x1: 18, y1: 13, x2: 12, y2: 19 }), /* @__PURE__ */ r("line", { x1: 6, y1: 13, x2: 12, y2: 19 })] });
|
|
4592
4597
|
}
|
|
4593
4598
|
var uc = ["size", "color", "stroke"];
|
|
4594
4599
|
function dc(t) {
|
|
4595
|
-
var e = t.size, n = e === void 0 ? 24 : e, a = t.color, i = a === void 0 ? "currentColor" : a, o = t.stroke, s = o === void 0 ? 2 : o, l =
|
|
4600
|
+
var e = t.size, n = e === void 0 ? 24 : e, a = t.color, i = a === void 0 ? "currentColor" : a, o = t.stroke, s = o === void 0 ? 2 : o, l = Wa(t, uc);
|
|
4596
4601
|
return /* @__PURE__ */ c("svg", { xmlns: "http://www.w3.org/2000/svg", className: "icon icon-tabler icon-tabler-arrow-up", width: n, height: n, viewBox: "0 0 24 24", strokeWidth: s, stroke: i, fill: "none", strokeLinecap: "round", strokeLinejoin: "round", ...l, children: [/* @__PURE__ */ r("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), /* @__PURE__ */ r("line", { x1: 12, y1: 5, x2: 12, y2: 19 }), /* @__PURE__ */ r("line", { x1: 18, y1: 11, x2: 12, y2: 5 }), /* @__PURE__ */ r("line", { x1: 6, y1: 11, x2: 12, y2: 5 })] });
|
|
4597
4602
|
}
|
|
4598
4603
|
const hc = ({
|
|
@@ -4642,7 +4647,7 @@ const hc = ({
|
|
|
4642
4647
|
}, mc = {
|
|
4643
4648
|
column: ""
|
|
4644
4649
|
};
|
|
4645
|
-
function
|
|
4650
|
+
function Qa(t) {
|
|
4646
4651
|
const {
|
|
4647
4652
|
value: e
|
|
4648
4653
|
} = G(t.instanceData, "config");
|
|
@@ -4652,13 +4657,13 @@ function Wa(t) {
|
|
|
4652
4657
|
})) : [];
|
|
4653
4658
|
}
|
|
4654
4659
|
function fc(t) {
|
|
4655
|
-
return
|
|
4660
|
+
return Mr(t) ? [] : Object.keys(t[0]).map((e) => ({
|
|
4656
4661
|
label: e,
|
|
4657
4662
|
value: e
|
|
4658
4663
|
}));
|
|
4659
4664
|
}
|
|
4660
4665
|
function gc(t) {
|
|
4661
|
-
const e =
|
|
4666
|
+
const e = Qa(t.instance), n = fc(t.sampleData), a = e.length > 0 ? e : n, {
|
|
4662
4667
|
value: i,
|
|
4663
4668
|
set: o
|
|
4664
4669
|
} = G(t.trigger.triggerData, "config"), {
|
|
@@ -4679,10 +4684,10 @@ function gc(t) {
|
|
|
4679
4684
|
});
|
|
4680
4685
|
}
|
|
4681
4686
|
function bc(t, e) {
|
|
4682
|
-
return t ?
|
|
4687
|
+
return t ? eo(t.column) ? `Click cell of ${e[t.column].label}` : `Click cell of ${t.column}` : "Click cell content (click to config)";
|
|
4683
4688
|
}
|
|
4684
4689
|
function vc(t) {
|
|
4685
|
-
const e =
|
|
4690
|
+
const e = Qa(t.instance), {
|
|
4686
4691
|
value: n
|
|
4687
4692
|
} = G(t.trigger.triggerData, "config");
|
|
4688
4693
|
return /* @__PURE__ */ r(v, {
|
|
@@ -4776,7 +4781,7 @@ function Ic(t) {
|
|
|
4776
4781
|
children: e
|
|
4777
4782
|
});
|
|
4778
4783
|
}
|
|
4779
|
-
function
|
|
4784
|
+
function Dc(t) {
|
|
4780
4785
|
const e = ve(t.value).format({
|
|
4781
4786
|
output: "percent",
|
|
4782
4787
|
mantissa: 3
|
|
@@ -4786,7 +4791,7 @@ function Rc(t) {
|
|
|
4786
4791
|
children: e
|
|
4787
4792
|
});
|
|
4788
4793
|
}
|
|
4789
|
-
function
|
|
4794
|
+
function Rc(t) {
|
|
4790
4795
|
switch (t.type) {
|
|
4791
4796
|
case Oe.string:
|
|
4792
4797
|
return /* @__PURE__ */ r(Sc, {
|
|
@@ -4801,7 +4806,7 @@ function Dc(t) {
|
|
|
4801
4806
|
...t
|
|
4802
4807
|
});
|
|
4803
4808
|
case Oe.percentage:
|
|
4804
|
-
return /* @__PURE__ */ r(
|
|
4809
|
+
return /* @__PURE__ */ r(Dc, {
|
|
4805
4810
|
...t
|
|
4806
4811
|
});
|
|
4807
4812
|
}
|
|
@@ -4809,8 +4814,8 @@ function Dc(t) {
|
|
|
4809
4814
|
const kc = (t) => {
|
|
4810
4815
|
const e = ac(t), n = ic(e.triggerManager, Vn.id), {
|
|
4811
4816
|
colorManager: a
|
|
4812
|
-
} =
|
|
4813
|
-
return
|
|
4817
|
+
} = Me(Te);
|
|
4818
|
+
return Dt((i) => new Vc(t.getColIndex, i, n, e, a), [n, e, t.getColIndex]);
|
|
4814
4819
|
};
|
|
4815
4820
|
function Tc({
|
|
4816
4821
|
context: t,
|
|
@@ -4834,12 +4839,12 @@ function Tc({
|
|
|
4834
4839
|
value_field: se,
|
|
4835
4840
|
value_type: Oe.string
|
|
4836
4841
|
})) : l, [s, l, n]), m = kc({
|
|
4837
|
-
getColIndex:
|
|
4842
|
+
getColIndex: Dt((se) => f.indexOf(se.column.columnDef.meta), [f]),
|
|
4838
4843
|
vizManager: t.vizManager,
|
|
4839
4844
|
instance: e
|
|
4840
4845
|
}), y = A(() => {
|
|
4841
|
-
const se =
|
|
4842
|
-
cell: (Ve) => /* @__PURE__ */ r(
|
|
4846
|
+
const se = Io(), be = f.map((ce) => se.accessor(ce.value_field, {
|
|
4847
|
+
cell: (Ve) => /* @__PURE__ */ r(Rc, {
|
|
4843
4848
|
tableCellContext: m(Ve.cell),
|
|
4844
4849
|
value: Ve.getValue(),
|
|
4845
4850
|
type: ce.value_type
|
|
@@ -4854,21 +4859,21 @@ function Tc({
|
|
|
4854
4859
|
header: "#",
|
|
4855
4860
|
size: 10 * (n.length.toString().length + 1)
|
|
4856
4861
|
}), ...be];
|
|
4857
|
-
}, [f, m]), [I,
|
|
4862
|
+
}, [f, m]), [I, R] = de([]), O = Do({
|
|
4858
4863
|
data: n,
|
|
4859
4864
|
state: {
|
|
4860
4865
|
sorting: I
|
|
4861
4866
|
},
|
|
4862
|
-
onSortingChange:
|
|
4867
|
+
onSortingChange: R,
|
|
4863
4868
|
columns: y,
|
|
4864
4869
|
getCoreRowModel: Ro(),
|
|
4865
|
-
getSortedRowModel:
|
|
4870
|
+
getSortedRowModel: ko()
|
|
4866
4871
|
}), {
|
|
4867
4872
|
rows: Q
|
|
4868
|
-
} = O.getRowModel(), W = x.useRef(null), ge =
|
|
4873
|
+
} = O.getRowModel(), W = x.useRef(null), ge = To({
|
|
4869
4874
|
parentRef: W,
|
|
4870
4875
|
size: Q.length,
|
|
4871
|
-
estimateSize:
|
|
4876
|
+
estimateSize: Dt(() => 28, []),
|
|
4872
4877
|
overscan: 20
|
|
4873
4878
|
}), {
|
|
4874
4879
|
virtualItems: oe,
|
|
@@ -4969,7 +4974,7 @@ class Vc {
|
|
|
4969
4974
|
}
|
|
4970
4975
|
}
|
|
4971
4976
|
}
|
|
4972
|
-
const
|
|
4977
|
+
const Ya = mn(() => ({
|
|
4973
4978
|
palette: {
|
|
4974
4979
|
display: "flex",
|
|
4975
4980
|
flexFlow: "row nowrap"
|
|
@@ -5041,10 +5046,10 @@ function Oc(t) {
|
|
|
5041
5046
|
value: i
|
|
5042
5047
|
} = t, {
|
|
5043
5048
|
classes: o
|
|
5044
|
-
} =
|
|
5049
|
+
} = Ya(), [s, l] = de(i), [u, {
|
|
5045
5050
|
setTrue: p,
|
|
5046
5051
|
setFalse: h
|
|
5047
|
-
}] = mt(!1), f = a % 2 === 1, m = f && i != null, y = !f && i != null, I = `map ${i} to color ${a}`,
|
|
5052
|
+
}] = mt(!1), f = a % 2 === 1, m = f && i != null, y = !f && i != null, I = `map ${i} to color ${a}`, R = () => {
|
|
5048
5053
|
l(i), h();
|
|
5049
5054
|
}, O = () => {
|
|
5050
5055
|
h(), e == null || e(s);
|
|
@@ -5090,7 +5095,7 @@ function Oc(t) {
|
|
|
5090
5095
|
children: [/* @__PURE__ */ r(F, {
|
|
5091
5096
|
variant: "subtle",
|
|
5092
5097
|
size: "xs",
|
|
5093
|
-
onClick:
|
|
5098
|
+
onClick: R,
|
|
5094
5099
|
children: "Cancel"
|
|
5095
5100
|
}), /* @__PURE__ */ r(F, {
|
|
5096
5101
|
"data-testid": "palette-item-ok",
|
|
@@ -5113,12 +5118,12 @@ function Oc(t) {
|
|
|
5113
5118
|
})]
|
|
5114
5119
|
});
|
|
5115
5120
|
}
|
|
5116
|
-
const Fc =
|
|
5121
|
+
const Fc = D(({
|
|
5117
5122
|
model: t
|
|
5118
5123
|
}) => {
|
|
5119
5124
|
const {
|
|
5120
5125
|
classes: e
|
|
5121
|
-
} =
|
|
5126
|
+
} = Ya(), n = to(0, 13, 1).map((a) => 100 / 12 * a).map((a) => [t.interpolation.getColor(a), a]);
|
|
5122
5127
|
return /* @__PURE__ */ r("div", {
|
|
5123
5128
|
className: e.palette,
|
|
5124
5129
|
children: n.map(([a, i], o) => /* @__PURE__ */ r(Oc, {
|
|
@@ -5128,14 +5133,14 @@ const Fc = R(({
|
|
|
5128
5133
|
onChange: (s) => t.changeStep(s, i)
|
|
5129
5134
|
}, a))
|
|
5130
5135
|
});
|
|
5131
|
-
}),
|
|
5132
|
-
const n =
|
|
5136
|
+
}), Pc = D(function(e) {
|
|
5137
|
+
const n = Pe(() => new Ec(), []);
|
|
5133
5138
|
return K(() => {
|
|
5134
5139
|
n.fromProps(e);
|
|
5135
5140
|
}), n.interpolation == null ? null : /* @__PURE__ */ r(Fc, {
|
|
5136
5141
|
model: n
|
|
5137
5142
|
});
|
|
5138
|
-
}),
|
|
5143
|
+
}), Mc = (t) => {
|
|
5139
5144
|
const {
|
|
5140
5145
|
value: e,
|
|
5141
5146
|
onChange: n,
|
|
@@ -5163,7 +5168,7 @@ const Fc = R(({
|
|
|
5163
5168
|
steps: O
|
|
5164
5169
|
}));
|
|
5165
5170
|
}
|
|
5166
|
-
const
|
|
5171
|
+
const R = () => {
|
|
5167
5172
|
h(), s(e);
|
|
5168
5173
|
};
|
|
5169
5174
|
return /* @__PURE__ */ c(U, {
|
|
@@ -5183,14 +5188,14 @@ const Fc = R(({
|
|
|
5183
5188
|
value: o.interpolation,
|
|
5184
5189
|
data: f,
|
|
5185
5190
|
onChange: m
|
|
5186
|
-
}), /* @__PURE__ */ r(
|
|
5191
|
+
}), /* @__PURE__ */ r(Pc, {
|
|
5187
5192
|
steps: o.steps,
|
|
5188
5193
|
interpolation: l,
|
|
5189
5194
|
onChange: I
|
|
5190
5195
|
}), /* @__PURE__ */ c(g, {
|
|
5191
5196
|
position: "right",
|
|
5192
5197
|
children: [/* @__PURE__ */ r(F, {
|
|
5193
|
-
onClick:
|
|
5198
|
+
onClick: R,
|
|
5194
5199
|
variant: "subtle",
|
|
5195
5200
|
children: "Cancel"
|
|
5196
5201
|
}), /* @__PURE__ */ r(F, {
|
|
@@ -5208,12 +5213,12 @@ const Fc = R(({
|
|
|
5208
5213
|
from: 100,
|
|
5209
5214
|
to: 100
|
|
5210
5215
|
}];
|
|
5211
|
-
function
|
|
5216
|
+
function Ua(t) {
|
|
5212
5217
|
return t ? Ar(t) ? t === "none" ? "none" : "static" : "interpolation" : "none";
|
|
5213
5218
|
}
|
|
5214
5219
|
function qc(t, e) {
|
|
5215
5220
|
var n;
|
|
5216
|
-
return
|
|
5221
|
+
return Ua(e) === "static" ? e : (n = t.getStaticColors()[0]) == null ? void 0 : n.value;
|
|
5217
5222
|
}
|
|
5218
5223
|
function $c(t, e) {
|
|
5219
5224
|
return Fr(e) ? e : {
|
|
@@ -5224,24 +5229,24 @@ function $c(t, e) {
|
|
|
5224
5229
|
const Nc = (t) => {
|
|
5225
5230
|
const {
|
|
5226
5231
|
colorManager: e
|
|
5227
|
-
} =
|
|
5232
|
+
} = Me(Te), [n, a] = de(Ua(t.value)), [i, o] = de(qc(e, t.value)), s = pr(i), [l, u] = de($c(e, t.value)), p = pr(l);
|
|
5228
5233
|
return /* @__PURE__ */ c(g, {
|
|
5229
5234
|
align: "end",
|
|
5230
5235
|
children: [/* @__PURE__ */ r(j, {
|
|
5231
5236
|
label: "Cell background",
|
|
5232
5237
|
value: n || "none",
|
|
5233
5238
|
onChange: (y) => {
|
|
5234
|
-
var I,
|
|
5235
|
-
a(y || "none"), y === "static" ? (I = t.onChange) == null || I.call(t, s.current) : y === "none" || !y ? (
|
|
5239
|
+
var I, R, O;
|
|
5240
|
+
a(y || "none"), y === "static" ? (I = t.onChange) == null || I.call(t, s.current) : y === "none" || !y ? (R = t.onChange) == null || R.call(t, "none") : (O = t.onChange) == null || O.call(t, p.current);
|
|
5236
5241
|
},
|
|
5237
5242
|
data: Ac
|
|
5238
|
-
}), n === "static" && /* @__PURE__ */ r(
|
|
5243
|
+
}), n === "static" && /* @__PURE__ */ r(Re, {
|
|
5239
5244
|
value: i,
|
|
5240
5245
|
onChange: (y) => {
|
|
5241
5246
|
var I;
|
|
5242
5247
|
o(y), (I = t.onChange) == null || I.call(t, y);
|
|
5243
5248
|
}
|
|
5244
|
-
}), n === "interpolation" && /* @__PURE__ */ r(
|
|
5249
|
+
}), n === "interpolation" && /* @__PURE__ */ r(Mc, {
|
|
5245
5250
|
colorManager: e,
|
|
5246
5251
|
value: l,
|
|
5247
5252
|
onChange: (y) => {
|
|
@@ -5504,7 +5509,7 @@ const cn = {
|
|
|
5504
5509
|
label_field: "",
|
|
5505
5510
|
value_field: ""
|
|
5506
5511
|
};
|
|
5507
|
-
ne.use([
|
|
5512
|
+
ne.use([Vo, qe]);
|
|
5508
5513
|
const Qc = {
|
|
5509
5514
|
tooltip: {
|
|
5510
5515
|
show: !0
|
|
@@ -5646,7 +5651,7 @@ const Xc = {
|
|
|
5646
5651
|
label_field: "",
|
|
5647
5652
|
value_field: ""
|
|
5648
5653
|
};
|
|
5649
|
-
ne.use([
|
|
5654
|
+
ne.use([zo, qe]);
|
|
5650
5655
|
const Jc = {
|
|
5651
5656
|
tooltip: {
|
|
5652
5657
|
show: !0
|
|
@@ -5699,7 +5704,7 @@ function Kc({
|
|
|
5699
5704
|
series: {
|
|
5700
5705
|
labelLayout: function(h) {
|
|
5701
5706
|
const f = h.labelRect.x < a / 2, m = h.labelLinePoints;
|
|
5702
|
-
return
|
|
5707
|
+
return Pr(m, [2, 0], f ? h.labelRect.x : h.labelRect.x + h.labelRect.width), {
|
|
5703
5708
|
labelLinePoints: m
|
|
5704
5709
|
};
|
|
5705
5710
|
}
|
|
@@ -5820,7 +5825,7 @@ const tu = {
|
|
|
5820
5825
|
name: "Z Axis Name"
|
|
5821
5826
|
}
|
|
5822
5827
|
};
|
|
5823
|
-
ne.use([Ke,
|
|
5828
|
+
ne.use([Ke, Fo, Ze, et, qe]);
|
|
5824
5829
|
function nu({
|
|
5825
5830
|
context: t
|
|
5826
5831
|
}) {
|
|
@@ -5837,10 +5842,10 @@ function nu({
|
|
|
5837
5842
|
yAxis3D: p,
|
|
5838
5843
|
zAxis3D: h
|
|
5839
5844
|
} = te({}, e, On), f = A(() => {
|
|
5840
|
-
const I =
|
|
5845
|
+
const I = no(n, (R) => R[l]);
|
|
5841
5846
|
return re(I, l);
|
|
5842
5847
|
}, [n, l]), m = A(() => {
|
|
5843
|
-
const I = qr(n, (
|
|
5848
|
+
const I = qr(n, (R) => R[l]);
|
|
5844
5849
|
return re(I, l);
|
|
5845
5850
|
}, [n, l]), y = {
|
|
5846
5851
|
tooltip: {},
|
|
@@ -6066,10 +6071,10 @@ const iu = {
|
|
|
6066
6071
|
variables: [],
|
|
6067
6072
|
reference_lines: []
|
|
6068
6073
|
};
|
|
6069
|
-
ne.use([
|
|
6074
|
+
ne.use([Pt, Eo, Po, Ke, Ze, et, qe]);
|
|
6070
6075
|
function ou(t, e, n) {
|
|
6071
6076
|
const a = e.reduce((i, o) => {
|
|
6072
|
-
const s =
|
|
6077
|
+
const s = Ba(o, n);
|
|
6073
6078
|
return i[o.name] = jt(o, s), i;
|
|
6074
6079
|
}, {});
|
|
6075
6080
|
return t.map((i) => ({
|
|
@@ -6085,7 +6090,7 @@ function ou(t, e, n) {
|
|
|
6085
6090
|
symbol: ["none", "none"],
|
|
6086
6091
|
label: {
|
|
6087
6092
|
formatter: function() {
|
|
6088
|
-
return
|
|
6093
|
+
return Ga(i.template, e, n);
|
|
6089
6094
|
},
|
|
6090
6095
|
position: "insideEndTop"
|
|
6091
6096
|
}
|
|
@@ -6113,7 +6118,7 @@ function su({
|
|
|
6113
6118
|
const y = $.groupBy(n, o.data_key);
|
|
6114
6119
|
return {
|
|
6115
6120
|
xAxisData: Object.keys(y),
|
|
6116
|
-
boxplotData: Object.values(y).map((I) => I.map((
|
|
6121
|
+
boxplotData: Object.values(y).map((I) => I.map((R) => R[s.data_key]))
|
|
6117
6122
|
};
|
|
6118
6123
|
}, [n, o.data_key, s.data_key]), m = {
|
|
6119
6124
|
dataset: [{
|
|
@@ -6395,13 +6400,13 @@ function hu({
|
|
|
6395
6400
|
size: 20
|
|
6396
6401
|
})
|
|
6397
6402
|
})]
|
|
6398
|
-
}), /* @__PURE__ */ c(
|
|
6403
|
+
}), /* @__PURE__ */ c(M, {
|
|
6399
6404
|
defaultValue: "Axis",
|
|
6400
|
-
children: [/* @__PURE__ */ c(
|
|
6405
|
+
children: [/* @__PURE__ */ c(M.Item, {
|
|
6401
6406
|
value: "Axis",
|
|
6402
|
-
children: [/* @__PURE__ */ r(
|
|
6407
|
+
children: [/* @__PURE__ */ r(M.Control, {
|
|
6403
6408
|
children: "Axis"
|
|
6404
|
-
}), /* @__PURE__ */ c(
|
|
6409
|
+
}), /* @__PURE__ */ c(M.Panel, {
|
|
6405
6410
|
children: [/* @__PURE__ */ c(g, {
|
|
6406
6411
|
grow: !0,
|
|
6407
6412
|
noWrap: !0,
|
|
@@ -6464,11 +6469,11 @@ function hu({
|
|
|
6464
6469
|
})]
|
|
6465
6470
|
})]
|
|
6466
6471
|
})]
|
|
6467
|
-
}), /* @__PURE__ */ c(
|
|
6472
|
+
}), /* @__PURE__ */ c(M.Item, {
|
|
6468
6473
|
value: "Style",
|
|
6469
|
-
children: [/* @__PURE__ */ r(
|
|
6474
|
+
children: [/* @__PURE__ */ r(M.Control, {
|
|
6470
6475
|
children: "Style"
|
|
6471
|
-
}), /* @__PURE__ */ r(
|
|
6476
|
+
}), /* @__PURE__ */ r(M.Panel, {
|
|
6472
6477
|
children: /* @__PURE__ */ c(w, {
|
|
6473
6478
|
spacing: 4,
|
|
6474
6479
|
children: [/* @__PURE__ */ r(v, {
|
|
@@ -6479,15 +6484,15 @@ function hu({
|
|
|
6479
6484
|
control: o,
|
|
6480
6485
|
render: ({
|
|
6481
6486
|
field: m
|
|
6482
|
-
}) => /* @__PURE__ */ r(
|
|
6487
|
+
}) => /* @__PURE__ */ r(Re, {
|
|
6483
6488
|
...m
|
|
6484
6489
|
})
|
|
6485
6490
|
})]
|
|
6486
6491
|
})
|
|
6487
6492
|
})]
|
|
6488
|
-
}), /* @__PURE__ */ c(
|
|
6493
|
+
}), /* @__PURE__ */ c(M.Item, {
|
|
6489
6494
|
value: "Advanced",
|
|
6490
|
-
children: [/* @__PURE__ */ r(
|
|
6495
|
+
children: [/* @__PURE__ */ r(M.Control, {
|
|
6491
6496
|
children: /* @__PURE__ */ c(g, {
|
|
6492
6497
|
position: "apart",
|
|
6493
6498
|
children: ["Advanced", /* @__PURE__ */ r(v, {
|
|
@@ -6497,7 +6502,7 @@ function hu({
|
|
|
6497
6502
|
children: "Use variables in reference lines"
|
|
6498
6503
|
})]
|
|
6499
6504
|
})
|
|
6500
|
-
}), /* @__PURE__ */ r(
|
|
6505
|
+
}), /* @__PURE__ */ r(M.Panel, {
|
|
6501
6506
|
children: /* @__PURE__ */ c(V, {
|
|
6502
6507
|
defaultValue: "variables",
|
|
6503
6508
|
children: [/* @__PURE__ */ c(V.List, {
|
|
@@ -6592,7 +6597,7 @@ function bu(t, e, n, a) {
|
|
|
6592
6597
|
}
|
|
6593
6598
|
function vu(t, e, n) {
|
|
6594
6599
|
const a = e.reduce((i, o) => {
|
|
6595
|
-
const s =
|
|
6600
|
+
const s = Ba(o, n);
|
|
6596
6601
|
return i[o.name] = jt(o, s), i;
|
|
6597
6602
|
}, {});
|
|
6598
6603
|
return t.map((i) => ({
|
|
@@ -6610,7 +6615,7 @@ function vu(t, e, n) {
|
|
|
6610
6615
|
symbol: ["none", "none"],
|
|
6611
6616
|
label: {
|
|
6612
6617
|
formatter: function() {
|
|
6613
|
-
return
|
|
6618
|
+
return Ga(i.template, e, n);
|
|
6614
6619
|
},
|
|
6615
6620
|
position: "insideEndTop"
|
|
6616
6621
|
}
|
|
@@ -6633,10 +6638,10 @@ function yu({ x_axis_data_key: t }, { y_axis_data_key: e, yAxisIndex: n, label_p
|
|
|
6633
6638
|
};
|
|
6634
6639
|
if (!o)
|
|
6635
6640
|
return m.data = h.map((I) => I[e]), m;
|
|
6636
|
-
const y =
|
|
6637
|
-
return Object.entries(y).map(([I,
|
|
6641
|
+
const y = ro(h, o);
|
|
6642
|
+
return Object.entries(y).map(([I, R]) => {
|
|
6638
6643
|
const O = Lr(m);
|
|
6639
|
-
return O.data = bu(p,
|
|
6644
|
+
return O.data = bu(p, R, t, e), O.name = I, O.color = void 0, O;
|
|
6640
6645
|
});
|
|
6641
6646
|
}
|
|
6642
6647
|
function xu(t, e, n, a) {
|
|
@@ -6739,8 +6744,8 @@ function Iu(t, e) {
|
|
|
6739
6744
|
return I;
|
|
6740
6745
|
try {
|
|
6741
6746
|
return ve(I).format(h);
|
|
6742
|
-
} catch (
|
|
6743
|
-
return console.error(
|
|
6747
|
+
} catch (R) {
|
|
6748
|
+
return console.error(R), I;
|
|
6744
6749
|
}
|
|
6745
6750
|
}, p),
|
|
6746
6751
|
{
|
|
@@ -6756,7 +6761,7 @@ function Iu(t, e) {
|
|
|
6756
6761
|
};
|
|
6757
6762
|
return Ge({}, u, _u);
|
|
6758
6763
|
}
|
|
6759
|
-
const
|
|
6764
|
+
const Pn = {
|
|
6760
6765
|
regressions: [],
|
|
6761
6766
|
series: [],
|
|
6762
6767
|
stats: { templates: { bottom: "", top: "" }, variables: [] },
|
|
@@ -6765,18 +6770,18 @@ const Mn = {
|
|
|
6765
6770
|
y_axes: [
|
|
6766
6771
|
{
|
|
6767
6772
|
name: "Y Axis",
|
|
6768
|
-
label_formatter:
|
|
6773
|
+
label_formatter: Dn
|
|
6769
6774
|
}
|
|
6770
6775
|
],
|
|
6771
6776
|
variables: [],
|
|
6772
6777
|
reference_lines: []
|
|
6773
6778
|
};
|
|
6774
|
-
ne.use([
|
|
6779
|
+
ne.use([Pt, Jr, Kr, Zr, Ke, Ze, et, qe]);
|
|
6775
6780
|
ne.registerTransform(ea.regression);
|
|
6776
6781
|
function _r(t) {
|
|
6777
6782
|
return t.trim().length > 0;
|
|
6778
6783
|
}
|
|
6779
|
-
function
|
|
6784
|
+
function Du({
|
|
6780
6785
|
conf: t,
|
|
6781
6786
|
data: e,
|
|
6782
6787
|
width: n,
|
|
@@ -6792,12 +6797,12 @@ function Ru({
|
|
|
6792
6797
|
}
|
|
6793
6798
|
});
|
|
6794
6799
|
}
|
|
6795
|
-
function
|
|
6800
|
+
function Ru({
|
|
6796
6801
|
context: t
|
|
6797
6802
|
}) {
|
|
6798
6803
|
const {
|
|
6799
6804
|
value: e
|
|
6800
|
-
} = G(t.instanceData, "config"), n = A(() => te({}, e,
|
|
6805
|
+
} = G(t.instanceData, "config"), n = A(() => te({}, e, Pn), [e]), a = t.data, {
|
|
6801
6806
|
width: i,
|
|
6802
6807
|
height: o
|
|
6803
6808
|
} = t.viewport, {
|
|
@@ -6825,7 +6830,7 @@ function Du({
|
|
|
6825
6830
|
size: "xs",
|
|
6826
6831
|
pl: "sm",
|
|
6827
6832
|
children: Object.values(h.top).map((m) => m)
|
|
6828
|
-
}), /* @__PURE__ */ r(
|
|
6833
|
+
}), /* @__PURE__ */ r(Du, {
|
|
6829
6834
|
width: i,
|
|
6830
6835
|
height: f,
|
|
6831
6836
|
data: a,
|
|
@@ -7070,7 +7075,7 @@ function zu({
|
|
|
7070
7075
|
control: t,
|
|
7071
7076
|
render: ({
|
|
7072
7077
|
field: l
|
|
7073
|
-
}) => /* @__PURE__ */ r(
|
|
7078
|
+
}) => /* @__PURE__ */ r(Re, {
|
|
7074
7079
|
...l
|
|
7075
7080
|
})
|
|
7076
7081
|
})]
|
|
@@ -7201,7 +7206,7 @@ function Fu({
|
|
|
7201
7206
|
})]
|
|
7202
7207
|
});
|
|
7203
7208
|
}
|
|
7204
|
-
const
|
|
7209
|
+
const Pu = [{
|
|
7205
7210
|
label: "off",
|
|
7206
7211
|
value: "false"
|
|
7207
7212
|
}, {
|
|
@@ -7214,7 +7219,7 @@ const Mu = [{
|
|
|
7214
7219
|
label: "end",
|
|
7215
7220
|
value: "end"
|
|
7216
7221
|
}];
|
|
7217
|
-
function
|
|
7222
|
+
function Mu({
|
|
7218
7223
|
control: t,
|
|
7219
7224
|
index: e
|
|
7220
7225
|
}) {
|
|
@@ -7228,7 +7233,7 @@ function Pu({
|
|
|
7228
7233
|
field: n
|
|
7229
7234
|
}) => /* @__PURE__ */ r(j, {
|
|
7230
7235
|
label: "Step",
|
|
7231
|
-
data:
|
|
7236
|
+
data: Pu,
|
|
7232
7237
|
sx: {
|
|
7233
7238
|
flexGrow: 1,
|
|
7234
7239
|
maxWidth: "48%"
|
|
@@ -7362,7 +7367,7 @@ function $u({
|
|
|
7362
7367
|
control: t,
|
|
7363
7368
|
render: ({
|
|
7364
7369
|
field: l
|
|
7365
|
-
}) => /* @__PURE__ */ r(
|
|
7370
|
+
}) => /* @__PURE__ */ r(Gi, {
|
|
7366
7371
|
data: [{
|
|
7367
7372
|
label: "Line",
|
|
7368
7373
|
value: "line"
|
|
@@ -7458,7 +7463,7 @@ function $u({
|
|
|
7458
7463
|
...l
|
|
7459
7464
|
})
|
|
7460
7465
|
})]
|
|
7461
|
-
}), s === "line" && /* @__PURE__ */ r(
|
|
7466
|
+
}), s === "line" && /* @__PURE__ */ r(Mu, {
|
|
7462
7467
|
index: e,
|
|
7463
7468
|
control: t
|
|
7464
7469
|
}), s === "bar" && /* @__PURE__ */ r(Fu, {
|
|
@@ -7487,7 +7492,7 @@ function $u({
|
|
|
7487
7492
|
control: t,
|
|
7488
7493
|
render: ({
|
|
7489
7494
|
field: l
|
|
7490
|
-
}) => /* @__PURE__ */ r(
|
|
7495
|
+
}) => /* @__PURE__ */ r(Re, {
|
|
7491
7496
|
...l
|
|
7492
7497
|
})
|
|
7493
7498
|
})]
|
|
@@ -7595,7 +7600,7 @@ function ju({
|
|
|
7595
7600
|
control: t,
|
|
7596
7601
|
render: ({
|
|
7597
7602
|
field: a
|
|
7598
|
-
}) => /* @__PURE__ */ r(
|
|
7603
|
+
}) => /* @__PURE__ */ r(Da, {
|
|
7599
7604
|
...a
|
|
7600
7605
|
})
|
|
7601
7606
|
})
|
|
@@ -7631,7 +7636,7 @@ function Bu({
|
|
|
7631
7636
|
...o[p]
|
|
7632
7637
|
})), l = () => a({
|
|
7633
7638
|
name: "",
|
|
7634
|
-
label_formatter:
|
|
7639
|
+
label_formatter: Dn
|
|
7635
7640
|
});
|
|
7636
7641
|
return /* @__PURE__ */ c(w, {
|
|
7637
7642
|
children: [s.map((u, p) => /* @__PURE__ */ r(ju, {
|
|
@@ -7848,7 +7853,7 @@ function Uu(t) {
|
|
|
7848
7853
|
barGap: m = "0%",
|
|
7849
7854
|
smooth: y = !1,
|
|
7850
7855
|
step: I = !1,
|
|
7851
|
-
group_by_key:
|
|
7856
|
+
group_by_key: R = ""
|
|
7852
7857
|
}) {
|
|
7853
7858
|
return {
|
|
7854
7859
|
type: n,
|
|
@@ -7864,7 +7869,7 @@ function Uu(t) {
|
|
|
7864
7869
|
barGap: m,
|
|
7865
7870
|
smooth: y,
|
|
7866
7871
|
step: I,
|
|
7867
|
-
group_by_key:
|
|
7872
|
+
group_by_key: R
|
|
7868
7873
|
};
|
|
7869
7874
|
}
|
|
7870
7875
|
return t.map(e);
|
|
@@ -7884,16 +7889,16 @@ function Xu({
|
|
|
7884
7889
|
const {
|
|
7885
7890
|
value: e,
|
|
7886
7891
|
set: n
|
|
7887
|
-
} = G(t.instanceData, "config"), a = t.data, i = A(() => Ge({}, e,
|
|
7892
|
+
} = G(t.instanceData, "config"), a = t.data, i = A(() => Ge({}, e, Pn), [e]), o = A(() => {
|
|
7888
7893
|
const {
|
|
7889
7894
|
series: y,
|
|
7890
7895
|
stats: I,
|
|
7891
|
-
...
|
|
7896
|
+
...R
|
|
7892
7897
|
} = i;
|
|
7893
7898
|
return {
|
|
7894
7899
|
series: Uu(y != null ? y : []),
|
|
7895
7900
|
stats: Hu(I),
|
|
7896
|
-
...
|
|
7901
|
+
...R
|
|
7897
7902
|
};
|
|
7898
7903
|
}, [i]);
|
|
7899
7904
|
K(() => {
|
|
@@ -7937,14 +7942,14 @@ function Xu({
|
|
|
7937
7942
|
size: 20
|
|
7938
7943
|
})
|
|
7939
7944
|
})]
|
|
7940
|
-
}), /* @__PURE__ */ c(
|
|
7945
|
+
}), /* @__PURE__ */ c(M, {
|
|
7941
7946
|
multiple: !0,
|
|
7942
7947
|
defaultValue: ["X Axis", "Y Axes"],
|
|
7943
|
-
children: [/* @__PURE__ */ c(
|
|
7948
|
+
children: [/* @__PURE__ */ c(M.Item, {
|
|
7944
7949
|
value: "X Axis",
|
|
7945
|
-
children: [/* @__PURE__ */ r(
|
|
7950
|
+
children: [/* @__PURE__ */ r(M.Control, {
|
|
7946
7951
|
children: "X Axis"
|
|
7947
|
-
}), /* @__PURE__ */ r(
|
|
7952
|
+
}), /* @__PURE__ */ r(M.Panel, {
|
|
7948
7953
|
children: /* @__PURE__ */ c(g, {
|
|
7949
7954
|
grow: !0,
|
|
7950
7955
|
noWrap: !0,
|
|
@@ -7977,52 +7982,52 @@ function Xu({
|
|
|
7977
7982
|
})]
|
|
7978
7983
|
})
|
|
7979
7984
|
})]
|
|
7980
|
-
}), /* @__PURE__ */ c(
|
|
7985
|
+
}), /* @__PURE__ */ c(M.Item, {
|
|
7981
7986
|
value: "Y Axes",
|
|
7982
|
-
children: [/* @__PURE__ */ r(
|
|
7987
|
+
children: [/* @__PURE__ */ r(M.Control, {
|
|
7983
7988
|
children: "Y Axes"
|
|
7984
|
-
}), /* @__PURE__ */ r(
|
|
7989
|
+
}), /* @__PURE__ */ r(M.Panel, {
|
|
7985
7990
|
children: /* @__PURE__ */ r(Bu, {
|
|
7986
7991
|
control: s,
|
|
7987
7992
|
watch: u
|
|
7988
7993
|
})
|
|
7989
7994
|
})]
|
|
7990
|
-
}), /* @__PURE__ */ c(
|
|
7995
|
+
}), /* @__PURE__ */ c(M.Item, {
|
|
7991
7996
|
value: "Series",
|
|
7992
|
-
children: [/* @__PURE__ */ r(
|
|
7997
|
+
children: [/* @__PURE__ */ r(M.Control, {
|
|
7993
7998
|
children: "Series"
|
|
7994
|
-
}), /* @__PURE__ */ r(
|
|
7999
|
+
}), /* @__PURE__ */ r(M.Panel, {
|
|
7995
8000
|
children: /* @__PURE__ */ r(Nu, {
|
|
7996
8001
|
control: s,
|
|
7997
8002
|
watch: u,
|
|
7998
8003
|
data: a
|
|
7999
8004
|
})
|
|
8000
8005
|
})]
|
|
8001
|
-
}), /* @__PURE__ */ c(
|
|
8006
|
+
}), /* @__PURE__ */ c(M.Item, {
|
|
8002
8007
|
value: "Regression Lines",
|
|
8003
|
-
children: [/* @__PURE__ */ r(
|
|
8008
|
+
children: [/* @__PURE__ */ r(M.Control, {
|
|
8004
8009
|
children: "Regression Lines"
|
|
8005
|
-
}), /* @__PURE__ */ r(
|
|
8010
|
+
}), /* @__PURE__ */ r(M.Panel, {
|
|
8006
8011
|
children: /* @__PURE__ */ r(Eu, {
|
|
8007
8012
|
control: s,
|
|
8008
8013
|
watch: u,
|
|
8009
8014
|
data: a
|
|
8010
8015
|
})
|
|
8011
8016
|
})]
|
|
8012
|
-
}), /* @__PURE__ */ c(
|
|
8017
|
+
}), /* @__PURE__ */ c(M.Item, {
|
|
8013
8018
|
value: "Stats",
|
|
8014
|
-
children: [/* @__PURE__ */ r(
|
|
8019
|
+
children: [/* @__PURE__ */ r(M.Control, {
|
|
8015
8020
|
children: "Stats"
|
|
8016
|
-
}), /* @__PURE__ */ r(
|
|
8021
|
+
}), /* @__PURE__ */ r(M.Panel, {
|
|
8017
8022
|
children: /* @__PURE__ */ r(Tu, {
|
|
8018
8023
|
control: s,
|
|
8019
8024
|
watch: u,
|
|
8020
8025
|
data: a
|
|
8021
8026
|
})
|
|
8022
8027
|
})]
|
|
8023
|
-
}), /* @__PURE__ */ c(
|
|
8028
|
+
}), /* @__PURE__ */ c(M.Item, {
|
|
8024
8029
|
value: "Advanced",
|
|
8025
|
-
children: [/* @__PURE__ */ r(
|
|
8030
|
+
children: [/* @__PURE__ */ r(M.Control, {
|
|
8026
8031
|
children: /* @__PURE__ */ c(g, {
|
|
8027
8032
|
position: "apart",
|
|
8028
8033
|
children: ["Advanced", /* @__PURE__ */ r(v, {
|
|
@@ -8032,7 +8037,7 @@ function Xu({
|
|
|
8032
8037
|
children: "Use variables in reference lines"
|
|
8033
8038
|
})]
|
|
8034
8039
|
})
|
|
8035
|
-
}), /* @__PURE__ */ r(
|
|
8040
|
+
}), /* @__PURE__ */ r(M.Panel, {
|
|
8036
8041
|
children: /* @__PURE__ */ c(V, {
|
|
8037
8042
|
defaultValue: "variables",
|
|
8038
8043
|
children: [/* @__PURE__ */ c(V.List, {
|
|
@@ -8082,9 +8087,9 @@ const Ku = {
|
|
|
8082
8087
|
displayName: "Cartesian Chart",
|
|
8083
8088
|
migrator: new Ju(),
|
|
8084
8089
|
name: "cartesian",
|
|
8085
|
-
viewRender:
|
|
8090
|
+
viewRender: Ru,
|
|
8086
8091
|
configRender: Xu,
|
|
8087
|
-
createConfig: () =>
|
|
8092
|
+
createConfig: () => Pn
|
|
8088
8093
|
}, Zu = {
|
|
8089
8094
|
legend: {
|
|
8090
8095
|
show: !0,
|
|
@@ -8114,11 +8119,11 @@ function ed(t, e) {
|
|
|
8114
8119
|
};
|
|
8115
8120
|
return $.merge({}, Zu, i);
|
|
8116
8121
|
}
|
|
8117
|
-
const
|
|
8122
|
+
const Mn = {
|
|
8118
8123
|
series_name_key: "name",
|
|
8119
8124
|
dimensions: []
|
|
8120
8125
|
};
|
|
8121
|
-
ne.use([
|
|
8126
|
+
ne.use([Oo, Ke, Ze, et, qe]);
|
|
8122
8127
|
function td({
|
|
8123
8128
|
context: t
|
|
8124
8129
|
}) {
|
|
@@ -8127,8 +8132,8 @@ function td({
|
|
|
8127
8132
|
} = G(t.instanceData, "config"), {
|
|
8128
8133
|
width: n,
|
|
8129
8134
|
height: a
|
|
8130
|
-
} = t.viewport, i = t.data, o = A(() => ed(Ge({}, e,
|
|
8131
|
-
return !n || !a || !e ||
|
|
8135
|
+
} = t.viewport, i = t.data, o = A(() => ed(Ge({}, e, Mn), i), [e, i]);
|
|
8136
|
+
return !n || !a || !e || Mr(e == null ? void 0 : e.dimensions) ? null : /* @__PURE__ */ r(q, {
|
|
8132
8137
|
children: /* @__PURE__ */ r(Le, {
|
|
8133
8138
|
echarts: ne,
|
|
8134
8139
|
option: o,
|
|
@@ -8207,7 +8212,7 @@ function nd({
|
|
|
8207
8212
|
control: t,
|
|
8208
8213
|
render: ({
|
|
8209
8214
|
field: i
|
|
8210
|
-
}) => /* @__PURE__ */ r(
|
|
8215
|
+
}) => /* @__PURE__ */ r(Re, {
|
|
8211
8216
|
...i
|
|
8212
8217
|
})
|
|
8213
8218
|
})]
|
|
@@ -8286,7 +8291,7 @@ function id({
|
|
|
8286
8291
|
const e = t.data, {
|
|
8287
8292
|
value: n,
|
|
8288
8293
|
set: a
|
|
8289
|
-
} = G(t.instanceData, "config"), i = A(() => Ge({}, n,
|
|
8294
|
+
} = G(t.instanceData, "config"), i = A(() => Ge({}, n, Mn), [n]), {
|
|
8290
8295
|
dimensions: o,
|
|
8291
8296
|
series_name_key: s
|
|
8292
8297
|
} = i, l = A(() => ({
|
|
@@ -8340,7 +8345,7 @@ function id({
|
|
|
8340
8345
|
name: "series_name_key",
|
|
8341
8346
|
control: u,
|
|
8342
8347
|
render: ({
|
|
8343
|
-
field:
|
|
8348
|
+
field: R
|
|
8344
8349
|
}) => /* @__PURE__ */ r(Y, {
|
|
8345
8350
|
label: "Series Name Field",
|
|
8346
8351
|
required: !0,
|
|
@@ -8348,7 +8353,7 @@ function id({
|
|
|
8348
8353
|
sx: {
|
|
8349
8354
|
flex: 1
|
|
8350
8355
|
},
|
|
8351
|
-
...
|
|
8356
|
+
...R
|
|
8352
8357
|
})
|
|
8353
8358
|
})
|
|
8354
8359
|
}), /* @__PURE__ */ r(rd, {
|
|
@@ -8377,7 +8382,7 @@ const sd = {
|
|
|
8377
8382
|
name: "radar",
|
|
8378
8383
|
viewRender: td,
|
|
8379
8384
|
configRender: id,
|
|
8380
|
-
createConfig: () =>
|
|
8385
|
+
createConfig: () => Mn
|
|
8381
8386
|
};
|
|
8382
8387
|
function ld(t, e) {
|
|
8383
8388
|
switch (t.config.method) {
|
|
@@ -8636,7 +8641,7 @@ const An = {
|
|
|
8636
8641
|
y_axis_data_key: "value"
|
|
8637
8642
|
}
|
|
8638
8643
|
};
|
|
8639
|
-
ne.use([
|
|
8644
|
+
ne.use([Pt, Zr, Ke, Ze, et, qe]);
|
|
8640
8645
|
ne.registerTransform(ea.regression);
|
|
8641
8646
|
function pd({
|
|
8642
8647
|
context: t
|
|
@@ -8814,7 +8819,7 @@ function fd({
|
|
|
8814
8819
|
control: t,
|
|
8815
8820
|
render: ({
|
|
8816
8821
|
field: i
|
|
8817
|
-
}) => /* @__PURE__ */ r(
|
|
8822
|
+
}) => /* @__PURE__ */ r(Re, {
|
|
8818
8823
|
...i
|
|
8819
8824
|
})
|
|
8820
8825
|
})]
|
|
@@ -8865,14 +8870,14 @@ function gd({
|
|
|
8865
8870
|
size: 20
|
|
8866
8871
|
})
|
|
8867
8872
|
})]
|
|
8868
|
-
}), /* @__PURE__ */ c(
|
|
8873
|
+
}), /* @__PURE__ */ c(M, {
|
|
8869
8874
|
multiple: !0,
|
|
8870
8875
|
defaultValue: ["Axis", "Regression"],
|
|
8871
|
-
children: [/* @__PURE__ */ c(
|
|
8876
|
+
children: [/* @__PURE__ */ c(M.Item, {
|
|
8872
8877
|
value: "Axis",
|
|
8873
|
-
children: [/* @__PURE__ */ r(
|
|
8878
|
+
children: [/* @__PURE__ */ r(M.Control, {
|
|
8874
8879
|
children: "Axis"
|
|
8875
|
-
}), /* @__PURE__ */ c(
|
|
8880
|
+
}), /* @__PURE__ */ c(M.Panel, {
|
|
8876
8881
|
children: [/* @__PURE__ */ c(g, {
|
|
8877
8882
|
grow: !0,
|
|
8878
8883
|
noWrap: !0,
|
|
@@ -8921,11 +8926,11 @@ function gd({
|
|
|
8921
8926
|
})
|
|
8922
8927
|
})]
|
|
8923
8928
|
})]
|
|
8924
|
-
}), /* @__PURE__ */ c(
|
|
8929
|
+
}), /* @__PURE__ */ c(M.Item, {
|
|
8925
8930
|
value: "Regression",
|
|
8926
|
-
children: [/* @__PURE__ */ r(
|
|
8931
|
+
children: [/* @__PURE__ */ r(M.Control, {
|
|
8927
8932
|
children: "Regression Line"
|
|
8928
|
-
}), /* @__PURE__ */ r(
|
|
8933
|
+
}), /* @__PURE__ */ r(M.Panel, {
|
|
8929
8934
|
children: /* @__PURE__ */ r(fd, {
|
|
8930
8935
|
control: o,
|
|
8931
8936
|
watch: l,
|
|
@@ -8995,7 +9000,7 @@ function xd(t) {
|
|
|
8995
9000
|
});
|
|
8996
9001
|
return n.unshift(`<strong>${e[0].name}</strong>`), n.join("<br />");
|
|
8997
9002
|
}
|
|
8998
|
-
ne.use([Jr, Kr,
|
|
9003
|
+
ne.use([Jr, Kr, Pt, Ke, Ze, et, qe]);
|
|
8999
9004
|
function Cd({
|
|
9000
9005
|
context: t
|
|
9001
9006
|
}) {
|
|
@@ -9013,10 +9018,10 @@ function Cd({
|
|
|
9013
9018
|
barData: p,
|
|
9014
9019
|
lineData: h
|
|
9015
9020
|
} = A(() => {
|
|
9016
|
-
const m = n.map((
|
|
9017
|
-
const W = Q === 0 ? 0 :
|
|
9018
|
-
return
|
|
9019
|
-
}, []).map((
|
|
9021
|
+
const m = n.map((R) => [R[o.data_key], Number(R[s])]).sort((R, O) => O[1] - R[1]), y = m.reduce((R, O) => R + O[1], 0), I = m.reduce((R, O, Q) => {
|
|
9022
|
+
const W = Q === 0 ? 0 : R[Q - 1][1];
|
|
9023
|
+
return R.push([O[0], W + O[1]]), R;
|
|
9024
|
+
}, []).map((R) => [R[0], R[1] / y]);
|
|
9020
9025
|
return {
|
|
9021
9026
|
barData: m,
|
|
9022
9027
|
lineData: I
|
|
@@ -9211,7 +9216,7 @@ function wd({
|
|
|
9211
9216
|
control: o,
|
|
9212
9217
|
render: ({
|
|
9213
9218
|
field: m
|
|
9214
|
-
}) => /* @__PURE__ */ r(
|
|
9219
|
+
}) => /* @__PURE__ */ r(Re, {
|
|
9215
9220
|
...m
|
|
9216
9221
|
})
|
|
9217
9222
|
})]
|
|
@@ -9245,7 +9250,7 @@ function wd({
|
|
|
9245
9250
|
control: o,
|
|
9246
9251
|
render: ({
|
|
9247
9252
|
field: m
|
|
9248
|
-
}) => /* @__PURE__ */ r(
|
|
9253
|
+
}) => /* @__PURE__ */ r(Re, {
|
|
9249
9254
|
...m
|
|
9250
9255
|
})
|
|
9251
9256
|
})]
|
|
@@ -9320,16 +9325,16 @@ const _d = {
|
|
|
9320
9325
|
value: t.value,
|
|
9321
9326
|
type: "single",
|
|
9322
9327
|
category: "basic"
|
|
9323
|
-
})),
|
|
9328
|
+
})), Dd = [Js, Ks, tl, el, Zs, nl], Ha = {
|
|
9324
9329
|
id: "dashboard",
|
|
9325
9330
|
version: rl,
|
|
9326
9331
|
manifest: {
|
|
9327
9332
|
viz: [cn, rc, ul, Xc, tu, iu, mu, _d, Ku, sd, vd],
|
|
9328
|
-
color: [...Id, ...
|
|
9333
|
+
color: [...Id, ...Dd]
|
|
9329
9334
|
}
|
|
9330
|
-
}, lt = new il(),
|
|
9335
|
+
}, lt = new il(), Xa = () => {
|
|
9331
9336
|
try {
|
|
9332
|
-
lt.install(
|
|
9337
|
+
lt.install(Ha);
|
|
9333
9338
|
} catch {
|
|
9334
9339
|
}
|
|
9335
9340
|
const t = new Us(lt), e = new al(lt);
|
|
@@ -9338,12 +9343,12 @@ const _d = {
|
|
|
9338
9343
|
vizManager: t,
|
|
9339
9344
|
colorManager: e
|
|
9340
9345
|
};
|
|
9341
|
-
}, Te =
|
|
9346
|
+
}, Te = Ui(Xa());
|
|
9342
9347
|
try {
|
|
9343
|
-
lt.install(
|
|
9348
|
+
lt.install(Ha);
|
|
9344
9349
|
} catch {
|
|
9345
9350
|
}
|
|
9346
|
-
function
|
|
9351
|
+
function Rd(t, e) {
|
|
9347
9352
|
const {
|
|
9348
9353
|
value: n,
|
|
9349
9354
|
set: a
|
|
@@ -9363,7 +9368,7 @@ function kd(t) {
|
|
|
9363
9368
|
config: e,
|
|
9364
9369
|
setConfig: n,
|
|
9365
9370
|
commit: a
|
|
9366
|
-
} =
|
|
9371
|
+
} = Rd(t, {
|
|
9367
9372
|
urlTemplate: "",
|
|
9368
9373
|
openInNewTab: !0
|
|
9369
9374
|
});
|
|
@@ -9394,7 +9399,7 @@ function kd(t) {
|
|
|
9394
9399
|
});
|
|
9395
9400
|
}
|
|
9396
9401
|
function Td(t) {
|
|
9397
|
-
return
|
|
9402
|
+
return ao(t, (n) => {
|
|
9398
9403
|
if (typeof n == "string")
|
|
9399
9404
|
return encodeURIComponent(n);
|
|
9400
9405
|
});
|
|
@@ -9433,13 +9438,13 @@ async function Fd(t, e) {
|
|
|
9433
9438
|
const n = await e.operationData.getItem("config"), a = Nr(n.template || "");
|
|
9434
9439
|
console.log("run with payload", t), console.log(a(t));
|
|
9435
9440
|
}
|
|
9436
|
-
const
|
|
9441
|
+
const Pd = {
|
|
9437
9442
|
displayName: "console.log (debug)",
|
|
9438
9443
|
id: "builtin:op:debug",
|
|
9439
9444
|
configRender: Od,
|
|
9440
9445
|
run: Fd
|
|
9441
|
-
}, $n = [
|
|
9442
|
-
class
|
|
9446
|
+
}, $n = [Pd, zd];
|
|
9447
|
+
class Md {
|
|
9443
9448
|
constructor(e, n = $n) {
|
|
9444
9449
|
E(this, "attachments");
|
|
9445
9450
|
this.operations = n;
|
|
@@ -9543,12 +9548,12 @@ class Ad {
|
|
|
9543
9548
|
return await this.attachments.getInstance(e);
|
|
9544
9549
|
}
|
|
9545
9550
|
}
|
|
9546
|
-
class
|
|
9551
|
+
class Ja {
|
|
9547
9552
|
constructor(e, n, a) {
|
|
9548
9553
|
E(this, "operationManager");
|
|
9549
9554
|
E(this, "triggerManager");
|
|
9550
9555
|
E(this, "attachments");
|
|
9551
|
-
this.operationManager = new
|
|
9556
|
+
this.operationManager = new Md(e, a), this.triggerManager = new Ad(e, n);
|
|
9552
9557
|
const i = async (o) => {
|
|
9553
9558
|
const { id: s, triggerRef: l, operationRef: u } = await o.getItem(null);
|
|
9554
9559
|
return {
|
|
@@ -9603,7 +9608,7 @@ function Ld(t, e) {
|
|
|
9603
9608
|
a(i);
|
|
9604
9609
|
}, [e]), n;
|
|
9605
9610
|
}
|
|
9606
|
-
const qd =
|
|
9611
|
+
const qd = D(({
|
|
9607
9612
|
item: t,
|
|
9608
9613
|
manager: e,
|
|
9609
9614
|
instance: n,
|
|
@@ -9672,10 +9677,10 @@ const qd = R(({
|
|
|
9672
9677
|
data: e
|
|
9673
9678
|
} = he(), n = t.viz, {
|
|
9674
9679
|
vizManager: a
|
|
9675
|
-
} =
|
|
9680
|
+
} = Me(Te), i = t.json, o = Pe(() => a.getOrCreateInstance(i), [a, n.type]), s = Pe(() => new Ja(o, a.resolveComponent(n.type), $n), [o, n.type]);
|
|
9676
9681
|
return K(() => o.instanceData.watchItem(
|
|
9677
9682
|
null,
|
|
9678
|
-
|
|
9683
|
+
io((l) => {
|
|
9679
9684
|
t.viz.setConf(l);
|
|
9680
9685
|
}, 100, {
|
|
9681
9686
|
leading: !1,
|
|
@@ -9693,7 +9698,7 @@ const qd = R(({
|
|
|
9693
9698
|
return /* @__PURE__ */ r($d, {
|
|
9694
9699
|
...t
|
|
9695
9700
|
});
|
|
9696
|
-
}, Bd =
|
|
9701
|
+
}, Bd = D(() => {
|
|
9697
9702
|
const {
|
|
9698
9703
|
panel: t
|
|
9699
9704
|
} = he(), [e, n] = x.useState(t.description), a = t.description !== e, i = x.useCallback(() => {
|
|
@@ -9730,7 +9735,7 @@ const qd = R(({
|
|
|
9730
9735
|
p: "0"
|
|
9731
9736
|
})]
|
|
9732
9737
|
});
|
|
9733
|
-
}), Gd =
|
|
9738
|
+
}), Gd = D(() => {
|
|
9734
9739
|
const {
|
|
9735
9740
|
panel: t
|
|
9736
9741
|
} = he(), {
|
|
@@ -9743,7 +9748,7 @@ const qd = R(({
|
|
|
9743
9748
|
onChange: (n) => e.border.setEnabled(n.currentTarget.checked)
|
|
9744
9749
|
})
|
|
9745
9750
|
});
|
|
9746
|
-
}), Wd =
|
|
9751
|
+
}), Wd = D(() => {
|
|
9747
9752
|
const {
|
|
9748
9753
|
panel: {
|
|
9749
9754
|
title: t,
|
|
@@ -9774,7 +9779,7 @@ const qd = R(({
|
|
|
9774
9779
|
flexShrink: 0
|
|
9775
9780
|
},
|
|
9776
9781
|
children: [/* @__PURE__ */ r(g, {
|
|
9777
|
-
children: /* @__PURE__ */ r(
|
|
9782
|
+
children: /* @__PURE__ */ r(xa, {})
|
|
9778
9783
|
}), /* @__PURE__ */ r(g, {
|
|
9779
9784
|
grow: !0,
|
|
9780
9785
|
position: "center",
|
|
@@ -9798,7 +9803,7 @@ const qd = R(({
|
|
|
9798
9803
|
})]
|
|
9799
9804
|
})
|
|
9800
9805
|
});
|
|
9801
|
-
}), Qd =
|
|
9806
|
+
}), Qd = D(() => {
|
|
9802
9807
|
const {
|
|
9803
9808
|
panel: t
|
|
9804
9809
|
} = he(), {
|
|
@@ -9869,7 +9874,7 @@ function Yd() {
|
|
|
9869
9874
|
})]
|
|
9870
9875
|
});
|
|
9871
9876
|
}
|
|
9872
|
-
const Ud =
|
|
9877
|
+
const Ud = D(function() {
|
|
9873
9878
|
const e = ee(), {
|
|
9874
9879
|
panel: {
|
|
9875
9880
|
queryID: n,
|
|
@@ -9898,13 +9903,13 @@ const Ud = R(function() {
|
|
|
9898
9903
|
flexGrow: 1
|
|
9899
9904
|
}
|
|
9900
9905
|
})]
|
|
9901
|
-
}), /* @__PURE__ */ r(
|
|
9906
|
+
}), /* @__PURE__ */ r(ha, {
|
|
9902
9907
|
id: n
|
|
9903
9908
|
})]
|
|
9904
9909
|
});
|
|
9905
9910
|
});
|
|
9906
|
-
function
|
|
9907
|
-
const a =
|
|
9911
|
+
function Ka(t, e, n) {
|
|
9912
|
+
const a = Pe(() => /* @__PURE__ */ new Set(), []), i = t.resolveComponent(e.type), [o, s] = de(!1);
|
|
9908
9913
|
return ft(async () => {
|
|
9909
9914
|
if (await i.migrator.needMigration(e) && !a.has(e.id))
|
|
9910
9915
|
try {
|
|
@@ -9923,7 +9928,7 @@ function Hd({
|
|
|
9923
9928
|
const {
|
|
9924
9929
|
vizManager: n,
|
|
9925
9930
|
panel: a
|
|
9926
|
-
} = e, i = n.getOrCreateInstance(a), o =
|
|
9931
|
+
} = e, i = n.getOrCreateInstance(a), o = Ka(n, i, () => {
|
|
9927
9932
|
vn({
|
|
9928
9933
|
title: `${a.title} - Updated`,
|
|
9929
9934
|
message: "Your plugin configuration has been migrated to the latest version"
|
|
@@ -9944,7 +9949,7 @@ function Xd(t) {
|
|
|
9944
9949
|
vizManager: e,
|
|
9945
9950
|
panel: n
|
|
9946
9951
|
} = t, a = e.getOrCreateInstance(n);
|
|
9947
|
-
return
|
|
9952
|
+
return Ka(e, a, () => {
|
|
9948
9953
|
vn({
|
|
9949
9954
|
title: `${n.title} - Updated`,
|
|
9950
9955
|
message: "Your plugin configuration has been migrated to the latest version"
|
|
@@ -9958,7 +9963,7 @@ function Xd(t) {
|
|
|
9958
9963
|
function Jd(t, e) {
|
|
9959
9964
|
const {
|
|
9960
9965
|
vizManager: n
|
|
9961
|
-
} =
|
|
9966
|
+
} = Me(Te), {
|
|
9962
9967
|
panel: {
|
|
9963
9968
|
viz: a,
|
|
9964
9969
|
title: i,
|
|
@@ -9986,13 +9991,13 @@ function Jd(t, e) {
|
|
|
9986
9991
|
return console.info(re(h, "message")), null;
|
|
9987
9992
|
}
|
|
9988
9993
|
}
|
|
9989
|
-
function
|
|
9994
|
+
function Dr(t, e, n, a) {
|
|
9990
9995
|
switch (a.conf, a.type) {
|
|
9991
9996
|
default:
|
|
9992
9997
|
return null;
|
|
9993
9998
|
}
|
|
9994
9999
|
}
|
|
9995
|
-
const Kd = ["rich-text"],
|
|
10000
|
+
const Kd = ["rich-text"], Za = D(function({
|
|
9996
10001
|
height: e,
|
|
9997
10002
|
viz: n,
|
|
9998
10003
|
data: a,
|
|
@@ -10011,10 +10016,10 @@ const Kd = ["rich-text"], Ka = R(function({
|
|
|
10011
10016
|
className: "viz-root",
|
|
10012
10017
|
ref: o,
|
|
10013
10018
|
children: /* @__PURE__ */ r(Xe, {
|
|
10014
|
-
children:
|
|
10019
|
+
children: Dr(s, l, a, n)
|
|
10015
10020
|
})
|
|
10016
10021
|
});
|
|
10017
|
-
const f = p ||
|
|
10022
|
+
const f = p || Dr(s, l, a, n);
|
|
10018
10023
|
return i ? /* @__PURE__ */ r("div", {
|
|
10019
10024
|
className: "viz-root",
|
|
10020
10025
|
style: {
|
|
@@ -10048,7 +10053,7 @@ function Zd() {
|
|
|
10048
10053
|
viz: n
|
|
10049
10054
|
}
|
|
10050
10055
|
} = he();
|
|
10051
|
-
return /* @__PURE__ */ r(
|
|
10056
|
+
return /* @__PURE__ */ r(Za, {
|
|
10052
10057
|
viz: n,
|
|
10053
10058
|
data: t,
|
|
10054
10059
|
loading: e,
|
|
@@ -10059,7 +10064,7 @@ const un = [];
|
|
|
10059
10064
|
function eh() {
|
|
10060
10065
|
const {
|
|
10061
10066
|
vizManager: t
|
|
10062
|
-
} =
|
|
10067
|
+
} = Me(Te);
|
|
10063
10068
|
return A(() => t.availableVizList.map((e) => ({
|
|
10064
10069
|
value: e.name,
|
|
10065
10070
|
label: e.displayName
|
|
@@ -10088,7 +10093,7 @@ function nh() {
|
|
|
10088
10093
|
}
|
|
10089
10094
|
} = he(), {
|
|
10090
10095
|
vizManager: h
|
|
10091
|
-
} =
|
|
10096
|
+
} = Me(Te), f = {
|
|
10092
10097
|
title: n,
|
|
10093
10098
|
description: i,
|
|
10094
10099
|
viz: e,
|
|
@@ -10120,7 +10125,7 @@ function rh() {
|
|
|
10120
10125
|
}
|
|
10121
10126
|
} = he(), [n, a] = Qr(e.type), i = e.type !== n, {
|
|
10122
10127
|
vizManager: o
|
|
10123
|
-
} =
|
|
10128
|
+
} = Me(Te), s = x.useCallback(() => {
|
|
10124
10129
|
if (!i)
|
|
10125
10130
|
return;
|
|
10126
10131
|
const y = th(o, n);
|
|
@@ -10152,7 +10157,7 @@ function rh() {
|
|
|
10152
10157
|
size: 20
|
|
10153
10158
|
})
|
|
10154
10159
|
})
|
|
10155
|
-
}), f, !f && /* @__PURE__ */ r(
|
|
10160
|
+
}), f, !f && /* @__PURE__ */ r(Wi, {
|
|
10156
10161
|
minRows: 20,
|
|
10157
10162
|
label: "Config",
|
|
10158
10163
|
value: JSON.stringify(e.conf, null, 2),
|
|
@@ -10188,7 +10193,7 @@ function ah() {
|
|
|
10188
10193
|
})]
|
|
10189
10194
|
});
|
|
10190
10195
|
}
|
|
10191
|
-
const ih =
|
|
10196
|
+
const ih = D(function({
|
|
10192
10197
|
opened: e,
|
|
10193
10198
|
close: n
|
|
10194
10199
|
}) {
|
|
@@ -10272,10 +10277,10 @@ const ih = R(function({
|
|
|
10272
10277
|
})
|
|
10273
10278
|
})
|
|
10274
10279
|
});
|
|
10275
|
-
}), oh =
|
|
10280
|
+
}), oh = D(({
|
|
10276
10281
|
view: t
|
|
10277
10282
|
}) => {
|
|
10278
|
-
const e = ee(), n =
|
|
10283
|
+
const e = ee(), n = Qi(), [a, i] = x.useState(!1), o = () => i(!0), s = () => i(!1), {
|
|
10279
10284
|
panel: l
|
|
10280
10285
|
} = he(), {
|
|
10281
10286
|
id: u,
|
|
@@ -10287,7 +10292,7 @@ const ih = R(function({
|
|
|
10287
10292
|
inFullScreen: y
|
|
10288
10293
|
} = x.useContext(xn), I = () => {
|
|
10289
10294
|
t.panels.duplicateByID(u);
|
|
10290
|
-
},
|
|
10295
|
+
}, R = () => n.openConfirmModal({
|
|
10291
10296
|
title: "Delete this panel?",
|
|
10292
10297
|
labels: {
|
|
10293
10298
|
confirm: "Confirm",
|
|
@@ -10331,7 +10336,7 @@ const ih = R(function({
|
|
|
10331
10336
|
children: "Download Data"
|
|
10332
10337
|
}), !y && /* @__PURE__ */ r(ue.Item, {
|
|
10333
10338
|
onClick: O,
|
|
10334
|
-
icon: /* @__PURE__ */ r(
|
|
10339
|
+
icon: /* @__PURE__ */ r(mo, {
|
|
10335
10340
|
size: 14
|
|
10336
10341
|
}),
|
|
10337
10342
|
children: "Full Screen"
|
|
@@ -10347,13 +10352,13 @@ const ih = R(function({
|
|
|
10347
10352
|
children: "Settings"
|
|
10348
10353
|
}), /* @__PURE__ */ r(ue.Item, {
|
|
10349
10354
|
onClick: I,
|
|
10350
|
-
icon: /* @__PURE__ */ r(
|
|
10355
|
+
icon: /* @__PURE__ */ r(fo, {
|
|
10351
10356
|
size: 14
|
|
10352
10357
|
}),
|
|
10353
10358
|
children: "Duplicate"
|
|
10354
10359
|
}), /* @__PURE__ */ r(ue.Item, {
|
|
10355
10360
|
color: "red",
|
|
10356
|
-
onClick:
|
|
10361
|
+
onClick: R,
|
|
10357
10362
|
icon: /* @__PURE__ */ r(J, {
|
|
10358
10363
|
size: 14
|
|
10359
10364
|
}),
|
|
@@ -10368,7 +10373,7 @@ const ih = R(function({
|
|
|
10368
10373
|
})]
|
|
10369
10374
|
});
|
|
10370
10375
|
});
|
|
10371
|
-
const sh =
|
|
10376
|
+
const sh = D(function() {
|
|
10372
10377
|
const {
|
|
10373
10378
|
panel: e
|
|
10374
10379
|
} = he(), {
|
|
@@ -10401,7 +10406,7 @@ const ch = {
|
|
|
10401
10406
|
"&:hover": {
|
|
10402
10407
|
borderColor: "#ced4da"
|
|
10403
10408
|
}
|
|
10404
|
-
}, Nn =
|
|
10409
|
+
}, Nn = D(function({
|
|
10405
10410
|
panel: e,
|
|
10406
10411
|
view: n
|
|
10407
10412
|
}) {
|
|
@@ -10430,10 +10435,10 @@ const ch = {
|
|
|
10430
10435
|
height: 28,
|
|
10431
10436
|
zIndex: 310
|
|
10432
10437
|
},
|
|
10433
|
-
children: /* @__PURE__ */ r(
|
|
10438
|
+
children: /* @__PURE__ */ r(xa, {})
|
|
10434
10439
|
}), /* @__PURE__ */ r(oh, {
|
|
10435
10440
|
view: n
|
|
10436
|
-
}), /* @__PURE__ */ r(sh, {}), /* @__PURE__ */ r(
|
|
10441
|
+
}), /* @__PURE__ */ r(sh, {}), /* @__PURE__ */ r(Za, {
|
|
10437
10442
|
viz: e.viz,
|
|
10438
10443
|
data: i,
|
|
10439
10444
|
loading: s,
|
|
@@ -10441,7 +10446,7 @@ const ch = {
|
|
|
10441
10446
|
})]
|
|
10442
10447
|
})
|
|
10443
10448
|
});
|
|
10444
|
-
}),
|
|
10449
|
+
}), ei = D(function({
|
|
10445
10450
|
view: e,
|
|
10446
10451
|
panel: n,
|
|
10447
10452
|
exitFullScreen: a
|
|
@@ -10463,7 +10468,7 @@ const ch = {
|
|
|
10463
10468
|
variant: "default",
|
|
10464
10469
|
size: "sm",
|
|
10465
10470
|
onClick: a,
|
|
10466
|
-
leftIcon: /* @__PURE__ */ r(
|
|
10471
|
+
leftIcon: /* @__PURE__ */ r(go, {
|
|
10467
10472
|
size: 20
|
|
10468
10473
|
}),
|
|
10469
10474
|
children: "Exit fullscreen"
|
|
@@ -10482,7 +10487,7 @@ const ch = {
|
|
|
10482
10487
|
})]
|
|
10483
10488
|
});
|
|
10484
10489
|
});
|
|
10485
|
-
function
|
|
10490
|
+
function ti(t) {
|
|
10486
10491
|
const [e, n] = x.useState(null), a = x.useCallback((l) => {
|
|
10487
10492
|
n(l);
|
|
10488
10493
|
}, []), i = x.useCallback(() => {
|
|
@@ -10495,7 +10500,7 @@ function ei(t) {
|
|
|
10495
10500
|
fullScreenPanel: o
|
|
10496
10501
|
};
|
|
10497
10502
|
}
|
|
10498
|
-
function
|
|
10503
|
+
function ni() {
|
|
10499
10504
|
x.useEffect(() => {
|
|
10500
10505
|
const t = Mo(".dashboard-sticky-area", {
|
|
10501
10506
|
useStickyClasses: !0,
|
|
@@ -10523,7 +10528,7 @@ const dh = x.forwardRef(({
|
|
|
10523
10528
|
}
|
|
10524
10529
|
},
|
|
10525
10530
|
variant: "transparent",
|
|
10526
|
-
children: /* @__PURE__ */ r(
|
|
10531
|
+
children: /* @__PURE__ */ r(bo, {
|
|
10527
10532
|
size: 16
|
|
10528
10533
|
})
|
|
10529
10534
|
})), hh = x.forwardRef(({
|
|
@@ -10545,10 +10550,10 @@ const dh = x.forwardRef(({
|
|
|
10545
10550
|
},
|
|
10546
10551
|
variant: "transparent",
|
|
10547
10552
|
...e,
|
|
10548
|
-
children: /* @__PURE__ */ r(
|
|
10553
|
+
children: /* @__PURE__ */ r(vo, {
|
|
10549
10554
|
size: 16
|
|
10550
10555
|
})
|
|
10551
|
-
})), ph = na(ta), mh =
|
|
10556
|
+
})), ph = na(ta), mh = D(function({
|
|
10552
10557
|
view: e,
|
|
10553
10558
|
className: n = "layout",
|
|
10554
10559
|
rowHeight: a = 10,
|
|
@@ -10586,7 +10591,7 @@ const dh = x.forwardRef(({
|
|
|
10586
10591
|
})]
|
|
10587
10592
|
}, l.id))
|
|
10588
10593
|
});
|
|
10589
|
-
}), fh = na(ta), gh =
|
|
10594
|
+
}), fh = na(ta), gh = D(function({
|
|
10590
10595
|
view: e,
|
|
10591
10596
|
className: n = "layout",
|
|
10592
10597
|
rowHeight: a = 10
|
|
@@ -10605,11 +10610,11 @@ const dh = x.forwardRef(({
|
|
|
10605
10610
|
})
|
|
10606
10611
|
}, i.id))
|
|
10607
10612
|
});
|
|
10608
|
-
}), bh =
|
|
10613
|
+
}), bh = D(({
|
|
10609
10614
|
children: t
|
|
10610
10615
|
}) => /* @__PURE__ */ r(q, {
|
|
10611
10616
|
children: t
|
|
10612
|
-
})), vh =
|
|
10617
|
+
})), vh = D(({
|
|
10613
10618
|
children: t,
|
|
10614
10619
|
view: e
|
|
10615
10620
|
}) => /* @__PURE__ */ r(Ce, {
|
|
@@ -10644,23 +10649,23 @@ const dh = x.forwardRef(({
|
|
|
10644
10649
|
withinPortal: !1,
|
|
10645
10650
|
transitionDuration: 0,
|
|
10646
10651
|
children: t
|
|
10647
|
-
})), yh =
|
|
10652
|
+
})), yh = D(({
|
|
10648
10653
|
view: t,
|
|
10649
10654
|
children: e
|
|
10650
10655
|
}) => {
|
|
10651
10656
|
switch (t.type) {
|
|
10652
|
-
case
|
|
10657
|
+
case De.Modal:
|
|
10653
10658
|
return /* @__PURE__ */ r(vh, {
|
|
10654
10659
|
view: t,
|
|
10655
10660
|
children: e
|
|
10656
10661
|
});
|
|
10657
|
-
case
|
|
10662
|
+
case De.Division:
|
|
10658
10663
|
default:
|
|
10659
10664
|
return /* @__PURE__ */ r(bh, {
|
|
10660
10665
|
children: e
|
|
10661
10666
|
});
|
|
10662
10667
|
}
|
|
10663
|
-
}), xh =
|
|
10668
|
+
}), xh = D(function({
|
|
10664
10669
|
view: e,
|
|
10665
10670
|
saveDashboardChanges: n
|
|
10666
10671
|
}) {
|
|
@@ -10669,8 +10674,8 @@ const dh = x.forwardRef(({
|
|
|
10669
10674
|
exitFullScreen: i,
|
|
10670
10675
|
inFullScreen: o,
|
|
10671
10676
|
fullScreenPanel: s
|
|
10672
|
-
} =
|
|
10673
|
-
return
|
|
10677
|
+
} = ti(e);
|
|
10678
|
+
return ni(), /* @__PURE__ */ r(xn.Provider, {
|
|
10674
10679
|
value: {
|
|
10675
10680
|
viewPanelInFullScreen: a,
|
|
10676
10681
|
inFullScreen: o
|
|
@@ -10682,11 +10687,11 @@ const dh = x.forwardRef(({
|
|
|
10682
10687
|
position: "relative",
|
|
10683
10688
|
height: "100%"
|
|
10684
10689
|
},
|
|
10685
|
-
children: [o && /* @__PURE__ */ r(
|
|
10690
|
+
children: [o && /* @__PURE__ */ r(ei, {
|
|
10686
10691
|
view: e,
|
|
10687
10692
|
panel: s,
|
|
10688
10693
|
exitFullScreen: i
|
|
10689
|
-
}), !o && /* @__PURE__ */ r(
|
|
10694
|
+
}), !o && /* @__PURE__ */ r(ya, {
|
|
10690
10695
|
saveChanges: n
|
|
10691
10696
|
}), /* @__PURE__ */ r(yh, {
|
|
10692
10697
|
view: e,
|
|
@@ -10694,7 +10699,7 @@ const dh = x.forwardRef(({
|
|
|
10694
10699
|
className: "dashboard-sticky-parent",
|
|
10695
10700
|
children: [/* @__PURE__ */ r(q, {
|
|
10696
10701
|
className: "dashboard-sticky-area",
|
|
10697
|
-
children: /* @__PURE__ */ r(
|
|
10702
|
+
children: /* @__PURE__ */ r(ca, {
|
|
10698
10703
|
view: e
|
|
10699
10704
|
})
|
|
10700
10705
|
}), /* @__PURE__ */ r(q, {
|
|
@@ -10711,7 +10716,7 @@ const dh = x.forwardRef(({
|
|
|
10711
10716
|
})]
|
|
10712
10717
|
})
|
|
10713
10718
|
});
|
|
10714
|
-
}), Ch =
|
|
10719
|
+
}), Ch = D(function({
|
|
10715
10720
|
view: e
|
|
10716
10721
|
}) {
|
|
10717
10722
|
const {
|
|
@@ -10719,8 +10724,8 @@ const dh = x.forwardRef(({
|
|
|
10719
10724
|
exitFullScreen: a,
|
|
10720
10725
|
inFullScreen: i,
|
|
10721
10726
|
fullScreenPanel: o
|
|
10722
|
-
} =
|
|
10723
|
-
return
|
|
10727
|
+
} = ti(e);
|
|
10728
|
+
return ni(), /* @__PURE__ */ r(xn.Provider, {
|
|
10724
10729
|
value: {
|
|
10725
10730
|
viewPanelInFullScreen: n,
|
|
10726
10731
|
inFullScreen: i
|
|
@@ -10731,15 +10736,15 @@ const dh = x.forwardRef(({
|
|
|
10731
10736
|
position: "relative",
|
|
10732
10737
|
height: "100%"
|
|
10733
10738
|
},
|
|
10734
|
-
children: [i && /* @__PURE__ */ r(
|
|
10739
|
+
children: [i && /* @__PURE__ */ r(ei, {
|
|
10735
10740
|
view: e,
|
|
10736
10741
|
panel: o,
|
|
10737
10742
|
exitFullScreen: a
|
|
10738
10743
|
}), !i && /* @__PURE__ */ c(q, {
|
|
10739
10744
|
className: "dashboard-sticky-area",
|
|
10740
|
-
children: [/* @__PURE__ */ r(
|
|
10745
|
+
children: [/* @__PURE__ */ r(ya, {
|
|
10741
10746
|
saveChanges: $.noop
|
|
10742
|
-
}), /* @__PURE__ */ r(
|
|
10747
|
+
}), /* @__PURE__ */ r(ca, {
|
|
10743
10748
|
view: e
|
|
10744
10749
|
})]
|
|
10745
10750
|
}), /* @__PURE__ */ r(gh, {
|
|
@@ -10747,7 +10752,7 @@ const dh = x.forwardRef(({
|
|
|
10747
10752
|
})]
|
|
10748
10753
|
})
|
|
10749
10754
|
});
|
|
10750
|
-
}),
|
|
10755
|
+
}), ri = b.model({
|
|
10751
10756
|
label: b.string,
|
|
10752
10757
|
value: b.string
|
|
10753
10758
|
}).actions((t) => ({
|
|
@@ -10757,11 +10762,11 @@ const dh = x.forwardRef(({
|
|
|
10757
10762
|
setValue(e) {
|
|
10758
10763
|
t.value = e;
|
|
10759
10764
|
}
|
|
10760
|
-
})),
|
|
10765
|
+
})), ai = b.model("FilterConfigModel_Select", {
|
|
10761
10766
|
required: b.boolean,
|
|
10762
10767
|
default_value: b.string,
|
|
10763
|
-
static_options: b.optional(b.array(
|
|
10764
|
-
options_query:
|
|
10768
|
+
static_options: b.optional(b.array(ri), []),
|
|
10769
|
+
options_query: fa
|
|
10765
10770
|
}).actions((t) => ({
|
|
10766
10771
|
addStaticOption(e) {
|
|
10767
10772
|
t.static_options.push(e);
|
|
@@ -10778,7 +10783,7 @@ const dh = x.forwardRef(({
|
|
|
10778
10783
|
setOptionsQuery(e) {
|
|
10779
10784
|
t.options_query = e;
|
|
10780
10785
|
}
|
|
10781
|
-
})), wh = () =>
|
|
10786
|
+
})), wh = () => ai.create({
|
|
10782
10787
|
required: !1,
|
|
10783
10788
|
default_value: "",
|
|
10784
10789
|
static_options: [],
|
|
@@ -10787,10 +10792,10 @@ const dh = x.forwardRef(({
|
|
|
10787
10792
|
key: "",
|
|
10788
10793
|
sql: ""
|
|
10789
10794
|
}
|
|
10790
|
-
}),
|
|
10795
|
+
}), ii = b.model("FilterConfigModel_MultiSelect", {
|
|
10791
10796
|
default_value: b.optional(b.array(b.string), []),
|
|
10792
|
-
static_options: b.optional(b.array(
|
|
10793
|
-
options_query:
|
|
10797
|
+
static_options: b.optional(b.array(ri), []),
|
|
10798
|
+
options_query: fa
|
|
10794
10799
|
}).actions((t) => ({
|
|
10795
10800
|
addStaticOption(e) {
|
|
10796
10801
|
t.static_options.push(e);
|
|
@@ -10804,7 +10809,7 @@ const dh = x.forwardRef(({
|
|
|
10804
10809
|
setOptionsQuery(e) {
|
|
10805
10810
|
t.options_query = e;
|
|
10806
10811
|
}
|
|
10807
|
-
})), Sh = () =>
|
|
10812
|
+
})), Sh = () => ii.create({
|
|
10808
10813
|
default_value: [],
|
|
10809
10814
|
static_options: [],
|
|
10810
10815
|
options_query: {
|
|
@@ -10812,17 +10817,18 @@ const dh = x.forwardRef(({
|
|
|
10812
10817
|
key: "",
|
|
10813
10818
|
sql: ""
|
|
10814
10819
|
}
|
|
10815
|
-
}),
|
|
10820
|
+
}), oi = b.model("FilterConfigModel_Checkbox", {
|
|
10816
10821
|
default_value: b.boolean
|
|
10817
10822
|
}).actions((t) => ({
|
|
10818
10823
|
setDefaultValue(e) {
|
|
10819
10824
|
t.default_value = e;
|
|
10820
10825
|
}
|
|
10821
|
-
})), _h = () =>
|
|
10826
|
+
})), _h = () => oi.create({
|
|
10822
10827
|
default_value: !1
|
|
10823
|
-
}),
|
|
10828
|
+
}), Ih = b.model("FilterConfigModel_DateRange", {
|
|
10824
10829
|
required: b.boolean,
|
|
10825
10830
|
inputFormat: b.enumeration("DateRangeInputFormat", ["YYYY", "YYYY-MM", "YYYY-MM-DD"]),
|
|
10831
|
+
default_value: b.optional(b.array(b.union(b.Date, b.null)), [null, null]),
|
|
10826
10832
|
clearable: b.boolean
|
|
10827
10833
|
}).actions((t) => ({
|
|
10828
10834
|
setRequired(e) {
|
|
@@ -10833,12 +10839,29 @@ const dh = x.forwardRef(({
|
|
|
10833
10839
|
},
|
|
10834
10840
|
setInputFormat(e) {
|
|
10835
10841
|
t.inputFormat = e;
|
|
10842
|
+
},
|
|
10843
|
+
setDefaultValue(e) {
|
|
10844
|
+
t.default_value.length = 0, t.default_value.push(...e);
|
|
10836
10845
|
}
|
|
10837
|
-
})),
|
|
10846
|
+
})), si = b.snapshotProcessor(Ih, {
|
|
10847
|
+
preProcessor({ default_value: t, ...e }) {
|
|
10848
|
+
return {
|
|
10849
|
+
...e,
|
|
10850
|
+
default_value: t.map((n) => n === null ? null : new Date(n))
|
|
10851
|
+
};
|
|
10852
|
+
},
|
|
10853
|
+
postProcessor({ default_value: t, ...e }) {
|
|
10854
|
+
return {
|
|
10855
|
+
...e,
|
|
10856
|
+
default_value: t.map((n) => typeof n == "number" ? new Date(n).toISOString() : "")
|
|
10857
|
+
};
|
|
10858
|
+
}
|
|
10859
|
+
}), Dh = () => si.create({
|
|
10838
10860
|
required: !1,
|
|
10839
10861
|
inputFormat: "YYYY-MM-DD",
|
|
10840
|
-
clearable: !1
|
|
10841
|
-
|
|
10862
|
+
clearable: !1,
|
|
10863
|
+
default_value: [null, null]
|
|
10864
|
+
}), Rr = b.model("FilterModel", {
|
|
10842
10865
|
id: b.identifier,
|
|
10843
10866
|
key: b.string,
|
|
10844
10867
|
label: b.string,
|
|
@@ -10852,11 +10875,11 @@ const dh = x.forwardRef(({
|
|
|
10852
10875
|
me.DateRange
|
|
10853
10876
|
]),
|
|
10854
10877
|
config: b.union(
|
|
10855
|
-
ri,
|
|
10856
10878
|
ai,
|
|
10857
|
-
fa,
|
|
10858
10879
|
ii,
|
|
10859
|
-
|
|
10880
|
+
ga,
|
|
10881
|
+
oi,
|
|
10882
|
+
si
|
|
10860
10883
|
)
|
|
10861
10884
|
}).actions((t) => ({
|
|
10862
10885
|
setKey(e) {
|
|
@@ -10877,23 +10900,23 @@ const dh = x.forwardRef(({
|
|
|
10877
10900
|
t.config = Sh();
|
|
10878
10901
|
break;
|
|
10879
10902
|
case me.TextInput:
|
|
10880
|
-
t.config =
|
|
10903
|
+
t.config = ba();
|
|
10881
10904
|
break;
|
|
10882
10905
|
case me.Checkbox:
|
|
10883
10906
|
t.config = _h();
|
|
10884
10907
|
break;
|
|
10885
10908
|
case me.DateRange:
|
|
10886
|
-
t.config =
|
|
10909
|
+
t.config = Dh();
|
|
10887
10910
|
break;
|
|
10888
10911
|
}
|
|
10889
10912
|
t.type = e;
|
|
10890
10913
|
},
|
|
10891
10914
|
setVisibleInViewsIDs(e) {
|
|
10892
|
-
|
|
10915
|
+
t.visibleInViewsIDs.length = 0, t.visibleInViewsIDs.push(...e);
|
|
10893
10916
|
}
|
|
10894
10917
|
})), Rh = b.model("FiltersModel", {
|
|
10895
|
-
original: b.optional(b.array(
|
|
10896
|
-
current: b.optional(b.array(
|
|
10918
|
+
original: b.optional(b.array(Rr), []),
|
|
10919
|
+
current: b.optional(b.array(Rr), []),
|
|
10897
10920
|
values: b.optional(b.frozen(), {})
|
|
10898
10921
|
}).views((t) => ({
|
|
10899
10922
|
get changed() {
|
|
@@ -10938,11 +10961,14 @@ const dh = x.forwardRef(({
|
|
|
10938
10961
|
return t.values[e];
|
|
10939
10962
|
}
|
|
10940
10963
|
}));
|
|
10941
|
-
function
|
|
10942
|
-
|
|
10943
|
-
|
|
10944
|
-
return n
|
|
10945
|
-
}
|
|
10964
|
+
function kh(t) {
|
|
10965
|
+
return t === void 0 ? t : Array.isArray(t) ? t.map((e) => {
|
|
10966
|
+
const n = new Date(e);
|
|
10967
|
+
return n != null ? n : e;
|
|
10968
|
+
}) : t;
|
|
10969
|
+
}
|
|
10970
|
+
function Th(t) {
|
|
10971
|
+
const e = t.reduce((n, a) => (n[a.key] = kh(a.config.default_value), n), {});
|
|
10946
10972
|
return {
|
|
10947
10973
|
original: t,
|
|
10948
10974
|
current: t,
|
|
@@ -11004,12 +11030,12 @@ var jn = { exports: {} };
|
|
|
11004
11030
|
} : function(p, h, f, m) {
|
|
11005
11031
|
if (m = m || open("", "_blank"), m && (m.document.title = m.document.body.innerText = "downloading..."), typeof p == "string")
|
|
11006
11032
|
return a(p, h, f);
|
|
11007
|
-
var y = p.type === "application/octet-stream", I = /constructor/i.test(s.HTMLElement) || s.safari,
|
|
11008
|
-
if ((
|
|
11033
|
+
var y = p.type === "application/octet-stream", I = /constructor/i.test(s.HTMLElement) || s.safari, R = /CriOS\/[\d]+/.test(navigator.userAgent);
|
|
11034
|
+
if ((R || y && I || l) && typeof FileReader < "u") {
|
|
11009
11035
|
var O = new FileReader();
|
|
11010
11036
|
O.onloadend = function() {
|
|
11011
11037
|
var ge = O.result;
|
|
11012
|
-
ge =
|
|
11038
|
+
ge = R ? ge : ge.replace(/^data:[^;]*;/, "data:attachment/file;"), m ? m.location.href = ge : location = ge, m = null;
|
|
11013
11039
|
}, O.readAsDataURL(p);
|
|
11014
11040
|
} else {
|
|
11015
11041
|
var Q = s.URL || s.webkitURL, W = Q.createObjectURL(p);
|
|
@@ -11021,19 +11047,19 @@ var jn = { exports: {} };
|
|
|
11021
11047
|
s.saveAs = u.saveAs = u, t.exports = u;
|
|
11022
11048
|
});
|
|
11023
11049
|
})(jn);
|
|
11024
|
-
function
|
|
11050
|
+
function Vh(t, e) {
|
|
11025
11051
|
const n = new Blob([e], { type: "text/csv" });
|
|
11026
11052
|
jn.exports.saveAs(n, `${t}.csv`);
|
|
11027
11053
|
}
|
|
11028
|
-
function
|
|
11029
|
-
const e = new
|
|
11054
|
+
function zh(t) {
|
|
11055
|
+
const e = new Ao();
|
|
11030
11056
|
t.forEach(({ id: n, data: a }) => {
|
|
11031
|
-
e.file(`${n}.csv`,
|
|
11057
|
+
e.file(`${n}.csv`, li(a));
|
|
11032
11058
|
}), e.generateAsync({ type: "blob" }).then((n) => {
|
|
11033
11059
|
jn.exports.saveAs(n, "dashboard_data.zip");
|
|
11034
11060
|
});
|
|
11035
11061
|
}
|
|
11036
|
-
function
|
|
11062
|
+
function li(t) {
|
|
11037
11063
|
if (!Array.isArray(t) || t.length === 0)
|
|
11038
11064
|
return "";
|
|
11039
11065
|
const e = [], n = Object.keys(t[0]);
|
|
@@ -11043,7 +11069,7 @@ function si(t) {
|
|
|
11043
11069
|
}), e.join(`
|
|
11044
11070
|
`);
|
|
11045
11071
|
}
|
|
11046
|
-
const
|
|
11072
|
+
const ci = b.model("QueryModel", {
|
|
11047
11073
|
id: b.string,
|
|
11048
11074
|
type: b.enumeration("DataSourceType", [xe.Postgresql, xe.MySQL, xe.HTTP]),
|
|
11049
11075
|
key: b.string,
|
|
@@ -11056,9 +11082,9 @@ const li = b.model("QueryModel", {
|
|
|
11056
11082
|
const { id: e, type: n, key: a, sql: i } = t;
|
|
11057
11083
|
return { id: e, type: n, key: a, sql: i };
|
|
11058
11084
|
}
|
|
11059
|
-
})),
|
|
11085
|
+
})), Eh = b.compose(
|
|
11060
11086
|
"QueryModel",
|
|
11061
|
-
|
|
11087
|
+
ci,
|
|
11062
11088
|
b.model({
|
|
11063
11089
|
state: b.optional(b.enumeration(["idle", "loading", "error"]), "idle"),
|
|
11064
11090
|
data: b.optional(b.array(b.frozen()), []),
|
|
@@ -11067,7 +11093,7 @@ const li = b.model("QueryModel", {
|
|
|
11067
11093
|
).views((t) => ({
|
|
11068
11094
|
get formattedSQL() {
|
|
11069
11095
|
const { context: e, sqlSnippets: n, filterValues: a } = mr(t).payloadForSQL;
|
|
11070
|
-
return
|
|
11096
|
+
return sa(t.sql, e, n, a);
|
|
11071
11097
|
}
|
|
11072
11098
|
})).actions((t) => ({
|
|
11073
11099
|
setID(e) {
|
|
@@ -11082,12 +11108,12 @@ const li = b.model("QueryModel", {
|
|
|
11082
11108
|
setSQL(e) {
|
|
11083
11109
|
t.sql = e;
|
|
11084
11110
|
},
|
|
11085
|
-
fetchData:
|
|
11111
|
+
fetchData: xo(function* () {
|
|
11086
11112
|
if (!!t.valid) {
|
|
11087
11113
|
t.state = "loading";
|
|
11088
11114
|
try {
|
|
11089
11115
|
const e = t.id, { context: n, sqlSnippets: a, filterValues: i } = mr(t).payloadForSQL;
|
|
11090
|
-
t.data = yield*
|
|
11116
|
+
t.data = yield* Co(
|
|
11091
11117
|
Bo({
|
|
11092
11118
|
context: n,
|
|
11093
11119
|
sqlSnippets: a,
|
|
@@ -11107,7 +11133,7 @@ const li = b.model("QueryModel", {
|
|
|
11107
11133
|
})
|
|
11108
11134
|
})).actions((t) => ({
|
|
11109
11135
|
afterCreate() {
|
|
11110
|
-
|
|
11136
|
+
wo(
|
|
11111
11137
|
t,
|
|
11112
11138
|
bn(() => `${t.id}--${t.key}--${t.type}--${t.formattedSQL}`, t.fetchData, {
|
|
11113
11139
|
fireImmediately: !0,
|
|
@@ -11115,9 +11141,9 @@ const li = b.model("QueryModel", {
|
|
|
11115
11141
|
})
|
|
11116
11142
|
);
|
|
11117
11143
|
}
|
|
11118
|
-
})),
|
|
11119
|
-
original: b.optional(b.array(
|
|
11120
|
-
current: b.optional(b.array(
|
|
11144
|
+
})), Oh = b.model("QueriesModel", {
|
|
11145
|
+
original: b.optional(b.array(ci), []),
|
|
11146
|
+
current: b.optional(b.array(Eh), [])
|
|
11121
11147
|
}).views((t) => ({
|
|
11122
11148
|
get changed() {
|
|
11123
11149
|
return t.original.length !== t.current.length ? !0 : t.original.some((e, n) => !$.isEqual(e.configurations, t.current[n].configurations));
|
|
@@ -11162,7 +11188,7 @@ const li = b.model("QueryModel", {
|
|
|
11162
11188
|
id: n,
|
|
11163
11189
|
data: a.toJSON()
|
|
11164
11190
|
}));
|
|
11165
|
-
|
|
11191
|
+
zh(e);
|
|
11166
11192
|
},
|
|
11167
11193
|
downloadDataByQueryID(e) {
|
|
11168
11194
|
const n = t.findByID(e);
|
|
@@ -11170,8 +11196,8 @@ const li = b.model("QueryModel", {
|
|
|
11170
11196
|
console.log(`[downloadDataByQueryID] query by ID[${e}] not found`);
|
|
11171
11197
|
return;
|
|
11172
11198
|
}
|
|
11173
|
-
const { id: a, data: i } = n, o =
|
|
11174
|
-
|
|
11199
|
+
const { id: a, data: i } = n, o = li(i);
|
|
11200
|
+
Vh(a, o);
|
|
11175
11201
|
},
|
|
11176
11202
|
refetchDataByQueryID(e) {
|
|
11177
11203
|
const n = t.findByID(e);
|
|
@@ -11191,7 +11217,7 @@ const li = b.model("QueryModel", {
|
|
|
11191
11217
|
setValue(e) {
|
|
11192
11218
|
t.value = e;
|
|
11193
11219
|
}
|
|
11194
|
-
})),
|
|
11220
|
+
})), Fh = b.model("SQLSnippetsModel", {
|
|
11195
11221
|
original: b.optional(b.array(kr), []),
|
|
11196
11222
|
current: b.optional(b.array(kr), [])
|
|
11197
11223
|
}).views((t) => ({
|
|
@@ -11214,7 +11240,7 @@ const li = b.model("QueryModel", {
|
|
|
11214
11240
|
replaceByIndex(e, n) {
|
|
11215
11241
|
t.current.splice(e, 1, n);
|
|
11216
11242
|
}
|
|
11217
|
-
})),
|
|
11243
|
+
})), Ph = b.model("ContextModel", {
|
|
11218
11244
|
current: b.optional(b.frozen(), {})
|
|
11219
11245
|
}).views((t) => ({
|
|
11220
11246
|
get keys() {
|
|
@@ -11233,7 +11259,7 @@ const li = b.model("QueryModel", {
|
|
|
11233
11259
|
set(e, n) {
|
|
11234
11260
|
t.current[e] = n;
|
|
11235
11261
|
}
|
|
11236
|
-
})),
|
|
11262
|
+
})), Mh = b.model("PanelLayoutModel", {
|
|
11237
11263
|
x: b.number,
|
|
11238
11264
|
y: b.number,
|
|
11239
11265
|
w: b.number,
|
|
@@ -11257,7 +11283,7 @@ const li = b.model("QueryModel", {
|
|
|
11257
11283
|
const { x: n, y: a, w: i, h: o, moved: s } = e;
|
|
11258
11284
|
t.x = n, t.y = a, t.w = i, t.h = o, t.moved = !!s, t.static = !!e.static;
|
|
11259
11285
|
}
|
|
11260
|
-
})),
|
|
11286
|
+
})), Ah = b.model("PanelStyleBorderModel", {
|
|
11261
11287
|
enabled: b.boolean
|
|
11262
11288
|
}).views((t) => ({
|
|
11263
11289
|
get json() {
|
|
@@ -11270,8 +11296,8 @@ const li = b.model("QueryModel", {
|
|
|
11270
11296
|
setEnabled(e) {
|
|
11271
11297
|
t.enabled = e;
|
|
11272
11298
|
}
|
|
11273
|
-
})),
|
|
11274
|
-
border:
|
|
11299
|
+
})), Lh = b.model("PanelStyleModel", {
|
|
11300
|
+
border: Ah
|
|
11275
11301
|
}).views((t) => ({
|
|
11276
11302
|
get json() {
|
|
11277
11303
|
const { border: e } = t;
|
|
@@ -11279,7 +11305,7 @@ const li = b.model("QueryModel", {
|
|
|
11279
11305
|
border: e.json
|
|
11280
11306
|
};
|
|
11281
11307
|
}
|
|
11282
|
-
})).actions((t) => ({})),
|
|
11308
|
+
})).actions((t) => ({})), qh = b.model("PanelVizModel", {
|
|
11283
11309
|
type: b.string,
|
|
11284
11310
|
conf: b.frozen()
|
|
11285
11311
|
}).views((t) => ({
|
|
@@ -11300,10 +11326,10 @@ const li = b.model("QueryModel", {
|
|
|
11300
11326
|
id: b.string,
|
|
11301
11327
|
title: b.string,
|
|
11302
11328
|
description: b.string,
|
|
11303
|
-
layout:
|
|
11329
|
+
layout: Mh,
|
|
11304
11330
|
queryID: b.string,
|
|
11305
|
-
viz:
|
|
11306
|
-
style:
|
|
11331
|
+
viz: qh,
|
|
11332
|
+
style: Lh
|
|
11307
11333
|
}).views((t) => ({
|
|
11308
11334
|
get json() {
|
|
11309
11335
|
const { id: e, title: n, description: a, queryID: i } = t;
|
|
@@ -11330,7 +11356,7 @@ const li = b.model("QueryModel", {
|
|
|
11330
11356
|
setQueryID(e) {
|
|
11331
11357
|
t.queryID = e;
|
|
11332
11358
|
}
|
|
11333
|
-
})).actions((t) => ({})),
|
|
11359
|
+
})).actions((t) => ({})), $h = b.model("PanelsModel", {
|
|
11334
11360
|
original: b.optional(b.array(Tr), []),
|
|
11335
11361
|
current: b.optional(b.array(Tr), [])
|
|
11336
11362
|
}).views((t) => ({
|
|
@@ -11418,7 +11444,7 @@ const li = b.model("QueryModel", {
|
|
|
11418
11444
|
name: b.string,
|
|
11419
11445
|
type: b.string,
|
|
11420
11446
|
config: b.frozen(),
|
|
11421
|
-
panels:
|
|
11447
|
+
panels: $h
|
|
11422
11448
|
}).views((t) => ({
|
|
11423
11449
|
get json() {
|
|
11424
11450
|
const { id: e, name: n, type: a, config: i } = t;
|
|
@@ -11435,7 +11461,7 @@ const li = b.model("QueryModel", {
|
|
|
11435
11461
|
t.name = e;
|
|
11436
11462
|
},
|
|
11437
11463
|
setType(e) {
|
|
11438
|
-
t.type !== e && (e ===
|
|
11464
|
+
t.type !== e && (e === De.Modal ? t.config = {
|
|
11439
11465
|
width: "600px",
|
|
11440
11466
|
height: "400px"
|
|
11441
11467
|
} : t.config = {}, t.type = e);
|
|
@@ -11449,7 +11475,7 @@ const li = b.model("QueryModel", {
|
|
|
11449
11475
|
[e]: n
|
|
11450
11476
|
};
|
|
11451
11477
|
}
|
|
11452
|
-
})).actions((t) => ({})),
|
|
11478
|
+
})).actions((t) => ({})), ui = b.model("ViewsModel", {
|
|
11453
11479
|
original: b.optional(b.array(Vr), []),
|
|
11454
11480
|
current: b.optional(b.array(Vr), []),
|
|
11455
11481
|
visibleViewIDs: b.array(b.string),
|
|
@@ -11530,7 +11556,7 @@ const li = b.model("QueryModel", {
|
|
|
11530
11556
|
})).actions((t) => ({
|
|
11531
11557
|
addARandomNewView() {
|
|
11532
11558
|
const e = fe();
|
|
11533
|
-
t.addANewView(e,
|
|
11559
|
+
t.addANewView(e, De.Division, {}), t.setIDOfVIE(e);
|
|
11534
11560
|
},
|
|
11535
11561
|
removeVIE() {
|
|
11536
11562
|
t.current.length !== 1 && (t.removeByID(t.idOfVIE), t.setIDOfVIE(t.current[0].id));
|
|
@@ -11540,7 +11566,7 @@ const li = b.model("QueryModel", {
|
|
|
11540
11566
|
n !== -1 && t.visibleViewIDs.splice(n, 1);
|
|
11541
11567
|
}
|
|
11542
11568
|
}));
|
|
11543
|
-
function
|
|
11569
|
+
function Nh(t) {
|
|
11544
11570
|
const e = t.length > 0 ? [t[0].id] : [], n = t.length > 0 ? t[0].id : "", a = t.map((i) => ({
|
|
11545
11571
|
...i,
|
|
11546
11572
|
panels: {
|
|
@@ -11548,21 +11574,21 @@ function qh(t) {
|
|
|
11548
11574
|
current: i.panels
|
|
11549
11575
|
}
|
|
11550
11576
|
}));
|
|
11551
|
-
return
|
|
11577
|
+
return ui.create({
|
|
11552
11578
|
original: a,
|
|
11553
11579
|
current: a,
|
|
11554
11580
|
visibleViewIDs: e,
|
|
11555
11581
|
idOfVIE: n
|
|
11556
11582
|
});
|
|
11557
11583
|
}
|
|
11558
|
-
const
|
|
11584
|
+
const jh = b.model({
|
|
11559
11585
|
id: b.identifier,
|
|
11560
11586
|
name: b.string,
|
|
11561
11587
|
filters: Rh,
|
|
11562
|
-
queries:
|
|
11563
|
-
sqlSnippets:
|
|
11564
|
-
views:
|
|
11565
|
-
context:
|
|
11588
|
+
queries: Oh,
|
|
11589
|
+
sqlSnippets: Fh,
|
|
11590
|
+
views: ui,
|
|
11591
|
+
context: Ph
|
|
11566
11592
|
}).views((t) => ({
|
|
11567
11593
|
get payloadForSQL() {
|
|
11568
11594
|
return {
|
|
@@ -11595,11 +11621,11 @@ const $h = b.model({
|
|
|
11595
11621
|
return (a = (n = t.queries.findByID(e)) == null ? void 0 : n.error) != null ? a : [];
|
|
11596
11622
|
}
|
|
11597
11623
|
}));
|
|
11598
|
-
function
|
|
11599
|
-
return
|
|
11624
|
+
function di({ id: t, name: e, filters: n, views: a, definition: { queries: i, sqlSnippets: o } }, s) {
|
|
11625
|
+
return jh.create({
|
|
11600
11626
|
id: t,
|
|
11601
11627
|
name: e,
|
|
11602
|
-
filters:
|
|
11628
|
+
filters: Th(n),
|
|
11603
11629
|
queries: {
|
|
11604
11630
|
original: i,
|
|
11605
11631
|
current: i
|
|
@@ -11609,10 +11635,10 @@ function ui({ id: t, name: e, filters: n, views: a, definition: { queries: i, sq
|
|
|
11609
11635
|
current: o
|
|
11610
11636
|
},
|
|
11611
11637
|
context: s,
|
|
11612
|
-
views:
|
|
11638
|
+
views: Nh(a)
|
|
11613
11639
|
});
|
|
11614
11640
|
}
|
|
11615
|
-
const
|
|
11641
|
+
const wp = D(function({
|
|
11616
11642
|
context: e,
|
|
11617
11643
|
dashboard: n,
|
|
11618
11644
|
update: a,
|
|
@@ -11620,7 +11646,7 @@ const xp = R(function({
|
|
|
11620
11646
|
config: o
|
|
11621
11647
|
}) {
|
|
11622
11648
|
je.baseURL !== o.apiBaseURL && (je.baseURL = o.apiBaseURL);
|
|
11623
|
-
const [s, l] = x.useState(!1), u = x.useMemo(() =>
|
|
11649
|
+
const [s, l] = x.useState(!1), u = x.useMemo(() => di(n, e), [n]);
|
|
11624
11650
|
x.useEffect(() => {
|
|
11625
11651
|
u.context.replace(e);
|
|
11626
11652
|
}, [e]);
|
|
@@ -11635,7 +11661,7 @@ const xp = R(function({
|
|
|
11635
11661
|
}
|
|
11636
11662
|
};
|
|
11637
11663
|
await a(I);
|
|
11638
|
-
}, h =
|
|
11664
|
+
}, h = Pe(Xa, []);
|
|
11639
11665
|
return /* @__PURE__ */ r(Er, {
|
|
11640
11666
|
children: /* @__PURE__ */ r(aa, {
|
|
11641
11667
|
value: u,
|
|
@@ -11663,14 +11689,14 @@ const xp = R(function({
|
|
|
11663
11689
|
})
|
|
11664
11690
|
});
|
|
11665
11691
|
});
|
|
11666
|
-
function
|
|
11692
|
+
function Sp({
|
|
11667
11693
|
context: t,
|
|
11668
11694
|
dashboard: e,
|
|
11669
11695
|
className: n = "dashboard",
|
|
11670
11696
|
config: a
|
|
11671
11697
|
}) {
|
|
11672
11698
|
je.baseURL !== a.apiBaseURL && (je.baseURL = a.apiBaseURL);
|
|
11673
|
-
const i = x.useMemo(() =>
|
|
11699
|
+
const i = x.useMemo(() => di(e, t), [e]);
|
|
11674
11700
|
return x.useEffect(() => {
|
|
11675
11701
|
i.context.replace(t);
|
|
11676
11702
|
}, [t]), /* @__PURE__ */ r(Er, {
|
|
@@ -11694,29 +11720,29 @@ function Cp({
|
|
|
11694
11720
|
});
|
|
11695
11721
|
}
|
|
11696
11722
|
export {
|
|
11697
|
-
|
|
11698
|
-
|
|
11723
|
+
Ph as ContextModel,
|
|
11724
|
+
wp as Dashboard,
|
|
11699
11725
|
Ss as DashboardFilterType,
|
|
11700
11726
|
ws as DashboardMode,
|
|
11701
|
-
|
|
11702
|
-
|
|
11727
|
+
De as EViewComponentType,
|
|
11728
|
+
Rr as FilterModel,
|
|
11703
11729
|
Rh as FiltersModel,
|
|
11704
11730
|
Se as LayoutStateContext,
|
|
11705
11731
|
xh as MainDashboardView,
|
|
11706
11732
|
aa as ModelContextProvider,
|
|
11707
11733
|
Nn as Panel,
|
|
11708
11734
|
Xo as PanelContextProvider,
|
|
11709
|
-
|
|
11710
|
-
|
|
11711
|
-
|
|
11735
|
+
Oh as QueriesModel,
|
|
11736
|
+
Eh as QueryModel,
|
|
11737
|
+
Sp as ReadOnlyDashboard,
|
|
11712
11738
|
Ch as ReadOnlyDashboardView,
|
|
11713
11739
|
kr as SQLSnippetModel,
|
|
11714
|
-
|
|
11740
|
+
Fh as SQLSnippetsModel,
|
|
11715
11741
|
Vr as ViewModel,
|
|
11716
|
-
|
|
11717
|
-
|
|
11718
|
-
|
|
11719
|
-
|
|
11742
|
+
ui as ViewsModel,
|
|
11743
|
+
di as createDashboardModel,
|
|
11744
|
+
Nh as createDashboardViewsModel,
|
|
11745
|
+
Th as getInitialFiltersPayload,
|
|
11720
11746
|
ee as useModelContext,
|
|
11721
11747
|
he as usePanelContext
|
|
11722
11748
|
};
|