@devtable/dashboard 4.6.0 → 4.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dashboard.es.js +61 -52
- package/dist/dashboard.umd.js +4 -4
- package/dist/style.css +1 -1
- package/package.json +17 -17
package/dist/dashboard.es.js
CHANGED
|
@@ -14,7 +14,7 @@ import { Calendar as yh, Refresh as Ns, DeviceFloppy as kt, Trash as Ct, Playlis
|
|
|
14
14
|
import zh from "axios";
|
|
15
15
|
import { Prism as qr } from "@mantine/prism";
|
|
16
16
|
import { cast as Fr, types as fe, getRoot as ls, flow as Fh, toGenerator as Dh, addDisposer as Oh } from "mobx-state-tree";
|
|
17
|
-
import { randomId as
|
|
17
|
+
import { randomId as Wt, useClipboard as $h, useElementSize as oa, useInputState as Gs } from "@mantine/hooks";
|
|
18
18
|
import Hs, { RichTextEditor as Us } from "@mantine/rte";
|
|
19
19
|
import { makeAutoObservable as xa, runInAction as xn, observable as Ws, toJS as ai, reaction as Ca } from "mobx";
|
|
20
20
|
import { showNotification as Sa } from "@mantine/notifications";
|
|
@@ -413,7 +413,7 @@ function Hh() {
|
|
|
413
413
|
__source: !0
|
|
414
414
|
}, gt, $t, _t;
|
|
415
415
|
_t = {};
|
|
416
|
-
function
|
|
416
|
+
function Ht(M) {
|
|
417
417
|
if (K.call(M, "ref")) {
|
|
418
418
|
var be = Object.getOwnPropertyDescriptor(M, "ref").get;
|
|
419
419
|
if (be && be.isReactWarning)
|
|
@@ -486,7 +486,7 @@ function Hh() {
|
|
|
486
486
|
function Wr(M, be, Se, Me, at) {
|
|
487
487
|
{
|
|
488
488
|
var dt, Ze = {}, We = null, Et = null;
|
|
489
|
-
Se !== void 0 && (Re(Se), We = "" + Se), ht(be) && (Re(be.key), We = "" + be.key),
|
|
489
|
+
Se !== void 0 && (Re(Se), We = "" + Se), ht(be) && (Re(be.key), We = "" + be.key), Ht(be) && (Et = be.ref, Nt(be, at));
|
|
490
490
|
for (dt in be)
|
|
491
491
|
K.call(be, dt) && !Pe.hasOwnProperty(dt) && (Ze[dt] = be[dt]);
|
|
492
492
|
if (M && M.defaultProps) {
|
|
@@ -995,7 +995,7 @@ const il = te.forwardRef(function({
|
|
|
995
995
|
conf: {}
|
|
996
996
|
},
|
|
997
997
|
setViz: Je.noop
|
|
998
|
-
},
|
|
998
|
+
}, Gt = te.createContext(rg), ng = `
|
|
999
999
|
-- You may reference global variables in SQL or VizConfig.
|
|
1000
1000
|
SELECT *
|
|
1001
1001
|
FROM commit
|
|
@@ -1371,7 +1371,7 @@ const lg = Oe(function({
|
|
|
1371
1371
|
n.queries.current.findIndex((l) => l.id === t) === -1 && i();
|
|
1372
1372
|
}, [t, n.queries.current, i]);
|
|
1373
1373
|
const a = () => {
|
|
1374
|
-
const s =
|
|
1374
|
+
const s = Wt();
|
|
1375
1375
|
n.queries.append(Fr({
|
|
1376
1376
|
id: s,
|
|
1377
1377
|
type: sr.Postgresql,
|
|
@@ -1467,7 +1467,7 @@ function cg({
|
|
|
1467
1467
|
}
|
|
1468
1468
|
const dg = Oe(function() {
|
|
1469
1469
|
const t = Rt(), r = () => t.sqlSnippets.append(Fr({
|
|
1470
|
-
key:
|
|
1470
|
+
key: Wt(),
|
|
1471
1471
|
value: ""
|
|
1472
1472
|
}));
|
|
1473
1473
|
return /* @__PURE__ */ F(we, {
|
|
@@ -1622,7 +1622,7 @@ const hg = Oe(function({
|
|
|
1622
1622
|
})
|
|
1623
1623
|
});
|
|
1624
1624
|
});
|
|
1625
|
-
var
|
|
1625
|
+
var Ut = /* @__PURE__ */ ((e) => (e.Select = "select", e.MultiSelect = "multi-select", e.TextInput = "text-input", e.Checkbox = "checkbox", e.DateRange = "date-range", e))(Ut || {});
|
|
1626
1626
|
const cl = fe.model({
|
|
1627
1627
|
type: fe.enumeration("DataSourceType", [sr.Postgresql, sr.MySQL, sr.HTTP]),
|
|
1628
1628
|
key: fe.string,
|
|
@@ -2115,12 +2115,12 @@ const bg = Oe(function({
|
|
|
2115
2115
|
});
|
|
2116
2116
|
const Rg = Oe(function() {
|
|
2117
2117
|
const t = Rt(), r = t.filters.current, n = () => {
|
|
2118
|
-
const i =
|
|
2118
|
+
const i = Wt(), a = {
|
|
2119
2119
|
id: i,
|
|
2120
2120
|
key: i,
|
|
2121
2121
|
label: i,
|
|
2122
2122
|
order: r.length + 1,
|
|
2123
|
-
type:
|
|
2123
|
+
type: Ut.TextInput,
|
|
2124
2124
|
config: fl(),
|
|
2125
2125
|
visibleInViewsIDs: ["Main"]
|
|
2126
2126
|
};
|
|
@@ -2346,7 +2346,7 @@ const zg = Oe(() => {
|
|
|
2346
2346
|
sx: {
|
|
2347
2347
|
flexGrow: 1
|
|
2348
2348
|
},
|
|
2349
|
-
children: ["Editing ", (i = r.views.VIE) == null ? void 0 : i.
|
|
2349
|
+
children: ["Editing ", (i = r.views.VIE) == null ? void 0 : i.name]
|
|
2350
2350
|
}), /* @__PURE__ */ o(je, {
|
|
2351
2351
|
size: 18,
|
|
2352
2352
|
color: "red",
|
|
@@ -2524,6 +2524,7 @@ const gl = Oe(function({
|
|
|
2524
2524
|
return /* @__PURE__ */ F(se, {
|
|
2525
2525
|
position: "apart",
|
|
2526
2526
|
pt: 0,
|
|
2527
|
+
px: 10,
|
|
2527
2528
|
pb: "xs",
|
|
2528
2529
|
children: [/* @__PURE__ */ o(se, {
|
|
2529
2530
|
position: "left",
|
|
@@ -2619,7 +2620,7 @@ function pl() {
|
|
|
2619
2620
|
} = te.useContext(cr), [t, r] = te.useState(!1), {
|
|
2620
2621
|
title: n,
|
|
2621
2622
|
description: i
|
|
2622
|
-
} = te.useContext(
|
|
2623
|
+
} = te.useContext(Gt);
|
|
2623
2624
|
return te.useEffect(() => {
|
|
2624
2625
|
e(t);
|
|
2625
2626
|
}, [t]), !i || i === "<p><br></p>" ? null : /* @__PURE__ */ F(xt, {
|
|
@@ -4033,10 +4034,10 @@ var _l = { exports: {} };
|
|
|
4033
4034
|
$t.test = function(u) {
|
|
4034
4035
|
return de.test(u) || xe.test(u) || ge.test(u) || Re.test(u) || qe.test(u) || Pe.test(u);
|
|
4035
4036
|
};
|
|
4036
|
-
var _t = $t,
|
|
4037
|
+
var _t = $t, Ht = ae, ht = Y, Nt = x, $r = g.type, Bt = K, Tr = _t;
|
|
4037
4038
|
ht.prototype.css = function(u) {
|
|
4038
4039
|
return Bt(this._rgb, u);
|
|
4039
|
-
},
|
|
4040
|
+
}, Ht.css = function() {
|
|
4040
4041
|
for (var u = [], f = arguments.length; f--; )
|
|
4041
4042
|
u[f] = arguments[f];
|
|
4042
4043
|
return new (Function.prototype.bind.apply(ht, [null].concat(u, ["css"])))();
|
|
@@ -5422,7 +5423,7 @@ const kn = _l.exports, wl = (e, t) => {
|
|
|
5422
5423
|
getColor: li(["#fff7f1", "darkorange", "#b60000"]),
|
|
5423
5424
|
name: "orange",
|
|
5424
5425
|
category: "sequential"
|
|
5425
|
-
}, up = "4.
|
|
5426
|
+
}, up = "4.7.0";
|
|
5426
5427
|
class cp {
|
|
5427
5428
|
constructor(t) {
|
|
5428
5429
|
Ge(this, "staticColors", /* @__PURE__ */ new Map());
|
|
@@ -5831,7 +5832,7 @@ function yp({
|
|
|
5831
5832
|
const Cl = te.forwardRef(yp);
|
|
5832
5833
|
function ui() {
|
|
5833
5834
|
return {
|
|
5834
|
-
name:
|
|
5835
|
+
name: Wt(),
|
|
5835
5836
|
size: "20px",
|
|
5836
5837
|
weight: "bold",
|
|
5837
5838
|
color: {
|
|
@@ -8876,8 +8877,8 @@ function sv(e) {
|
|
|
8876
8877
|
if ($t) {
|
|
8877
8878
|
var _t = rt.current($t, h);
|
|
8878
8879
|
if (_t !== Pe.size) {
|
|
8879
|
-
var
|
|
8880
|
-
Pe.start <
|
|
8880
|
+
var Ht = Ce.current.scrollOffset;
|
|
8881
|
+
Pe.start < Ht && S(Ht + (_t - Pe.size)), G.current.push(Re), I(function(ht) {
|
|
8881
8882
|
var Nt;
|
|
8882
8883
|
return Nr(Nr({}, ht), {}, (Nt = {}, Nt[Pe.key] = _t, Nt));
|
|
8883
8884
|
});
|
|
@@ -9701,7 +9702,7 @@ function Zv({
|
|
|
9701
9702
|
t && n.setValues(s);
|
|
9702
9703
|
}, [t]);
|
|
9703
9704
|
const i = e.data || [], a = () => n.insertListItem("columns", {
|
|
9704
|
-
label:
|
|
9705
|
+
label: Wt(),
|
|
9705
9706
|
value_field: "value",
|
|
9706
9707
|
value_type: Er.string
|
|
9707
9708
|
});
|
|
@@ -11941,7 +11942,7 @@ function W0({
|
|
|
11941
11942
|
...s[b]
|
|
11942
11943
|
})), c = () => i({
|
|
11943
11944
|
type: "bar",
|
|
11944
|
-
name:
|
|
11945
|
+
name: Wt(),
|
|
11945
11946
|
showSymbol: !1,
|
|
11946
11947
|
symbolSize: 5,
|
|
11947
11948
|
y_axis_data_key: "value",
|
|
@@ -12661,7 +12662,7 @@ function ub({
|
|
|
12661
12662
|
...p,
|
|
12662
12663
|
...s[d]
|
|
12663
12664
|
})), c = () => i({
|
|
12664
|
-
name:
|
|
12665
|
+
name: Wt(),
|
|
12665
12666
|
data_key: "",
|
|
12666
12667
|
max: 100,
|
|
12667
12668
|
color: "red"
|
|
@@ -14062,7 +14063,7 @@ const Hb = Oe(({
|
|
|
14062
14063
|
sampleData: a,
|
|
14063
14064
|
variables: s
|
|
14064
14065
|
} = e, l = Gb(n, t), c = async () => {
|
|
14065
|
-
const d = await n.triggerManager.createOrGetTrigger(
|
|
14066
|
+
const d = await n.triggerManager.createOrGetTrigger(Wt(), n.triggerManager.getTriggerSchemaList()[0]), m = await n.operationManager.createOrGetOperation(Wt(), n.operationManager.getOperationSchemaList()[0]);
|
|
14066
14067
|
await n.addInteraction(d, m), r((b) => b + 1);
|
|
14067
14068
|
};
|
|
14068
14069
|
async function p(d) {
|
|
@@ -14093,7 +14094,7 @@ const Hb = Oe(({
|
|
|
14093
14094
|
queryID: i,
|
|
14094
14095
|
description: a,
|
|
14095
14096
|
setViz: s
|
|
14096
|
-
} = nr(
|
|
14097
|
+
} = nr(Gt), {
|
|
14097
14098
|
vizManager: l
|
|
14098
14099
|
} = nr(br), c = {
|
|
14099
14100
|
title: r,
|
|
@@ -14130,7 +14131,7 @@ function Qb() {
|
|
|
14130
14131
|
const {
|
|
14131
14132
|
description: e,
|
|
14132
14133
|
setDescription: t
|
|
14133
|
-
} = te.useContext(
|
|
14134
|
+
} = te.useContext(Gt), [r, n] = te.useState(e), i = e !== r, a = te.useCallback(() => {
|
|
14134
14135
|
!i || t(r);
|
|
14135
14136
|
}, [i, r]);
|
|
14136
14137
|
return /* @__PURE__ */ F(we, {
|
|
@@ -14164,7 +14165,7 @@ function Qb() {
|
|
|
14164
14165
|
function Zb() {
|
|
14165
14166
|
const {
|
|
14166
14167
|
title: e
|
|
14167
|
-
} = te.useContext(
|
|
14168
|
+
} = te.useContext(Gt);
|
|
14168
14169
|
return /* @__PURE__ */ o(ln, {
|
|
14169
14170
|
children: /* @__PURE__ */ F(we, {
|
|
14170
14171
|
mx: "auto",
|
|
@@ -14215,7 +14216,7 @@ function Xb() {
|
|
|
14215
14216
|
const {
|
|
14216
14217
|
title: e,
|
|
14217
14218
|
setTitle: t
|
|
14218
|
-
} = te.useContext(
|
|
14219
|
+
} = te.useContext(Gt), [r, n] = Gs(e), i = e !== r, a = te.useCallback(() => {
|
|
14219
14220
|
!i || t(r);
|
|
14220
14221
|
}, [i, r]);
|
|
14221
14222
|
return /* @__PURE__ */ o(Le, {
|
|
@@ -14267,7 +14268,7 @@ const Jb = Oe(function() {
|
|
|
14267
14268
|
const t = Rt(), {
|
|
14268
14269
|
queryID: r,
|
|
14269
14270
|
setQueryID: n
|
|
14270
|
-
} = te.useContext(
|
|
14271
|
+
} = te.useContext(Gt), i = te.useMemo(() => t.queries.current.map((a) => ({
|
|
14271
14272
|
value: a.id,
|
|
14272
14273
|
label: a.id
|
|
14273
14274
|
})), [t.queries.current]);
|
|
@@ -14359,7 +14360,7 @@ function r1(e, t) {
|
|
|
14359
14360
|
id: a,
|
|
14360
14361
|
description: s,
|
|
14361
14362
|
queryID: l
|
|
14362
|
-
} = nr(
|
|
14363
|
+
} = nr(Gt), c = {
|
|
14363
14364
|
title: i,
|
|
14364
14365
|
id: a,
|
|
14365
14366
|
description: s,
|
|
@@ -14429,7 +14430,7 @@ function i1() {
|
|
|
14429
14430
|
data: e,
|
|
14430
14431
|
loading: t,
|
|
14431
14432
|
viz: r
|
|
14432
|
-
} = te.useContext(
|
|
14433
|
+
} = te.useContext(Gt);
|
|
14433
14434
|
return /* @__PURE__ */ o(su, {
|
|
14434
14435
|
viz: r,
|
|
14435
14436
|
data: e,
|
|
@@ -14465,7 +14466,7 @@ function s1() {
|
|
|
14465
14466
|
setQueryID: l,
|
|
14466
14467
|
setViz: c,
|
|
14467
14468
|
id: p
|
|
14468
|
-
} = nr(
|
|
14469
|
+
} = nr(Gt), {
|
|
14469
14470
|
vizManager: d
|
|
14470
14471
|
} = nr(br), m = {
|
|
14471
14472
|
title: t,
|
|
@@ -14495,7 +14496,7 @@ function l1() {
|
|
|
14495
14496
|
data: e,
|
|
14496
14497
|
viz: t,
|
|
14497
14498
|
setViz: r
|
|
14498
|
-
} = te.useContext(
|
|
14499
|
+
} = te.useContext(Gt), [n, i] = Gs(t.type), a = t.type !== n, {
|
|
14499
14500
|
vizManager: s
|
|
14500
14501
|
} = nr(br), l = te.useCallback(() => {
|
|
14501
14502
|
if (!a)
|
|
@@ -14582,7 +14583,7 @@ const c1 = Oe(function({
|
|
|
14582
14583
|
} = te.useContext(cr), [i, a] = Vt("Visualization"), {
|
|
14583
14584
|
loading: s,
|
|
14584
14585
|
title: l
|
|
14585
|
-
} = te.useContext(
|
|
14586
|
+
} = te.useContext(Gt);
|
|
14586
14587
|
return te.useEffect(() => {
|
|
14587
14588
|
n(t);
|
|
14588
14589
|
}, [t]), /* @__PURE__ */ o(lr, {
|
|
@@ -14662,7 +14663,7 @@ const d1 = Oe(function({
|
|
|
14662
14663
|
id: c,
|
|
14663
14664
|
title: p,
|
|
14664
14665
|
queryID: d
|
|
14665
|
-
} = te.useContext(
|
|
14666
|
+
} = te.useContext(Gt), {
|
|
14666
14667
|
inEditMode: m
|
|
14667
14668
|
} = te.useContext(cr), b = () => r.queries.refetchDataByQueryID(d), {
|
|
14668
14669
|
viewPanelInFullScreen: h,
|
|
@@ -14782,7 +14783,7 @@ const Za = Oe(function({
|
|
|
14782
14783
|
data: x,
|
|
14783
14784
|
state: C
|
|
14784
14785
|
} = l.getDataStuffByID(b), A = C === "loading";
|
|
14785
|
-
return /* @__PURE__ */ o(
|
|
14786
|
+
return /* @__PURE__ */ o(Gt.Provider, {
|
|
14786
14787
|
value: {
|
|
14787
14788
|
id: a,
|
|
14788
14789
|
data: x,
|
|
@@ -15009,11 +15010,14 @@ const f1 = te.forwardRef(({
|
|
|
15009
15010
|
border: "1px solid #efefef"
|
|
15010
15011
|
},
|
|
15011
15012
|
body: {
|
|
15012
|
-
|
|
15013
|
-
|
|
15013
|
+
"> div": {
|
|
15014
|
+
maxHeight: t.config.height,
|
|
15015
|
+
overflow: "scroll"
|
|
15016
|
+
}
|
|
15014
15017
|
}
|
|
15015
15018
|
},
|
|
15016
15019
|
withinPortal: !1,
|
|
15020
|
+
transitionDuration: 0,
|
|
15017
15021
|
children: e
|
|
15018
15022
|
})), _1 = Oe(({
|
|
15019
15023
|
view: e,
|
|
@@ -15048,6 +15052,7 @@ const f1 = te.forwardRef(({
|
|
|
15048
15052
|
},
|
|
15049
15053
|
children: /* @__PURE__ */ F(ot, {
|
|
15050
15054
|
className: "dashboard-view",
|
|
15055
|
+
mx: -10,
|
|
15051
15056
|
sx: {
|
|
15052
15057
|
position: "relative",
|
|
15053
15058
|
height: "100%"
|
|
@@ -15215,11 +15220,11 @@ const f1 = te.forwardRef(({
|
|
|
15215
15220
|
order: fe.number,
|
|
15216
15221
|
visibleInViewsIDs: fe.array(fe.string),
|
|
15217
15222
|
type: fe.enumeration("DashboardFilterType", [
|
|
15218
|
-
|
|
15219
|
-
|
|
15220
|
-
|
|
15221
|
-
|
|
15222
|
-
|
|
15223
|
+
Ut.Select,
|
|
15224
|
+
Ut.MultiSelect,
|
|
15225
|
+
Ut.TextInput,
|
|
15226
|
+
Ut.Checkbox,
|
|
15227
|
+
Ut.DateRange
|
|
15223
15228
|
]),
|
|
15224
15229
|
config: fe.union(
|
|
15225
15230
|
fu,
|
|
@@ -15240,19 +15245,19 @@ const f1 = te.forwardRef(({
|
|
|
15240
15245
|
},
|
|
15241
15246
|
setType(t) {
|
|
15242
15247
|
switch (t) {
|
|
15243
|
-
case
|
|
15248
|
+
case Ut.Select:
|
|
15244
15249
|
e.config = C1();
|
|
15245
15250
|
break;
|
|
15246
|
-
case
|
|
15251
|
+
case Ut.MultiSelect:
|
|
15247
15252
|
e.config = S1();
|
|
15248
15253
|
break;
|
|
15249
|
-
case
|
|
15254
|
+
case Ut.TextInput:
|
|
15250
15255
|
e.config = fl();
|
|
15251
15256
|
break;
|
|
15252
|
-
case
|
|
15257
|
+
case Ut.Checkbox:
|
|
15253
15258
|
e.config = k1();
|
|
15254
15259
|
break;
|
|
15255
|
-
case
|
|
15260
|
+
case Ut.DateRange:
|
|
15256
15261
|
e.config = R1();
|
|
15257
15262
|
break;
|
|
15258
15263
|
}
|
|
@@ -17776,7 +17781,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
17776
17781
|
for (U = Re; ie = E.heap[1], E.heap[1] = E.heap[E.heap_len--], De(E, de, 1), re = E.heap[1], E.heap[--E.heap_max] = ie, E.heap[--E.heap_max] = re, de[2 * U] = de[2 * ie] + de[2 * re], E.depth[U] = (E.depth[ie] >= E.depth[re] ? E.depth[ie] : E.depth[re]) + 1, de[2 * ie + 1] = de[2 * re + 1] = U, E.heap[1] = U++, De(E, de, 1), 2 <= E.heap_len; )
|
|
17777
17782
|
;
|
|
17778
17783
|
E.heap[--E.heap_max] = E.heap[1], function(Pe, gt) {
|
|
17779
|
-
var $t, _t,
|
|
17784
|
+
var $t, _t, Ht, ht, Nt, $r, Bt = gt.dyn_tree, Tr = gt.max_code, Wr = gt.stat_desc.static_tree, Mr = gt.stat_desc.has_stree, Yr = gt.stat_desc.extra_bits, Qt = gt.stat_desc.extra_base, Zt = gt.stat_desc.max_length, ar = 0;
|
|
17780
17785
|
for (ht = 0; ht <= x; ht++)
|
|
17781
17786
|
Pe.bl_count[ht] = 0;
|
|
17782
17787
|
for (Bt[2 * Pe.heap[Pe.heap_max] + 1] = 0, $t = Pe.heap_max + 1; $t < g; $t++)
|
|
@@ -17789,7 +17794,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
17789
17794
|
} while (0 < ar);
|
|
17790
17795
|
for (ht = Zt; ht !== 0; ht--)
|
|
17791
17796
|
for (_t = Pe.bl_count[ht]; _t !== 0; )
|
|
17792
|
-
Tr < (
|
|
17797
|
+
Tr < (Ht = Pe.heap[--$t]) || (Bt[2 * Ht + 1] !== ht && (Pe.opt_len += (ht - Bt[2 * Ht + 1]) * Bt[2 * Ht], Bt[2 * Ht + 1] = ht), _t--);
|
|
17793
17798
|
}
|
|
17794
17799
|
}(E, P), ue(de, qe, E.bl_count);
|
|
17795
17800
|
}
|
|
@@ -18347,7 +18352,7 @@ const bu = fe.model("QueryModel", {
|
|
|
18347
18352
|
e.current = Fr(t);
|
|
18348
18353
|
},
|
|
18349
18354
|
addANewPanel() {
|
|
18350
|
-
const t =
|
|
18355
|
+
const t = Wt();
|
|
18351
18356
|
e.current.push({
|
|
18352
18357
|
id: t,
|
|
18353
18358
|
layout: {
|
|
@@ -18383,7 +18388,7 @@ const bu = fe.model("QueryModel", {
|
|
|
18383
18388
|
}
|
|
18384
18389
|
e.current.push({
|
|
18385
18390
|
...r,
|
|
18386
|
-
id:
|
|
18391
|
+
id: Wt(),
|
|
18387
18392
|
layout: {
|
|
18388
18393
|
...r.layout,
|
|
18389
18394
|
x: 0,
|
|
@@ -18479,7 +18484,7 @@ const bu = fe.model("QueryModel", {
|
|
|
18479
18484
|
},
|
|
18480
18485
|
addANewView(t, r, n) {
|
|
18481
18486
|
e.current.push({
|
|
18482
|
-
id:
|
|
18487
|
+
id: t,
|
|
18483
18488
|
name: t,
|
|
18484
18489
|
type: r,
|
|
18485
18490
|
config: n,
|
|
@@ -18511,11 +18516,15 @@ const bu = fe.model("QueryModel", {
|
|
|
18511
18516
|
}
|
|
18512
18517
|
})).actions((e) => ({
|
|
18513
18518
|
addARandomNewView() {
|
|
18514
|
-
const t =
|
|
18519
|
+
const t = Wt();
|
|
18515
18520
|
e.addANewView(t, pr.Division, {}), e.setIDOfVIE(t);
|
|
18516
18521
|
},
|
|
18517
18522
|
removeVIE() {
|
|
18518
18523
|
e.current.length !== 1 && (e.removeByID(e.idOfVIE), e.setIDOfVIE(e.current[0].id));
|
|
18524
|
+
},
|
|
18525
|
+
rmVisibleViewID(t) {
|
|
18526
|
+
const r = e.visibleViewIDs.findIndex((n) => n === t);
|
|
18527
|
+
r !== -1 && e.visibleViewIDs.splice(r, 1);
|
|
18519
18528
|
}
|
|
18520
18529
|
}));
|
|
18521
18530
|
function V1(e) {
|
|
@@ -18683,7 +18692,7 @@ export {
|
|
|
18683
18692
|
w1 as MainDashboardView,
|
|
18684
18693
|
tl as ModelContextProvider,
|
|
18685
18694
|
Za as Panel,
|
|
18686
|
-
|
|
18695
|
+
Gt as PanelContext,
|
|
18687
18696
|
O1 as QueriesModel,
|
|
18688
18697
|
D1 as QueryModel,
|
|
18689
18698
|
my as ReadOnlyDashboard,
|