@devtable/dashboard 8.49.3 → 8.50.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/dashboard.es.js
CHANGED
|
@@ -13667,7 +13667,7 @@ const yte = (e) => {
|
|
|
13667
13667
|
getColor: Xh(["#fff7f1", "darkorange", "#b60000"]),
|
|
13668
13668
|
name: "orange",
|
|
13669
13669
|
category: "sequential"
|
|
13670
|
-
}, Rk = "@devtable/dashboard", MC = "8.
|
|
13670
|
+
}, Rk = "@devtable/dashboard", MC = "8.50.0", Fk = "Apache-2.0", kk = {
|
|
13671
13671
|
access: "public",
|
|
13672
13672
|
registry: "https://registry.npmjs.org/"
|
|
13673
13673
|
}, Ik = [
|
|
@@ -69399,15 +69399,16 @@ const z8 = {
|
|
|
69399
69399
|
}
|
|
69400
69400
|
}
|
|
69401
69401
|
}, yMe = Ie(({
|
|
69402
|
-
saveDashboardChanges: e
|
|
69402
|
+
saveDashboardChanges: e,
|
|
69403
|
+
headerSlot: t = null
|
|
69403
69404
|
}) => {
|
|
69404
|
-
const
|
|
69405
|
-
const
|
|
69406
|
-
hAe(
|
|
69407
|
-
},
|
|
69408
|
-
|
|
69409
|
-
},
|
|
69410
|
-
|
|
69405
|
+
const r = gMe(), n = wt(), a = () => {
|
|
69406
|
+
const c = JSON.stringify(n.json, null, 2);
|
|
69407
|
+
hAe(n.name, c);
|
|
69408
|
+
}, i = () => {
|
|
69409
|
+
r(`/dashboard/${n.id}`);
|
|
69410
|
+
}, o = Ns(), s = () => {
|
|
69411
|
+
o.openConfirmModal({
|
|
69411
69412
|
title: /* @__PURE__ */ I(fe, {
|
|
69412
69413
|
position: "left",
|
|
69413
69414
|
children: [/* @__PURE__ */ h(GE, {
|
|
@@ -69425,12 +69426,12 @@ const z8 = {
|
|
|
69425
69426
|
color: "red"
|
|
69426
69427
|
},
|
|
69427
69428
|
onCancel: () => console.log("Cancel"),
|
|
69428
|
-
onConfirm:
|
|
69429
|
+
onConfirm: i,
|
|
69429
69430
|
zIndex: 320,
|
|
69430
69431
|
withCloseButton: !1
|
|
69431
69432
|
});
|
|
69432
|
-
},
|
|
69433
|
-
|
|
69433
|
+
}, l = () => {
|
|
69434
|
+
o.openConfirmModal({
|
|
69434
69435
|
title: /* @__PURE__ */ I(fe, {
|
|
69435
69436
|
position: "left",
|
|
69436
69437
|
children: [/* @__PURE__ */ h(GE, {
|
|
@@ -69448,11 +69449,11 @@ const z8 = {
|
|
|
69448
69449
|
color: "red"
|
|
69449
69450
|
},
|
|
69450
69451
|
onCancel: () => console.log("Cancel"),
|
|
69451
|
-
onConfirm: () =>
|
|
69452
|
+
onConfirm: () => n.reset(),
|
|
69452
69453
|
zIndex: 320,
|
|
69453
69454
|
withCloseButton: !1
|
|
69454
69455
|
});
|
|
69455
|
-
},
|
|
69456
|
+
}, u = n.changed;
|
|
69456
69457
|
return /* @__PURE__ */ h(p9, {
|
|
69457
69458
|
height: 60,
|
|
69458
69459
|
px: "md",
|
|
@@ -69469,26 +69470,26 @@ const z8 = {
|
|
|
69469
69470
|
children: [/* @__PURE__ */ h(fe, {
|
|
69470
69471
|
children: /* @__PURE__ */ h(He, {
|
|
69471
69472
|
size: "xs",
|
|
69472
|
-
color:
|
|
69473
|
+
color: u ? "red" : "green",
|
|
69473
69474
|
leftIcon: /* @__PURE__ */ h(E7, {
|
|
69474
69475
|
size: 20
|
|
69475
69476
|
}),
|
|
69476
|
-
onClick:
|
|
69477
|
+
onClick: u ? s : i,
|
|
69477
69478
|
children: /* @__PURE__ */ I(fe, {
|
|
69478
69479
|
spacing: 4,
|
|
69479
69480
|
children: ["End Editing", /* @__PURE__ */ h(ye, {
|
|
69480
69481
|
td: "underline",
|
|
69481
|
-
children:
|
|
69482
|
+
children: n.name
|
|
69482
69483
|
})]
|
|
69483
69484
|
})
|
|
69484
69485
|
})
|
|
69485
|
-
}), /* @__PURE__ */ I(fe, {
|
|
69486
|
+
}), t, /* @__PURE__ */ I(fe, {
|
|
69486
69487
|
position: "right",
|
|
69487
69488
|
children: [/* @__PURE__ */ h(He, {
|
|
69488
69489
|
variant: "filled",
|
|
69489
69490
|
size: "xs",
|
|
69490
|
-
disabled: !
|
|
69491
|
-
onClick: () =>
|
|
69491
|
+
disabled: !n.views.VIE,
|
|
69492
|
+
onClick: () => n.addANewPanel(n.views.idOfVIE),
|
|
69492
69493
|
leftIcon: /* @__PURE__ */ h(oq, {
|
|
69493
69494
|
size: 20
|
|
69494
69495
|
}),
|
|
@@ -69502,7 +69503,7 @@ const z8 = {
|
|
|
69502
69503
|
children: /* @__PURE__ */ h(Ct, {
|
|
69503
69504
|
variant: "default",
|
|
69504
69505
|
size: "md",
|
|
69505
|
-
onClick:
|
|
69506
|
+
onClick: a,
|
|
69506
69507
|
children: /* @__PURE__ */ h(q7, {
|
|
69507
69508
|
size: 18
|
|
69508
69509
|
})
|
|
@@ -69513,7 +69514,7 @@ const z8 = {
|
|
|
69513
69514
|
children: /* @__PURE__ */ h(Ct, {
|
|
69514
69515
|
variant: "default",
|
|
69515
69516
|
size: "md",
|
|
69516
|
-
onClick:
|
|
69517
|
+
onClick: n.queries.downloadAllData,
|
|
69517
69518
|
children: /* @__PURE__ */ h(X7, {
|
|
69518
69519
|
size: 18
|
|
69519
69520
|
})
|
|
@@ -69527,8 +69528,8 @@ const z8 = {
|
|
|
69527
69528
|
children: /* @__PURE__ */ h(Ct, {
|
|
69528
69529
|
variant: "default",
|
|
69529
69530
|
size: "md",
|
|
69530
|
-
disabled: !
|
|
69531
|
-
onClick:
|
|
69531
|
+
disabled: !u,
|
|
69532
|
+
onClick: l,
|
|
69532
69533
|
children: /* @__PURE__ */ h(oF, {
|
|
69533
69534
|
size: 20,
|
|
69534
69535
|
color: "red"
|
|
@@ -69542,7 +69543,7 @@ const z8 = {
|
|
|
69542
69543
|
size: 18
|
|
69543
69544
|
}),
|
|
69544
69545
|
onClick: e,
|
|
69545
|
-
disabled: !
|
|
69546
|
+
disabled: !u,
|
|
69546
69547
|
children: "Save Changes"
|
|
69547
69548
|
})]
|
|
69548
69549
|
})]
|
|
@@ -78976,39 +78977,41 @@ const VIe = {
|
|
|
78976
78977
|
update: n,
|
|
78977
78978
|
className: a = "dashboard",
|
|
78978
78979
|
config: i,
|
|
78979
|
-
onChange: o
|
|
78980
|
-
|
|
78980
|
+
onChange: o,
|
|
78981
|
+
headerSlot: s
|
|
78982
|
+
}, l) {
|
|
78981
78983
|
BIe(i.monacoPath), v8(i);
|
|
78982
78984
|
const {
|
|
78983
|
-
data:
|
|
78984
|
-
} = Sd(uE), [
|
|
78985
|
-
Pe.useImperativeHandle(
|
|
78986
|
-
|
|
78985
|
+
data: u = []
|
|
78986
|
+
} = Sd(uE), [c, d] = Pe.useState(!1), f = Pe.useMemo(() => F8(r, u, t), [r]);
|
|
78987
|
+
Pe.useImperativeHandle(l, () => f, [f]), eF(f, !0), Pe.useEffect(() => {
|
|
78988
|
+
f.context.replace(t);
|
|
78987
78989
|
}, [t]), Pe.useEffect(() => {
|
|
78988
|
-
|
|
78989
|
-
}, [
|
|
78990
|
-
o == null || o(
|
|
78991
|
-
}), [
|
|
78992
|
-
const
|
|
78993
|
-
await n(
|
|
78994
|
-
},
|
|
78990
|
+
f.datasources.replace(u);
|
|
78991
|
+
}, [u]), Pe.useEffect(() => qi(() => As(f.json), (g) => {
|
|
78992
|
+
o == null || o(g);
|
|
78993
|
+
}), [f]);
|
|
78994
|
+
const p = async () => {
|
|
78995
|
+
await n(f.json);
|
|
78996
|
+
}, m = yi(rE, []), v = k8(m);
|
|
78995
78997
|
return /* @__PURE__ */ h($R, {
|
|
78996
78998
|
children: /* @__PURE__ */ h(nF, {
|
|
78997
|
-
value:
|
|
78999
|
+
value: f,
|
|
78998
79000
|
children: /* @__PURE__ */ h(Iu.Provider, {
|
|
78999
79001
|
value: {
|
|
79000
|
-
layoutFrozen:
|
|
79001
|
-
freezeLayout:
|
|
79002
|
+
layoutFrozen: c,
|
|
79003
|
+
freezeLayout: d,
|
|
79002
79004
|
inEditMode: !0
|
|
79003
79005
|
},
|
|
79004
79006
|
children: /* @__PURE__ */ h(lo.Provider, {
|
|
79005
|
-
value:
|
|
79007
|
+
value: m,
|
|
79006
79008
|
children: /* @__PURE__ */ I(kh, {
|
|
79007
|
-
configure:
|
|
79009
|
+
configure: v,
|
|
79008
79010
|
children: [/* @__PURE__ */ h(OR, {
|
|
79009
79011
|
padding: 0,
|
|
79010
79012
|
header: /* @__PURE__ */ h(yMe, {
|
|
79011
|
-
saveDashboardChanges:
|
|
79013
|
+
saveDashboardChanges: p,
|
|
79014
|
+
headerSlot: s
|
|
79012
79015
|
}),
|
|
79013
79016
|
navbar: /* @__PURE__ */ h(F3e, {}),
|
|
79014
79017
|
styles: VIe,
|
|
@@ -79017,9 +79020,9 @@ const VIe = {
|
|
|
79017
79020
|
sx: {
|
|
79018
79021
|
position: "relative"
|
|
79019
79022
|
},
|
|
79020
|
-
children:
|
|
79021
|
-
view:
|
|
79022
|
-
},
|
|
79023
|
+
children: f.views.visibleViews.map((g) => /* @__PURE__ */ h(j_e, {
|
|
79024
|
+
view: g
|
|
79025
|
+
}, g.id))
|
|
79023
79026
|
})
|
|
79024
79027
|
}), /* @__PURE__ */ h(PIe, {})]
|
|
79025
79028
|
})
|