@devtable/dashboard 13.35.0 → 13.35.1
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 +19 -19
- package/dist/dashboard.umd.js +47 -47
- package/dist/stats.html +1 -1
- package/dist/version.json +2 -2
- package/package.json +1 -1
package/dist/dashboard.es.js
CHANGED
|
@@ -9579,7 +9579,7 @@ class sc {
|
|
|
9579
9579
|
}), this.instanceRegistry.clear(), this.factoryRegistry.clear();
|
|
9580
9580
|
}
|
|
9581
9581
|
}
|
|
9582
|
-
const hf = "13.35.
|
|
9582
|
+
const hf = "13.35.1", QS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9583
9583
|
__proto__: null,
|
|
9584
9584
|
version: hf
|
|
9585
9585
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -31754,7 +31754,7 @@ const W2 = D(({
|
|
|
31754
31754
|
}) => {
|
|
31755
31755
|
const {
|
|
31756
31756
|
t
|
|
31757
|
-
} = v(), n = Pn(), i = be(), s = T(() => i.views.options.filter((
|
|
31757
|
+
} = v(), n = Pn(), i = be(), s = T(() => i.views.options.filter((d) => d.type === J.Division), [e.id, i.views.options]), a = e.config, o = (d) => n.openConfirmModal({
|
|
31758
31758
|
title: `${t("view.component.tabs.tab.delete")}?`,
|
|
31759
31759
|
labels: {
|
|
31760
31760
|
confirm: t("common.actions.confirm"),
|
|
@@ -31762,21 +31762,21 @@ const W2 = D(({
|
|
|
31762
31762
|
},
|
|
31763
31763
|
onCancel: () => console.log("Cancel"),
|
|
31764
31764
|
onConfirm: () => {
|
|
31765
|
-
a.removeTab(
|
|
31765
|
+
a.removeTab(d);
|
|
31766
31766
|
},
|
|
31767
31767
|
confirmProps: {
|
|
31768
31768
|
color: "red"
|
|
31769
31769
|
},
|
|
31770
31770
|
zIndex: 320
|
|
31771
|
-
}), l = a.tabs.length === 0;
|
|
31772
|
-
return /* @__PURE__ */ r.jsxs(_, { className: "preview-view-tabs", variant: a.variant, orientation: a.orientation, value: e.tab, onTabChange: e.setTab, styles: H2(a), children: [
|
|
31771
|
+
}), l = a.tabs.length === 0, c = a.tabsInOrder.length === 0 ? void 0 : a.tabsInOrder[0].id;
|
|
31772
|
+
return /* @__PURE__ */ r.jsxs(_, { className: "preview-view-tabs", variant: a.variant, orientation: a.orientation, value: e.tab || c, onTabChange: e.setTab, styles: H2(a), children: [
|
|
31773
31773
|
/* @__PURE__ */ r.jsxs(_.List, { grow: a.grow, children: [
|
|
31774
|
-
a.tabsInOrder.map((
|
|
31774
|
+
a.tabsInOrder.map((d) => /* @__PURE__ */ r.jsx(_.Tab, { value: d.id, sx: G2(d), children: d.name ?? d.id }, d.id)),
|
|
31775
31775
|
/* @__PURE__ */ r.jsx(_.Tab, { onClick: a.addTab, value: "add", className: "add-a-tab", children: /* @__PURE__ */ r.jsx(on, { size: 18, color: "#228be6" }) })
|
|
31776
31776
|
] }),
|
|
31777
|
-
a.tabsInOrder.map((
|
|
31778
|
-
const
|
|
31779
|
-
return /* @__PURE__ */ r.jsxs(_.Panel, { value:
|
|
31777
|
+
a.tabsInOrder.map((d, u) => {
|
|
31778
|
+
const h = i.views.findByID(d.view_id);
|
|
31779
|
+
return /* @__PURE__ */ r.jsxs(_.Panel, { value: d.id, sx: {
|
|
31780
31780
|
position: "relative"
|
|
31781
31781
|
}, children: [
|
|
31782
31782
|
/* @__PURE__ */ r.jsxs(R, { sx: {
|
|
@@ -31793,21 +31793,21 @@ const W2 = D(({
|
|
|
31793
31793
|
position: "relative",
|
|
31794
31794
|
zIndex: 200
|
|
31795
31795
|
}, children: [
|
|
31796
|
-
/* @__PURE__ */ r.jsx(E, { label: t("view.component.tabs.tab.name"), required: !0, value:
|
|
31797
|
-
/* @__PURE__ */ r.jsx(q, { label: "View", value:
|
|
31798
|
-
/* @__PURE__ */ r.jsx(ue, { label: t("view.component.tabs.tab.order"), required: !0, value:
|
|
31799
|
-
/* @__PURE__ */ r.jsx(ur, { label: t("view.component.tabs.tab.color"), value:
|
|
31800
|
-
|
|
31796
|
+
/* @__PURE__ */ r.jsx(E, { label: t("view.component.tabs.tab.name"), required: !0, value: d.name, onChange: (p) => d.setName(p.currentTarget.value) }),
|
|
31797
|
+
/* @__PURE__ */ r.jsx(q, { label: "View", value: d.view_id, onChange: d.setViewID, data: s }),
|
|
31798
|
+
/* @__PURE__ */ r.jsx(ue, { label: t("view.component.tabs.tab.order"), required: !0, value: d.order, onChange: (p) => d.setOrder(p || 0), min: 0, max: 1e3, step: 1 }),
|
|
31799
|
+
/* @__PURE__ */ r.jsx(ur, { label: t("view.component.tabs.tab.color"), value: d.color, onChange: d.setColor, disabled: a.variant !== "default" }),
|
|
31800
|
+
h && /* @__PURE__ */ r.jsx(M, { mt: 20, variant: "gradient", leftIcon: /* @__PURE__ */ r.jsx(vb, { size: 18 }), gradient: {
|
|
31801
31801
|
from: "cyan",
|
|
31802
31802
|
to: "indigo"
|
|
31803
|
-
}, onClick: () => i.views.setIDOfVIE(
|
|
31804
|
-
name:
|
|
31803
|
+
}, onClick: () => i.views.setIDOfVIE(h.id), children: t("view.component.tabs.tab.switch_to_view", {
|
|
31804
|
+
name: h.name
|
|
31805
31805
|
}) }),
|
|
31806
|
-
/* @__PURE__ */ r.jsx(M, { mt: 20, variant: "subtle", color: "red", onClick: () => o(
|
|
31806
|
+
/* @__PURE__ */ r.jsx(M, { mt: 20, variant: "subtle", color: "red", onClick: () => o(u), disabled: l, leftIcon: /* @__PURE__ */ r.jsx(tt, { size: 14 }), children: t("view.component.tabs.tab.delete") })
|
|
31807
31807
|
] })
|
|
31808
31808
|
] }),
|
|
31809
|
-
|
|
31810
|
-
] },
|
|
31809
|
+
h && /* @__PURE__ */ r.jsx(Nc, { view: h })
|
|
31810
|
+
] }, d.id);
|
|
31811
31811
|
})
|
|
31812
31812
|
] });
|
|
31813
31813
|
}), U2 = D(({
|