@devtable/dashboard 10.38.0 → 10.39.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/api-caller/index.d.ts +3 -1
- package/dist/api-caller/request.d.ts +9 -3
- package/dist/dashboard.es.js +155 -116
- package/dist/dashboard.umd.js +45 -45
- package/dist/shared/api-client/default-api-client.d.ts +4 -1
- package/dist/shared/api-client/facade-api-client.d.ts +4 -1
- package/dist/shared/api-client/types.d.ts +6 -1
- package/dist/stats.html +1 -1
- package/dist/utils/http-query.d.ts +4 -3
- package/package.json +1 -1
package/dist/dashboard.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
var ch = Object.defineProperty;
|
|
2
2
|
var dh = (e, t, n) => t in e ? ch(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var Y = (e, t, n) => (dh(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
|
-
import R, { useState as Q, useEffect as W, useCallback as Je, useMemo as z, forwardRef as ve, createElement as si, useContext as
|
|
5
|
-
import { Box as P, Select as O, Stack as S, Text as C, Group as x, TextInput as $, Button as I, Switch as Ye, NumberInput as ie, Divider as A, Table as St, ActionIcon as U, MultiSelect as gr, Paper as Jo, Code as _s, Modal as De, Tabs as g, LoadingOverlay as Ln, Alert as Zo, NativeSelect as xl, useMantineTheme as vl, ColorInput as ea, ColorSwatch as no, Slider as hh, Overlay as
|
|
4
|
+
import R, { useState as Q, useEffect as W, useCallback as Je, useMemo as z, forwardRef as ve, createElement as si, useContext as rn, useRef as li, createContext as yl, memo as uh } from "react";
|
|
5
|
+
import { Box as P, Select as O, Stack as S, Text as C, Group as x, TextInput as $, Button as I, Switch as Ye, NumberInput as ie, Divider as A, Table as St, ActionIcon as U, MultiSelect as gr, Paper as Jo, Code as _s, Modal as De, Tabs as g, LoadingOverlay as Ln, Alert as Zo, NativeSelect as xl, useMantineTheme as vl, ColorInput as ea, ColorSwatch as no, Slider as hh, Overlay as on, Checkbox as pe, Center as $n, CheckIcon as ph, MANTINE_SIZES as mh, SimpleGrid as pn, Tooltip as Fe, SegmentedControl as fh, HoverCard as tt, Anchor as ro, Textarea as gh, Collapse as ta, Mark as bh, createStyles as Jn, Popover as Bi, Flex as fn, Badge as br, CloseButton as wl, Menu as ue, Affix as yh, Header as xh, ThemeIcon as qi, List as Cs, UnstyledButton as vh, Navbar as Xt, JsonInput as _l, Drawer as wh, Radio as Ss, Skeleton as ks, NavLink as io, Pagination as _h, AppShell as Cl } from "@mantine/core";
|
|
6
6
|
import { useModals as At, ModalsProvider as Sl } from "@mantine/modals";
|
|
7
7
|
import { useBoolean as Qe, useCreation as $t, useAsyncEffect as Tr, useRequest as Dn, useWhyDidYouUpdate as kl, useLatest as Ts, usePrevious as Ch } from "ahooks";
|
|
8
|
-
import { observable as Tl, runInAction as hr, toJS as
|
|
8
|
+
import { observable as Tl, runInAction as hr, toJS as an, reaction as ft, makeAutoObservable as Dr } from "mobx";
|
|
9
9
|
import { observer as D } from "mobx-react-lite";
|
|
10
10
|
import * as Sh from "crypto-js";
|
|
11
11
|
import kh from "crypto-js";
|
|
@@ -16,7 +16,7 @@ import * as Oh from "d3-array";
|
|
|
16
16
|
import { quantile as Wr } from "d3-array";
|
|
17
17
|
import * as jr from "mathjs";
|
|
18
18
|
import { faker as Fh } from "@faker-js/faker";
|
|
19
|
-
import
|
|
19
|
+
import Zt from "axios";
|
|
20
20
|
import Ds from "eventemitter2";
|
|
21
21
|
import yr, { random as ci } from "chroma-js";
|
|
22
22
|
import rt from "echarts-for-react/lib/core";
|
|
@@ -58,7 +58,7 @@ import { DatePickerInput as Wp } from "@mantine/dates";
|
|
|
58
58
|
import jp, { Option as Gp } from "rc-select";
|
|
59
59
|
import Hp, { SHOW_PARENT as Yp } from "rc-tree-select";
|
|
60
60
|
import dc, { WidthProvider as uc } from "react-grid-layout";
|
|
61
|
-
import { types as b, cast as Vt, getParent as Ee, getRoot as Ae, addDisposer as Lt, isAlive as zs, flow as Yn, toGenerator as wn, clone as Qp, getSnapshot as
|
|
61
|
+
import { types as b, cast as Vt, getParent as Ee, getRoot as Ae, addDisposer as Lt, isAlive as zs, flow as Yn, toGenerator as wn, clone as Qp, getSnapshot as en, applySnapshot as st, addMiddleware as Up, getType as Kp, detach as ao, castToSnapshot as hc } from "mobx-state-tree";
|
|
62
62
|
import { arrayToTree as Xp } from "performant-array-to-tree";
|
|
63
63
|
import { AsyncParser as Jp } from "@json2csv/whatwg";
|
|
64
64
|
import { saveAs as ua } from "file-saver";
|
|
@@ -266,7 +266,7 @@ function sm() {
|
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
268
|
var ir = M.ReactCurrentDispatcher, Pn;
|
|
269
|
-
function
|
|
269
|
+
function ln(_, F, G) {
|
|
270
270
|
{
|
|
271
271
|
if (Pn === void 0)
|
|
272
272
|
try {
|
|
@@ -279,16 +279,16 @@ function sm() {
|
|
|
279
279
|
` + Pn + _;
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
|
-
var vn = !1,
|
|
282
|
+
var vn = !1, cn;
|
|
283
283
|
{
|
|
284
284
|
var Vn = typeof WeakMap == "function" ? WeakMap : Map;
|
|
285
|
-
|
|
285
|
+
cn = new Vn();
|
|
286
286
|
}
|
|
287
287
|
function Nn(_, F) {
|
|
288
288
|
if (!_ || vn)
|
|
289
289
|
return "";
|
|
290
290
|
{
|
|
291
|
-
var G =
|
|
291
|
+
var G = cn.get(_);
|
|
292
292
|
if (G !== void 0)
|
|
293
293
|
return G;
|
|
294
294
|
}
|
|
@@ -343,7 +343,7 @@ function sm() {
|
|
|
343
343
|
if (Oe--, Ve--, Ve < 0 || le[Oe] !== et[Ve]) {
|
|
344
344
|
var wt = `
|
|
345
345
|
` + le[Oe].replace(" at new ", " at ");
|
|
346
|
-
return _.displayName && wt.includes("<anonymous>") && (wt = wt.replace("<anonymous>", _.displayName)), typeof _ == "function" &&
|
|
346
|
+
return _.displayName && wt.includes("<anonymous>") && (wt = wt.replace("<anonymous>", _.displayName)), typeof _ == "function" && cn.set(_, wt), wt;
|
|
347
347
|
}
|
|
348
348
|
while (Oe >= 1 && Ve >= 0);
|
|
349
349
|
break;
|
|
@@ -352,8 +352,8 @@ function sm() {
|
|
|
352
352
|
} finally {
|
|
353
353
|
vn = !1, ir.current = Se, Ri(), Error.prepareStackTrace = fe;
|
|
354
354
|
}
|
|
355
|
-
var qn = _ ? _.displayName || _.name : "", ws = qn ?
|
|
356
|
-
return typeof _ == "function" &&
|
|
355
|
+
var qn = _ ? _.displayName || _.name : "", ws = qn ? ln(qn) : "";
|
|
356
|
+
return typeof _ == "function" && cn.set(_, ws), ws;
|
|
357
357
|
}
|
|
358
358
|
function or(_, F, G) {
|
|
359
359
|
return Nn(_, !1);
|
|
@@ -362,29 +362,29 @@ function sm() {
|
|
|
362
362
|
var F = _.prototype;
|
|
363
363
|
return !!(F && F.isReactComponent);
|
|
364
364
|
}
|
|
365
|
-
function
|
|
365
|
+
function dn(_, F, G) {
|
|
366
366
|
if (_ == null)
|
|
367
367
|
return "";
|
|
368
368
|
if (typeof _ == "function")
|
|
369
369
|
return Nn(_, ar(_));
|
|
370
370
|
if (typeof _ == "string")
|
|
371
|
-
return
|
|
371
|
+
return ln(_);
|
|
372
372
|
switch (_) {
|
|
373
373
|
case d:
|
|
374
|
-
return
|
|
374
|
+
return ln("Suspense");
|
|
375
375
|
case p:
|
|
376
|
-
return
|
|
376
|
+
return ln("SuspenseList");
|
|
377
377
|
}
|
|
378
378
|
if (typeof _ == "object")
|
|
379
379
|
switch (_.$$typeof) {
|
|
380
380
|
case c:
|
|
381
381
|
return or(_.render);
|
|
382
382
|
case h:
|
|
383
|
-
return
|
|
383
|
+
return dn(_.type, F, G);
|
|
384
384
|
case m: {
|
|
385
385
|
var ne = _, fe = ne._payload, Se = ne._init;
|
|
386
386
|
try {
|
|
387
|
-
return
|
|
387
|
+
return dn(Se(fe), F, G);
|
|
388
388
|
} catch {
|
|
389
389
|
}
|
|
390
390
|
}
|
|
@@ -394,7 +394,7 @@ function sm() {
|
|
|
394
394
|
var sr = Object.prototype.hasOwnProperty, cs = {}, ds = M.ReactDebugCurrentFrame;
|
|
395
395
|
function Or(_) {
|
|
396
396
|
if (_) {
|
|
397
|
-
var F = _._owner, G =
|
|
397
|
+
var F = _._owner, G = dn(_.type, _._source, F ? F.type : null);
|
|
398
398
|
ds.setExtraStackFrame(G);
|
|
399
399
|
} else
|
|
400
400
|
ds.setExtraStackFrame(null);
|
|
@@ -543,7 +543,7 @@ function sm() {
|
|
|
543
543
|
var Pi = M.ReactCurrentOwner, fs = M.ReactDebugCurrentFrame;
|
|
544
544
|
function Bn(_) {
|
|
545
545
|
if (_) {
|
|
546
|
-
var F = _._owner, G =
|
|
546
|
+
var F = _._owner, G = dn(_.type, _._source, F ? F.type : null);
|
|
547
547
|
fs.setExtraStackFrame(G);
|
|
548
548
|
} else
|
|
549
549
|
fs.setExtraStackFrame(null);
|
|
@@ -848,11 +848,20 @@ class fm {
|
|
|
848
848
|
};
|
|
849
849
|
}
|
|
850
850
|
getRequest(t, n) {
|
|
851
|
-
return (r, o, a
|
|
852
|
-
const
|
|
853
|
-
return
|
|
851
|
+
return (r, o, a, s) => {
|
|
852
|
+
const l = this.buildHeader(a), c = this.buildAxiosConfig(t, r, o, a, l, n);
|
|
853
|
+
return Zt(c).then((d) => s ? d : d.data).catch((d) => Promise.reject(d));
|
|
854
854
|
};
|
|
855
855
|
}
|
|
856
|
+
get(t) {
|
|
857
|
+
return this.getRequest("GET", t);
|
|
858
|
+
}
|
|
859
|
+
post(t) {
|
|
860
|
+
return this.getRequest("POST", t);
|
|
861
|
+
}
|
|
862
|
+
put(t) {
|
|
863
|
+
return this.getRequest("PUT", t);
|
|
864
|
+
}
|
|
856
865
|
buildAxiosConfig(t, n, r, o, a, s) {
|
|
857
866
|
const l = {
|
|
858
867
|
baseURL: this.baseURL,
|
|
@@ -881,6 +890,15 @@ class AE {
|
|
|
881
890
|
getRequest(t, n) {
|
|
882
891
|
return this.implementation.getRequest(t, n);
|
|
883
892
|
}
|
|
893
|
+
get(t) {
|
|
894
|
+
return this.getRequest("GET", t);
|
|
895
|
+
}
|
|
896
|
+
post(t) {
|
|
897
|
+
return this.getRequest("POST", t);
|
|
898
|
+
}
|
|
899
|
+
put(t) {
|
|
900
|
+
return this.getRequest("PUT", t);
|
|
901
|
+
}
|
|
884
902
|
}
|
|
885
903
|
class gm extends fm {
|
|
886
904
|
constructor() {
|
|
@@ -892,7 +910,15 @@ class gm extends fm {
|
|
|
892
910
|
var a;
|
|
893
911
|
return r.env || (r.env = ((a = this.makeQueryENV) == null ? void 0 : a.call(this)) ?? {
|
|
894
912
|
error: "failed to run makeQueryENV"
|
|
895
|
-
}), this.
|
|
913
|
+
}), this.post(n)("/query", r, o);
|
|
914
|
+
};
|
|
915
|
+
}
|
|
916
|
+
httpDataSourceQuery(n) {
|
|
917
|
+
return async (r, o = {}) => {
|
|
918
|
+
var a;
|
|
919
|
+
return r.env || (r.env = ((a = this.makeQueryENV) == null ? void 0 : a.call(this)) ?? {
|
|
920
|
+
error: "failed to run makeQueryENV"
|
|
921
|
+
}), this.getRequest("POST", n)("/query", r, o, !0);
|
|
896
922
|
};
|
|
897
923
|
}
|
|
898
924
|
}
|
|
@@ -903,9 +929,21 @@ class bm {
|
|
|
903
929
|
query(t) {
|
|
904
930
|
return this.implementation.query(t);
|
|
905
931
|
}
|
|
932
|
+
httpDataSourceQuery(t) {
|
|
933
|
+
return this.implementation.httpDataSourceQuery(t);
|
|
934
|
+
}
|
|
906
935
|
getRequest(t, n) {
|
|
907
936
|
return this.implementation.getRequest(t, n);
|
|
908
937
|
}
|
|
938
|
+
get(t) {
|
|
939
|
+
return this.getRequest("GET", t);
|
|
940
|
+
}
|
|
941
|
+
post(t) {
|
|
942
|
+
return this.getRequest("POST", t);
|
|
943
|
+
}
|
|
944
|
+
put(t) {
|
|
945
|
+
return this.getRequest("PUT", t);
|
|
946
|
+
}
|
|
909
947
|
}
|
|
910
948
|
const jn = new gm();
|
|
911
949
|
function mc(e) {
|
|
@@ -966,7 +1004,7 @@ async function vm({
|
|
|
966
1004
|
name: r
|
|
967
1005
|
}, o) {
|
|
968
1006
|
try {
|
|
969
|
-
return await Jt.
|
|
1007
|
+
return await Jt.httpDataSourceQuery(o)({
|
|
970
1008
|
type: e,
|
|
971
1009
|
key: t,
|
|
972
1010
|
query: n
|
|
@@ -976,12 +1014,14 @@ async function vm({
|
|
|
976
1014
|
}
|
|
977
1015
|
});
|
|
978
1016
|
} catch (a) {
|
|
979
|
-
|
|
1017
|
+
if (Zt.isCancel(a))
|
|
1018
|
+
throw a;
|
|
1019
|
+
return console.error(a), a;
|
|
980
1020
|
}
|
|
981
1021
|
}
|
|
982
1022
|
async function ma() {
|
|
983
1023
|
try {
|
|
984
|
-
return (await Jt.
|
|
1024
|
+
return (await Jt.post()("/datasource/list", {
|
|
985
1025
|
filter: {},
|
|
986
1026
|
sort: [{
|
|
987
1027
|
field: "create_time",
|
|
@@ -991,14 +1031,14 @@ async function ma() {
|
|
|
991
1031
|
page: 1,
|
|
992
1032
|
pagesize: 100
|
|
993
1033
|
}
|
|
994
|
-
})).data;
|
|
1034
|
+
}, {})).data;
|
|
995
1035
|
} catch (e) {
|
|
996
1036
|
return console.error(e), [];
|
|
997
1037
|
}
|
|
998
1038
|
}
|
|
999
1039
|
async function gc() {
|
|
1000
1040
|
try {
|
|
1001
|
-
return (await Jt.
|
|
1041
|
+
return (await Jt.post()("/sql_snippet/list", {
|
|
1002
1042
|
filter: {},
|
|
1003
1043
|
sort: [{
|
|
1004
1044
|
field: "id",
|
|
@@ -1008,7 +1048,7 @@ async function gc() {
|
|
|
1008
1048
|
page: 1,
|
|
1009
1049
|
pagesize: 1e3
|
|
1010
1050
|
}
|
|
1011
|
-
})).data;
|
|
1051
|
+
}, {})).data;
|
|
1012
1052
|
} catch (e) {
|
|
1013
1053
|
return console.error(e), [];
|
|
1014
1054
|
}
|
|
@@ -1030,7 +1070,7 @@ class bc {
|
|
|
1030
1070
|
return Promise.resolve(n);
|
|
1031
1071
|
}
|
|
1032
1072
|
getValueFromRoot(t) {
|
|
1033
|
-
return t === null ?
|
|
1073
|
+
return t === null ? an(this.rootRef.current) : de(this.rootRef.current, [t]);
|
|
1034
1074
|
}
|
|
1035
1075
|
setItem(t, n) {
|
|
1036
1076
|
if (t === null)
|
|
@@ -1238,7 +1278,7 @@ class fa {
|
|
|
1238
1278
|
}), this.instanceRegistry.clear(), this.factoryRegistry.clear();
|
|
1239
1279
|
}
|
|
1240
1280
|
}
|
|
1241
|
-
const vc = "10.
|
|
1281
|
+
const vc = "10.39.0", $m = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1242
1282
|
__proto__: null,
|
|
1243
1283
|
version: vc
|
|
1244
1284
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -1405,7 +1445,7 @@ function Om(e) {
|
|
|
1405
1445
|
columnKey: e
|
|
1406
1446
|
};
|
|
1407
1447
|
}
|
|
1408
|
-
function
|
|
1448
|
+
function nn(e, t) {
|
|
1409
1449
|
var o;
|
|
1410
1450
|
const {
|
|
1411
1451
|
queryID: n,
|
|
@@ -2410,7 +2450,7 @@ class wf {
|
|
|
2410
2450
|
const r = Ml(n).map((o) => ({
|
|
2411
2451
|
id: de(o, "id"),
|
|
2412
2452
|
schemaRef: de(o, "schemaRef"),
|
|
2413
|
-
config:
|
|
2453
|
+
config: an(de(o, "data.config"))
|
|
2414
2454
|
}));
|
|
2415
2455
|
t(r);
|
|
2416
2456
|
}, {
|
|
@@ -2769,7 +2809,7 @@ const Of = D(({
|
|
|
2769
2809
|
data: t
|
|
2770
2810
|
} = On(), n = e.viz, {
|
|
2771
2811
|
vizManager: r
|
|
2772
|
-
} =
|
|
2812
|
+
} = rn(Ht), o = e.json, a = $t(() => r.getOrCreateInstance(o), [r, o]), s = $t(() => new va(a, r.resolveComponent(n.type), yi), [a, n.type]);
|
|
2773
2813
|
return W(() => a.instanceData.watchItem(
|
|
2774
2814
|
null,
|
|
2775
2815
|
// avoid too many updates
|
|
@@ -4830,7 +4870,7 @@ class Me {
|
|
|
4830
4870
|
negative, it will search backwards first.
|
|
4831
4871
|
*/
|
|
4832
4872
|
static near(t, n = 1) {
|
|
4833
|
-
return this.findFrom(t, n) || this.findFrom(t, -n) || new
|
|
4873
|
+
return this.findFrom(t, n) || this.findFrom(t, -n) || new tn(t.node(0));
|
|
4834
4874
|
}
|
|
4835
4875
|
/**
|
|
4836
4876
|
Find the cursor or leaf node selection closest to the start of
|
|
@@ -4839,14 +4879,14 @@ class Me {
|
|
|
4839
4879
|
exists.
|
|
4840
4880
|
*/
|
|
4841
4881
|
static atStart(t) {
|
|
4842
|
-
return Gn(t, t, 0, 0, 1) || new
|
|
4882
|
+
return Gn(t, t, 0, 0, 1) || new tn(t);
|
|
4843
4883
|
}
|
|
4844
4884
|
/**
|
|
4845
4885
|
Find the cursor or leaf node selection closest to the end of the
|
|
4846
4886
|
given document.
|
|
4847
4887
|
*/
|
|
4848
4888
|
static atEnd(t) {
|
|
4849
|
-
return Gn(t, t, t.content.size, t.childCount, -1) || new
|
|
4889
|
+
return Gn(t, t, t.content.size, t.childCount, -1) || new tn(t);
|
|
4850
4890
|
}
|
|
4851
4891
|
/**
|
|
4852
4892
|
Deserialize the JSON representation of a selection. Must be
|
|
@@ -5042,7 +5082,7 @@ class Ca {
|
|
|
5042
5082
|
return r && mt.isSelectable(r) ? new mt(n) : Me.near(n);
|
|
5043
5083
|
}
|
|
5044
5084
|
}
|
|
5045
|
-
class
|
|
5085
|
+
class tn extends Me {
|
|
5046
5086
|
/**
|
|
5047
5087
|
Create an all-selection over the given document.
|
|
5048
5088
|
*/
|
|
@@ -5064,25 +5104,25 @@ class en extends Me {
|
|
|
5064
5104
|
@internal
|
|
5065
5105
|
*/
|
|
5066
5106
|
static fromJSON(t) {
|
|
5067
|
-
return new
|
|
5107
|
+
return new tn(t);
|
|
5068
5108
|
}
|
|
5069
5109
|
map(t) {
|
|
5070
|
-
return new
|
|
5110
|
+
return new tn(t);
|
|
5071
5111
|
}
|
|
5072
5112
|
eq(t) {
|
|
5073
|
-
return t instanceof
|
|
5113
|
+
return t instanceof tn;
|
|
5074
5114
|
}
|
|
5075
5115
|
getBookmark() {
|
|
5076
5116
|
return cg;
|
|
5077
5117
|
}
|
|
5078
5118
|
}
|
|
5079
|
-
Me.jsonID("all",
|
|
5119
|
+
Me.jsonID("all", tn);
|
|
5080
5120
|
const cg = {
|
|
5081
5121
|
map() {
|
|
5082
5122
|
return this;
|
|
5083
5123
|
},
|
|
5084
5124
|
resolve(e) {
|
|
5085
|
-
return new
|
|
5125
|
+
return new tn(e);
|
|
5086
5126
|
}
|
|
5087
5127
|
};
|
|
5088
5128
|
function Gn(e, t, n, r, o, a = !1) {
|
|
@@ -5285,10 +5325,10 @@ class dg {
|
|
|
5285
5325
|
return l;
|
|
5286
5326
|
}
|
|
5287
5327
|
}
|
|
5288
|
-
function
|
|
5289
|
-
return e.config[t] === void 0 && e.parent ?
|
|
5328
|
+
function un(e, t, n) {
|
|
5329
|
+
return e.config[t] === void 0 && e.parent ? un(e.parent, t, n) : typeof e.config[t] == "function" ? e.config[t].bind({
|
|
5290
5330
|
...n,
|
|
5291
|
-
parent: e.parent ?
|
|
5331
|
+
parent: e.parent ? un(e.parent, t, n) : null
|
|
5292
5332
|
}) : e.config[t];
|
|
5293
5333
|
}
|
|
5294
5334
|
function ug(e) {
|
|
@@ -5336,9 +5376,9 @@ class Bt {
|
|
|
5336
5376
|
}, this.config = {
|
|
5337
5377
|
...this.config,
|
|
5338
5378
|
...t
|
|
5339
|
-
}, this.name = this.config.name, t.defaultOptions && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options = Hn(
|
|
5379
|
+
}, this.name = this.config.name, t.defaultOptions && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options = Hn(un(this, "addOptions", {
|
|
5340
5380
|
name: this.name
|
|
5341
|
-
}))), this.storage = Hn(
|
|
5381
|
+
}))), this.storage = Hn(un(this, "addStorage", {
|
|
5342
5382
|
name: this.name,
|
|
5343
5383
|
options: this.options
|
|
5344
5384
|
})) || {};
|
|
@@ -5348,16 +5388,16 @@ class Bt {
|
|
|
5348
5388
|
}
|
|
5349
5389
|
configure(t = {}) {
|
|
5350
5390
|
const n = this.extend();
|
|
5351
|
-
return n.options = Xc(this.options, t), n.storage = Hn(
|
|
5391
|
+
return n.options = Xc(this.options, t), n.storage = Hn(un(n, "addStorage", {
|
|
5352
5392
|
name: n.name,
|
|
5353
5393
|
options: n.options
|
|
5354
5394
|
})), n;
|
|
5355
5395
|
}
|
|
5356
5396
|
extend(t = {}) {
|
|
5357
5397
|
const n = new Bt(t);
|
|
5358
|
-
return n.parent = this, this.child = n, n.name = t.name ? t.name : n.parent.name, t.defaultOptions && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`), n.options = Hn(
|
|
5398
|
+
return n.parent = this, this.child = n, n.name = t.name ? t.name : n.parent.name, t.defaultOptions && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`), n.options = Hn(un(n, "addOptions", {
|
|
5359
5399
|
name: n.name
|
|
5360
|
-
})), n.storage = Hn(
|
|
5400
|
+
})), n.storage = Hn(un(n, "addStorage", {
|
|
5361
5401
|
name: n.name,
|
|
5362
5402
|
options: n.options
|
|
5363
5403
|
})), n;
|
|
@@ -5768,7 +5808,7 @@ function Ys(e, t) {
|
|
|
5768
5808
|
name: r.name,
|
|
5769
5809
|
options: r.options,
|
|
5770
5810
|
storage: r.storage
|
|
5771
|
-
}, a = Hn(
|
|
5811
|
+
}, a = Hn(un(r, "group", o));
|
|
5772
5812
|
return typeof a != "string" ? !1 : a.split(" ").includes("list");
|
|
5773
5813
|
}
|
|
5774
5814
|
function lb(e, t, n) {
|
|
@@ -6437,7 +6477,7 @@ function Pb(e, t, n) {
|
|
|
6437
6477
|
}
|
|
6438
6478
|
function wi(e, t, n) {
|
|
6439
6479
|
try {
|
|
6440
|
-
return n.type === "custom" ? Pb(e, t, n) : Da(
|
|
6480
|
+
return n.type === "custom" ? Pb(e, t, n) : Da(nn(e, t), n);
|
|
6441
6481
|
} catch (r) {
|
|
6442
6482
|
return console.error(r), null;
|
|
6443
6483
|
}
|
|
@@ -6564,7 +6604,7 @@ function Wb({
|
|
|
6564
6604
|
}, n) {
|
|
6565
6605
|
const {
|
|
6566
6606
|
colorManager: r
|
|
6567
|
-
} =
|
|
6607
|
+
} = rn(Ht), o = R.useMemo(() => r.getStaticColors().map((l) => ({
|
|
6568
6608
|
label: l.name,
|
|
6569
6609
|
group: l.category,
|
|
6570
6610
|
// todo: select color by reference instead of value, e.g. $category.name
|
|
@@ -6758,7 +6798,7 @@ class Yb {
|
|
|
6758
6798
|
function Qb(e) {
|
|
6759
6799
|
return e === null ? "null" : e === void 0 ? "undefined" : Array.isArray(e) ? `Array(${e.length})` : e.toString();
|
|
6760
6800
|
}
|
|
6761
|
-
function
|
|
6801
|
+
function sn({
|
|
6762
6802
|
data_field: e,
|
|
6763
6803
|
aggregation: t
|
|
6764
6804
|
}, n) {
|
|
@@ -6870,7 +6910,7 @@ function Ci(e, t, n) {
|
|
|
6870
6910
|
}
|
|
6871
6911
|
function ey(e, t, n) {
|
|
6872
6912
|
const r = t.reduce((o, a) => {
|
|
6873
|
-
const s =
|
|
6913
|
+
const s = sn(a, n);
|
|
6874
6914
|
return o[a.name] = It(a, s), o;
|
|
6875
6915
|
}, {});
|
|
6876
6916
|
return e.map((o) => ({
|
|
@@ -7069,7 +7109,7 @@ const ay = ({
|
|
|
7069
7109
|
}) => /* @__PURE__ */ u(P, { sx: {
|
|
7070
7110
|
position: "relative"
|
|
7071
7111
|
}, children: [
|
|
7072
|
-
e && /* @__PURE__ */ i(
|
|
7112
|
+
e && /* @__PURE__ */ i(on, { opacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
|
|
7073
7113
|
/* @__PURE__ */ i(ot, { height: "500px", defaultLanguage: "javascript", value: t, onChange: (o) => {
|
|
7074
7114
|
o && n(o);
|
|
7075
7115
|
}, theme: "vs-dark", options: {
|
|
@@ -8034,7 +8074,7 @@ function Hy({
|
|
|
8034
8074
|
group_by_key: l
|
|
8035
8075
|
} = a;
|
|
8036
8076
|
if (!l || l === t) {
|
|
8037
|
-
const h =
|
|
8077
|
+
const h = nn(n, a.y_axis_data_key).map((m, f) => [f, Number(m)]);
|
|
8038
8078
|
o(a, s, "", h);
|
|
8039
8079
|
return;
|
|
8040
8080
|
}
|
|
@@ -8138,7 +8178,7 @@ function Ky({
|
|
|
8138
8178
|
};
|
|
8139
8179
|
}
|
|
8140
8180
|
function $a(e, t, n) {
|
|
8141
|
-
const r =
|
|
8181
|
+
const r = nn(e, t), o = nn(e, n);
|
|
8142
8182
|
return k.zip(r, o);
|
|
8143
8183
|
}
|
|
8144
8184
|
function Xy(e, t, n, r) {
|
|
@@ -8152,7 +8192,7 @@ function Jy({
|
|
|
8152
8192
|
y_axis_data_key: r,
|
|
8153
8193
|
valueTypedXAxis: o
|
|
8154
8194
|
}) {
|
|
8155
|
-
return o ? Xy(e, t, n, r) :
|
|
8195
|
+
return o ? Xy(e, t, n, r) : nn(t, r);
|
|
8156
8196
|
}
|
|
8157
8197
|
function Zy({
|
|
8158
8198
|
dataTemplate: e,
|
|
@@ -8330,7 +8370,7 @@ function ox(e) {
|
|
|
8330
8370
|
function sd(e, t) {
|
|
8331
8371
|
const n = {};
|
|
8332
8372
|
return t.map((r) => {
|
|
8333
|
-
const o =
|
|
8373
|
+
const o = sn(r, e);
|
|
8334
8374
|
n[r.name] = It(r, o);
|
|
8335
8375
|
}), n;
|
|
8336
8376
|
}
|
|
@@ -8433,7 +8473,7 @@ const dx = {
|
|
|
8433
8473
|
}]
|
|
8434
8474
|
};
|
|
8435
8475
|
function ux(e, t, n) {
|
|
8436
|
-
const r = sd(t, n), o = ox(e), a = k.uniq(
|
|
8476
|
+
const r = sd(t, n), o = ox(e), a = k.uniq(nn(t, e.x_axis_data_key)), s = nx(e, a, t, o, n, r), l = Hy(e, t), c = {
|
|
8437
8477
|
xAxis: ax(e, a),
|
|
8438
8478
|
yAxis: cx(e, o, s),
|
|
8439
8479
|
series: [...s, ...l],
|
|
@@ -11106,7 +11146,7 @@ function e0(e, t, n, r, o) {
|
|
|
11106
11146
|
if (!e.x_axis.data_key || !e.y_axis.data_key || !e.heat_block.data_key)
|
|
11107
11147
|
return {};
|
|
11108
11148
|
const a = n.reduce((T, M) => {
|
|
11109
|
-
const L =
|
|
11149
|
+
const L = sn(M, t);
|
|
11110
11150
|
return T[M.name] = It(M, L), T;
|
|
11111
11151
|
}, {}), s = Fv(e), l = Pv(e), c = q(e.x_axis.data_key), d = q(e.y_axis.data_key), p = q(e.heat_block.data_key), h = k.uniq(t[c.queryID].map((T) => T[c.columnKey])), m = k.uniq(t[c.queryID].map((T) => T[d.columnKey])), f = t[c.queryID].map((T) => [k.get(T, c.columnKey), k.get(T, d.columnKey), k.get(T, p.columnKey)]), w = Zv(h.length, m.length, r, o), v = {
|
|
11112
11152
|
xAxis: Kv(e, h, s.x_axis),
|
|
@@ -11376,7 +11416,7 @@ const c0 = ({
|
|
|
11376
11416
|
}) => /* @__PURE__ */ u(P, { sx: {
|
|
11377
11417
|
position: "relative"
|
|
11378
11418
|
}, children: [
|
|
11379
|
-
e && /* @__PURE__ */ i(
|
|
11419
|
+
e && /* @__PURE__ */ i(on, { opacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
|
|
11380
11420
|
/* @__PURE__ */ i(ot, { height: "500px", defaultLanguage: "javascript", value: t, onChange: (o) => {
|
|
11381
11421
|
o && n(o);
|
|
11382
11422
|
}, theme: "vs-dark", options: {
|
|
@@ -14043,7 +14083,7 @@ const i_ = ({
|
|
|
14043
14083
|
}) => /* @__PURE__ */ u(P, { sx: {
|
|
14044
14084
|
position: "relative"
|
|
14045
14085
|
}, children: [
|
|
14046
|
-
e && /* @__PURE__ */ i(
|
|
14086
|
+
e && /* @__PURE__ */ i(on, { opacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
|
|
14047
14087
|
/* @__PURE__ */ i(ot, { height: "500px", defaultLanguage: "javascript", value: t, onChange: (o) => {
|
|
14048
14088
|
o && n(o);
|
|
14049
14089
|
}, theme: "vs-dark", options: {
|
|
@@ -14989,7 +15029,7 @@ const F_ = {
|
|
|
14989
15029
|
};
|
|
14990
15030
|
function P_(e, t, n) {
|
|
14991
15031
|
const r = n.reduce((c, d) => {
|
|
14992
|
-
const p =
|
|
15032
|
+
const p = sn(d, t);
|
|
14993
15033
|
return c[d.name] = It(d, p), c;
|
|
14994
15034
|
}, {}), o = e.y_axes.reduce((c, {
|
|
14995
15035
|
label_formatter: d
|
|
@@ -15006,7 +15046,7 @@ function P_(e, t, n) {
|
|
|
15006
15046
|
default: ({
|
|
15007
15047
|
value: c
|
|
15008
15048
|
}) => c
|
|
15009
|
-
}), a = k.uniq(
|
|
15049
|
+
}), a = k.uniq(nn(t, e.x_axis.data_key)), s = L_(e, t, n, r), l = {
|
|
15010
15050
|
xAxis: R_(e, a),
|
|
15011
15051
|
yAxis: O_(e, o),
|
|
15012
15052
|
series: s,
|
|
@@ -15801,7 +15841,7 @@ const mC = ({
|
|
|
15801
15841
|
}) => /* @__PURE__ */ u(P, { sx: {
|
|
15802
15842
|
position: "relative"
|
|
15803
15843
|
}, children: [
|
|
15804
|
-
e && /* @__PURE__ */ i(
|
|
15844
|
+
e && /* @__PURE__ */ i(on, { opacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
|
|
15805
15845
|
/* @__PURE__ */ i(ot, { height: "500px", defaultLanguage: "javascript", value: t, onChange: (o) => {
|
|
15806
15846
|
o && n(o);
|
|
15807
15847
|
}, theme: "vs-dark", options: {
|
|
@@ -16641,7 +16681,7 @@ const XC = {
|
|
|
16641
16681
|
};
|
|
16642
16682
|
function JC(e, t, n) {
|
|
16643
16683
|
n.reduce((a, s) => {
|
|
16644
|
-
const l =
|
|
16684
|
+
const l = sn(s, t);
|
|
16645
16685
|
return a[s.name] = It(s, l), a;
|
|
16646
16686
|
}, {});
|
|
16647
16687
|
const o = {
|
|
@@ -17306,7 +17346,7 @@ class L1 {
|
|
|
17306
17346
|
const $1 = (e) => {
|
|
17307
17347
|
const t = Dt(e), n = Tt(t.triggerManager, Ga.id), {
|
|
17308
17348
|
colorManager: r
|
|
17309
|
-
} =
|
|
17349
|
+
} = rn(Ht);
|
|
17310
17350
|
return Je((o) => new L1(e.getColIndex, o, n, t, r), [n, t, e.getColIndex]);
|
|
17311
17351
|
};
|
|
17312
17352
|
function A1({
|
|
@@ -17475,7 +17515,7 @@ class F1 {
|
|
|
17475
17515
|
steps: Tl
|
|
17476
17516
|
}, {
|
|
17477
17517
|
deep: !1
|
|
17478
|
-
}), ft(() =>
|
|
17518
|
+
}), ft(() => an(this.steps), () => {
|
|
17479
17519
|
this.notifyStepChange();
|
|
17480
17520
|
});
|
|
17481
17521
|
}
|
|
@@ -17572,7 +17612,7 @@ const V1 = D(({
|
|
|
17572
17612
|
}));
|
|
17573
17613
|
}
|
|
17574
17614
|
const f = () => {
|
|
17575
|
-
p(), n == null || n(
|
|
17615
|
+
p(), n == null || n(an(a));
|
|
17576
17616
|
};
|
|
17577
17617
|
function w(T) {
|
|
17578
17618
|
s((M) => ({
|
|
@@ -17620,7 +17660,7 @@ function G1(e, t) {
|
|
|
17620
17660
|
const H1 = ve((e, t) => {
|
|
17621
17661
|
const {
|
|
17622
17662
|
colorManager: n
|
|
17623
|
-
} =
|
|
17663
|
+
} = rn(Ht), [r, o] = Q(Ad(e.value)), [a, s] = Q(j1(n, e.value)), l = Ts(a), [c, d] = Q(G1(n, e.value)), p = Ts(c);
|
|
17624
17664
|
return /* @__PURE__ */ u(S, { align: "stretch", children: [
|
|
17625
17665
|
/* @__PURE__ */ i(O, { label: "Cell background", value: r || "none", onChange: (w) => {
|
|
17626
17666
|
var v, T, M;
|
|
@@ -18032,7 +18072,7 @@ const po = {
|
|
|
18032
18072
|
font_size: l,
|
|
18033
18073
|
font_weight: c
|
|
18034
18074
|
} = n, d = z(() => r.reduce((h, m) => {
|
|
18035
|
-
const f =
|
|
18075
|
+
const f = sn(m, o);
|
|
18036
18076
|
return h[m.name] = It(m, f), h;
|
|
18037
18077
|
}, {}), [r, o]), p = z(() => new Function(`return ${a}`)()({
|
|
18038
18078
|
data: o,
|
|
@@ -18217,7 +18257,7 @@ async function fS(e, t, n, r = {}) {
|
|
|
18217
18257
|
params: r.params,
|
|
18218
18258
|
headers: o
|
|
18219
18259
|
};
|
|
18220
|
-
return a.data = r.string ? JSON.stringify(n) : n,
|
|
18260
|
+
return a.data = r.string ? JSON.stringify(n) : n, Zt(a).then((s) => s.data).catch((s) => Promise.reject(s));
|
|
18221
18261
|
}
|
|
18222
18262
|
const gS = ({
|
|
18223
18263
|
conf: e,
|
|
@@ -18561,7 +18601,7 @@ function AS(e, t) {
|
|
|
18561
18601
|
}
|
|
18562
18602
|
function ES(e, t, n) {
|
|
18563
18603
|
const r = n.reduce((h, m) => {
|
|
18564
|
-
const f =
|
|
18604
|
+
const f = sn(m, t);
|
|
18565
18605
|
return h[m.name] = It(m, f), h;
|
|
18566
18606
|
}, {}), o = SS(e), {
|
|
18567
18607
|
dateSpan: a,
|
|
@@ -19115,7 +19155,7 @@ function rk(e, t, n, r) {
|
|
|
19115
19155
|
});
|
|
19116
19156
|
}
|
|
19117
19157
|
function zi(e, t, n) {
|
|
19118
|
-
const r =
|
|
19158
|
+
const r = nn(e, t), o = nn(e, n);
|
|
19119
19159
|
return k.zip(o, r);
|
|
19120
19160
|
}
|
|
19121
19161
|
function ik(e, t, n, r) {
|
|
@@ -19307,7 +19347,7 @@ function hk(e) {
|
|
|
19307
19347
|
function pk(e, t) {
|
|
19308
19348
|
const n = {};
|
|
19309
19349
|
return t.map((r) => {
|
|
19310
|
-
const o =
|
|
19350
|
+
const o = sn(r, e);
|
|
19311
19351
|
n[r.name] = It(r, o);
|
|
19312
19352
|
}), n;
|
|
19313
19353
|
}
|
|
@@ -21474,7 +21514,7 @@ const AT = ({
|
|
|
21474
21514
|
}) => /* @__PURE__ */ u(P, { sx: {
|
|
21475
21515
|
position: "relative"
|
|
21476
21516
|
}, children: [
|
|
21477
|
-
e && /* @__PURE__ */ i(
|
|
21517
|
+
e && /* @__PURE__ */ i(on, { opacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
|
|
21478
21518
|
/* @__PURE__ */ i(ot, { height: "500px", defaultLanguage: "javascript", value: t, onChange: (o) => {
|
|
21479
21519
|
o && n(o);
|
|
21480
21520
|
}, theme: "vs-dark", options: {
|
|
@@ -22042,7 +22082,7 @@ function JT(e, t, n) {
|
|
|
22042
22082
|
if (!e.x_axis.data_key || !e.y_axis.data_key || !e.heat_block.data_key)
|
|
22043
22083
|
return {};
|
|
22044
22084
|
const r = n.reduce((l, c) => {
|
|
22045
|
-
const d =
|
|
22085
|
+
const d = sn(c, t);
|
|
22046
22086
|
return l[c.name] = It(c, d), l;
|
|
22047
22087
|
}, {}), o = BT(e), a = qT(e), s = {
|
|
22048
22088
|
xAxis: UT(e, t, o.x_axis),
|
|
@@ -23252,7 +23292,7 @@ const kD = b.model("PanelLayoutMeta", {
|
|
|
23252
23292
|
}
|
|
23253
23293
|
})), Ai = (e) => $l(e, (t, n) => {
|
|
23254
23294
|
if (n !== void 0 && t)
|
|
23255
|
-
return
|
|
23295
|
+
return an(t);
|
|
23256
23296
|
});
|
|
23257
23297
|
var Be = /* @__PURE__ */ ((e) => (e.Postgresql = "postgresql", e.MySQL = "mysql", e.HTTP = "http", e))(Be || {});
|
|
23258
23298
|
const LD = b.model("QueryMeta", {
|
|
@@ -23576,7 +23616,7 @@ const ED = b.model("FilterDateRangeConfigMeta", {
|
|
|
23576
23616
|
}
|
|
23577
23617
|
})).actions((e) => ({
|
|
23578
23618
|
afterCreate() {
|
|
23579
|
-
Lt(e, ft(() =>
|
|
23619
|
+
Lt(e, ft(() => an(e.default_selection), e.setDefaultSelection, {
|
|
23580
23620
|
fireImmediately: !0,
|
|
23581
23621
|
delay: 0
|
|
23582
23622
|
}));
|
|
@@ -23634,7 +23674,7 @@ const ED = b.model("FilterDateRangeConfigMeta", {
|
|
|
23634
23674
|
}
|
|
23635
23675
|
})).actions((e) => ({
|
|
23636
23676
|
afterCreate() {
|
|
23637
|
-
Lt(e, ft(() =>
|
|
23677
|
+
Lt(e, ft(() => an(e.default_selection), e.setDefaultSelection, {
|
|
23638
23678
|
fireImmediately: !0,
|
|
23639
23679
|
delay: 0
|
|
23640
23680
|
}));
|
|
@@ -23830,7 +23870,7 @@ const Zd = b.compose("FilterTreeSelectConfigMeta", b.model({
|
|
|
23830
23870
|
order: o,
|
|
23831
23871
|
config: c.json,
|
|
23832
23872
|
auto_submit: s,
|
|
23833
|
-
visibleInViewsIDs:
|
|
23873
|
+
visibleInViewsIDs: an(a)
|
|
23834
23874
|
};
|
|
23835
23875
|
},
|
|
23836
23876
|
get visibleInViewsIDSet() {
|
|
@@ -24635,7 +24675,7 @@ const lI = b.compose("QueryRenderModel", nI, b.model({
|
|
|
24635
24675
|
query: e.json
|
|
24636
24676
|
}, e.controller.signal)), e.state = "idle", e.error = null;
|
|
24637
24677
|
} catch (n) {
|
|
24638
|
-
if (!
|
|
24678
|
+
if (!Zt.isCancel(n)) {
|
|
24639
24679
|
e.data = [];
|
|
24640
24680
|
const r = de(n, "message", "unkown error");
|
|
24641
24681
|
e.error = de(n, "response.data.detail.message", r), e.state = "error";
|
|
@@ -24660,11 +24700,10 @@ const lI = b.compose("QueryRenderModel", nI, b.model({
|
|
|
24660
24700
|
key: r,
|
|
24661
24701
|
configString: JSON.stringify(a),
|
|
24662
24702
|
name: e.name
|
|
24663
|
-
}, e.controller.signal));
|
|
24664
|
-
|
|
24665
|
-
l = sI(o, l, e.dashboardState), e.data = l, e.state = "idle", e.error = null;
|
|
24703
|
+
}, e.controller.signal)), l = aI(e.datasource, s), c = sI(o, l, e.dashboardState);
|
|
24704
|
+
e.data = c, e.state = "idle", e.error = null;
|
|
24666
24705
|
} catch (n) {
|
|
24667
|
-
if (console.error(n), !
|
|
24706
|
+
if (console.error(n), !Zt.isCancel(n)) {
|
|
24668
24707
|
e.data = [];
|
|
24669
24708
|
const r = de(n, "message", "unkown error");
|
|
24670
24709
|
e.error = de(n, "response.data.detail.message", r), e.state = "error";
|
|
@@ -24829,10 +24868,10 @@ class hI {
|
|
|
24829
24868
|
});
|
|
24830
24869
|
}
|
|
24831
24870
|
get changed() {
|
|
24832
|
-
return !ke(
|
|
24871
|
+
return !ke(en(this.origin), en(this.copy));
|
|
24833
24872
|
}
|
|
24834
24873
|
commit() {
|
|
24835
|
-
st(this.origin,
|
|
24874
|
+
st(this.origin, en(this.copy));
|
|
24836
24875
|
}
|
|
24837
24876
|
update(t) {
|
|
24838
24877
|
st(this.copy, t);
|
|
@@ -25050,7 +25089,7 @@ function vI(e) {
|
|
|
25050
25089
|
wu(n, t);
|
|
25051
25090
|
const {
|
|
25052
25091
|
inEditMode: r
|
|
25053
|
-
} =
|
|
25092
|
+
} = rn(ba);
|
|
25054
25093
|
return vu(() => {
|
|
25055
25094
|
r && gi({
|
|
25056
25095
|
title: `${t.title} - Updated`,
|
|
@@ -25061,7 +25100,7 @@ function vI(e) {
|
|
|
25061
25100
|
function wI(e, t) {
|
|
25062
25101
|
const {
|
|
25063
25102
|
vizManager: n
|
|
25064
|
-
} =
|
|
25103
|
+
} = rn(Ht), {
|
|
25065
25104
|
panel: {
|
|
25066
25105
|
viz: r,
|
|
25067
25106
|
title: o,
|
|
@@ -25584,7 +25623,7 @@ const HI = D(({
|
|
|
25584
25623
|
bottom: 0,
|
|
25585
25624
|
zIndex: 200
|
|
25586
25625
|
}, children: [
|
|
25587
|
-
/* @__PURE__ */ i(
|
|
25626
|
+
/* @__PURE__ */ i(on, { opacity: 0.8, color: "#FFF", blur: 10, zIndex: 100 }),
|
|
25588
25627
|
/* @__PURE__ */ u(S, { mx: "auto", mt: 100, sx: {
|
|
25589
25628
|
width: "300px",
|
|
25590
25629
|
position: "relative",
|
|
@@ -26054,7 +26093,7 @@ const tM = b.compose("FiltersModel", uu, b.model("FiltersModel", {
|
|
|
26054
26093
|
}, {}));
|
|
26055
26094
|
e.tables.data = k.groupBy(r, "table_schema"), e.tables.state = "idle", e.tables.error = null, e.initKeywords();
|
|
26056
26095
|
} catch (r) {
|
|
26057
|
-
if (!
|
|
26096
|
+
if (!Zt.isCancel(r)) {
|
|
26058
26097
|
e.tables.data = {};
|
|
26059
26098
|
const o = k.get(r, "message", "unkown error");
|
|
26060
26099
|
e.tables.error = k.get(r, "response.data.detail.message", o), e.tables.state = "error";
|
|
@@ -26076,7 +26115,7 @@ const tM = b.compose("FiltersModel", uu, b.model("FiltersModel", {
|
|
|
26076
26115
|
query: e.columns.sql
|
|
26077
26116
|
}, {})), e.columns.state = "idle", e.columns.error = null;
|
|
26078
26117
|
} catch (r) {
|
|
26079
|
-
if (
|
|
26118
|
+
if (Zt.isCancel(r))
|
|
26080
26119
|
e.columns.state = "idle", e.columns.error = null;
|
|
26081
26120
|
else {
|
|
26082
26121
|
e.columns.data = [];
|
|
@@ -26095,7 +26134,7 @@ const tM = b.compose("FiltersModel", uu, b.model("FiltersModel", {
|
|
|
26095
26134
|
query: e.indexes.sql
|
|
26096
26135
|
}, {})), e.indexes.state = "idle", e.indexes.error = null;
|
|
26097
26136
|
} catch (r) {
|
|
26098
|
-
if (
|
|
26137
|
+
if (Zt.isCancel(r))
|
|
26099
26138
|
e.indexes.state = "idle", e.indexes.error = null;
|
|
26100
26139
|
else {
|
|
26101
26140
|
e.indexes.data = [];
|
|
@@ -26124,7 +26163,7 @@ const tM = b.compose("FiltersModel", uu, b.model("FiltersModel", {
|
|
|
26124
26163
|
}, {}));
|
|
26125
26164
|
n.total = Number(o), n.state = "idle", n.error = null;
|
|
26126
26165
|
} catch (o) {
|
|
26127
|
-
if (
|
|
26166
|
+
if (Zt.isCancel(o))
|
|
26128
26167
|
n.state = "idle", n.error = null;
|
|
26129
26168
|
else {
|
|
26130
26169
|
n.data = [];
|
|
@@ -26491,15 +26530,15 @@ const fM = b.model({
|
|
|
26491
26530
|
},
|
|
26492
26531
|
get filtersChanged() {
|
|
26493
26532
|
const t = "filters.current";
|
|
26494
|
-
return !ke(
|
|
26533
|
+
return !ke(en(de(e, t)), de(e.origin, t));
|
|
26495
26534
|
},
|
|
26496
26535
|
get queriesChanged() {
|
|
26497
|
-
const t = "queries.current", n =
|
|
26536
|
+
const t = "queries.current", n = en(de(e, t)).map((r) => Al(r, ["id", "name", "key", "type", "sql", "run_by", "react_to", "pre_process", "post_process"]));
|
|
26498
26537
|
return !ke(n, de(e.origin, t));
|
|
26499
26538
|
},
|
|
26500
26539
|
get sqlSnippetsChanged() {
|
|
26501
26540
|
const t = "sqlSnippets.current";
|
|
26502
|
-
return !ke(
|
|
26541
|
+
return !ke(en(de(e, t)), de(e.origin, t));
|
|
26503
26542
|
},
|
|
26504
26543
|
get viewsChanged() {
|
|
26505
26544
|
const t = "views.current";
|
|
@@ -26507,7 +26546,7 @@ const fM = b.model({
|
|
|
26507
26546
|
},
|
|
26508
26547
|
get panelsChanged() {
|
|
26509
26548
|
const t = "panels.list";
|
|
26510
|
-
return !ke(
|
|
26549
|
+
return !ke(en(de(e, t)), de(e.origin, t));
|
|
26511
26550
|
},
|
|
26512
26551
|
get mockContextChanged() {
|
|
26513
26552
|
const t = "mock_context.current";
|
|
@@ -27619,7 +27658,7 @@ const KM = D(() => {
|
|
|
27619
27658
|
minHeight: "50px"
|
|
27620
27659
|
}, children: [
|
|
27621
27660
|
t.usingQuery && /* @__PURE__ */ u(j, { children: [
|
|
27622
|
-
/* @__PURE__ */ i(
|
|
27661
|
+
/* @__PURE__ */ i(on, { opacity: 0.8, color: "#000", sx: {
|
|
27623
27662
|
left: "-5px",
|
|
27624
27663
|
right: "-5px",
|
|
27625
27664
|
top: "-5px",
|
|
@@ -27684,7 +27723,7 @@ const KM = D(() => {
|
|
|
27684
27723
|
minHeight: "50px"
|
|
27685
27724
|
}, children: [
|
|
27686
27725
|
t.usingQuery && /* @__PURE__ */ u(j, { children: [
|
|
27687
|
-
/* @__PURE__ */ i(
|
|
27726
|
+
/* @__PURE__ */ i(on, { opacity: 0.8, color: "#000", sx: {
|
|
27688
27727
|
left: "-5px",
|
|
27689
27728
|
right: "-5px",
|
|
27690
27729
|
top: "-5px",
|
|
@@ -28298,9 +28337,9 @@ const Fu = Jn((e) => ({
|
|
|
28298
28337
|
/* @__PURE__ */ i(U, { variant: "filled", disabled: !t.changed, color: "primary", onClick: t.commit, children: /* @__PURE__ */ i(bn, { size: 18 }) }),
|
|
28299
28338
|
/* @__PURE__ */ i(U, { color: "red", onClick: () => e.uiModel.remove(e.variable), children: /* @__PURE__ */ i(mn, { size: 18 }) })
|
|
28300
28339
|
] }),
|
|
28301
|
-
/* @__PURE__ */ i(Sz, { value:
|
|
28340
|
+
/* @__PURE__ */ i(Sz, { value: en(t.copy), onChange: t.update, data: r })
|
|
28302
28341
|
] }),
|
|
28303
|
-
/* @__PURE__ */ i(Iz, { variable:
|
|
28342
|
+
/* @__PURE__ */ i(Iz, { variable: en(t.copy), data: r })
|
|
28304
28343
|
] });
|
|
28305
28344
|
}, zz = D(Mz), Lz = () => {
|
|
28306
28345
|
const e = Cz(), {
|
|
@@ -28317,7 +28356,7 @@ const Fu = Jn((e) => ({
|
|
|
28317
28356
|
function Az() {
|
|
28318
28357
|
const {
|
|
28319
28358
|
vizManager: e
|
|
28320
|
-
} =
|
|
28359
|
+
} = rn(Ht);
|
|
28321
28360
|
return z(() => {
|
|
28322
28361
|
const t = e.availableVizList.map((n) => ({
|
|
28323
28362
|
value: n.name,
|
|
@@ -28362,7 +28401,7 @@ function Oz() {
|
|
|
28362
28401
|
}
|
|
28363
28402
|
} = jt(), {
|
|
28364
28403
|
vizManager: h
|
|
28365
|
-
} =
|
|
28404
|
+
} = rn(Ht), m = {
|
|
28366
28405
|
title: r,
|
|
28367
28406
|
description: a,
|
|
28368
28407
|
viz: n,
|
|
@@ -28388,7 +28427,7 @@ const Fz = D(() => {
|
|
|
28388
28427
|
}
|
|
28389
28428
|
} = jt(), {
|
|
28390
28429
|
vizManager: n
|
|
28391
|
-
} =
|
|
28430
|
+
} = rn(Ht), r = R.useCallback((d) => {
|
|
28392
28431
|
if (d === t.type)
|
|
28393
28432
|
return;
|
|
28394
28433
|
const p = Rz(n, d);
|
|
@@ -29495,7 +29534,7 @@ WHERE
|
|
|
29495
29534
|
}) => /* @__PURE__ */ u(P, { sx: {
|
|
29496
29535
|
position: "relative"
|
|
29497
29536
|
}, children: [
|
|
29498
|
-
e && /* @__PURE__ */ i(
|
|
29537
|
+
e && /* @__PURE__ */ i(on, { opacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
|
|
29499
29538
|
/* @__PURE__ */ i(ot, { height: "500px", defaultLanguage: "javascript", value: t, onChange: (o) => {
|
|
29500
29539
|
o && n(o);
|
|
29501
29540
|
}, theme: "vs-dark", options: {
|
|
@@ -30032,7 +30071,7 @@ const c$ = {
|
|
|
30032
30071
|
h.datasources.replace(d);
|
|
30033
30072
|
}, [d]), R.useEffect(() => {
|
|
30034
30073
|
h.globalSQLSnippets.replace(p);
|
|
30035
|
-
}, [p]), R.useEffect(() => ft(() =>
|
|
30074
|
+
}, [p]), R.useEffect(() => ft(() => an(h.json), (v) => {
|
|
30036
30075
|
s == null || s(v);
|
|
30037
30076
|
}), [h]);
|
|
30038
30077
|
const m = async () => {
|
|
@@ -30480,10 +30519,10 @@ var Co = {}, _$ = {
|
|
|
30480
30519
|
try {
|
|
30481
30520
|
if (["x", "X"].indexOf(ht) > -1)
|
|
30482
30521
|
return new Date((ht === "X" ? 1e3 : 1) * Yt);
|
|
30483
|
-
var at = w(ht)(Yt), Qt = at.year, xn = at.month, Er = at.day, Rr = at.hours, Ei = at.minutes, Ri = at.seconds, ir = at.milliseconds, Pn = at.zone,
|
|
30484
|
-
Qt && !xn || (Vn = xn > 0 ? xn - 1 :
|
|
30485
|
-
var Nn = Rr || 0, or = Ei || 0, ar = Ri || 0,
|
|
30486
|
-
return Pn ? new Date(Date.UTC(
|
|
30522
|
+
var at = w(ht)(Yt), Qt = at.year, xn = at.month, Er = at.day, Rr = at.hours, Ei = at.minutes, Ri = at.seconds, ir = at.milliseconds, Pn = at.zone, ln = /* @__PURE__ */ new Date(), vn = Er || (Qt || xn ? 1 : ln.getDate()), cn = Qt || ln.getFullYear(), Vn = 0;
|
|
30523
|
+
Qt && !xn || (Vn = xn > 0 ? xn - 1 : ln.getMonth());
|
|
30524
|
+
var Nn = Rr || 0, or = Ei || 0, ar = Ri || 0, dn = ir || 0;
|
|
30525
|
+
return Pn ? new Date(Date.UTC(cn, Vn, vn, Nn, or, ar, dn + 60 * Pn.offset * 1e3)) : Ft ? new Date(Date.UTC(cn, Vn, vn, Nn, or, ar, dn)) : new Date(cn, Vn, vn, Nn, or, ar, dn);
|
|
30487
30526
|
} catch {
|
|
30488
30527
|
return /* @__PURE__ */ new Date("");
|
|
30489
30528
|
}
|