@devtable/dashboard 8.55.1 → 8.56.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
|
@@ -1315,7 +1315,7 @@ const Bc = (e) => {
|
|
|
1315
1315
|
getColor: Cn(["#fff7f1", "darkorange", "#b60000"]),
|
|
1316
1316
|
name: "orange",
|
|
1317
1317
|
category: "sequential"
|
|
1318
|
-
}, Ma = "@devtable/dashboard", dr = "8.
|
|
1318
|
+
}, Ma = "@devtable/dashboard", dr = "8.56.0", Fa = "Apache-2.0", Pa = {
|
|
1319
1319
|
access: "public",
|
|
1320
1320
|
registry: "https://registry.npmjs.org/"
|
|
1321
1321
|
}, $a = [
|
|
@@ -14537,8 +14537,8 @@ const Py = z.forwardRef(({
|
|
|
14537
14537
|
userSelect: "none",
|
|
14538
14538
|
cursor: "grab",
|
|
14539
14539
|
position: "absolute",
|
|
14540
|
-
top:
|
|
14541
|
-
right:
|
|
14540
|
+
top: 5,
|
|
14541
|
+
right: 5,
|
|
14542
14542
|
zIndex: 400,
|
|
14543
14543
|
"&:hover": {
|
|
14544
14544
|
color: "#228be6"
|
|
@@ -14550,8 +14550,8 @@ const Py = z.forwardRef(({
|
|
|
14550
14550
|
userSelect: "none",
|
|
14551
14551
|
cursor: "nwse-resize",
|
|
14552
14552
|
position: "absolute",
|
|
14553
|
-
bottom:
|
|
14554
|
-
right:
|
|
14553
|
+
bottom: 0,
|
|
14554
|
+
right: 0,
|
|
14555
14555
|
zIndex: 400,
|
|
14556
14556
|
"&:hover": {
|
|
14557
14557
|
color: "#228be6"
|
|
@@ -14559,40 +14559,38 @@ const Py = z.forwardRef(({
|
|
|
14559
14559
|
}, variant: "transparent", ...t, children: /* @__PURE__ */ n(cs, { size: 16 }) })), Oy = ca(sa), Ey = S(function({
|
|
14560
14560
|
view: t,
|
|
14561
14561
|
className: r = "layout",
|
|
14562
|
-
|
|
14563
|
-
|
|
14564
|
-
isResizable: o
|
|
14562
|
+
isDraggable: i,
|
|
14563
|
+
isResizable: a
|
|
14565
14564
|
}) {
|
|
14566
|
-
const
|
|
14567
|
-
panels:
|
|
14568
|
-
layouts:
|
|
14569
|
-
} =
|
|
14570
|
-
|
|
14571
|
-
i:
|
|
14572
|
-
...
|
|
14565
|
+
const o = P(), {
|
|
14566
|
+
panels: l,
|
|
14567
|
+
layouts: s
|
|
14568
|
+
} = o.panels.panelsByIDs(t.panelIDs), d = z.useCallback((u) => {
|
|
14569
|
+
u.forEach(({
|
|
14570
|
+
i: p,
|
|
14571
|
+
...m
|
|
14573
14572
|
}) => {
|
|
14574
|
-
const
|
|
14575
|
-
|
|
14573
|
+
const h = o.panels.findByID(p);
|
|
14574
|
+
h && h.layout.set(m);
|
|
14576
14575
|
});
|
|
14577
|
-
}, [
|
|
14578
|
-
return /* @__PURE__ */ n(Oy, { onLayoutChange:
|
|
14579
|
-
...
|
|
14580
|
-
},
|
|
14581
|
-
|
|
14582
|
-
|
|
14583
|
-
|
|
14584
|
-
/* @__PURE__ */ n(Er, { view: t, panel: p })
|
|
14585
|
-
] }, p.id)) });
|
|
14576
|
+
}, [o]);
|
|
14577
|
+
return /* @__PURE__ */ n(Oy, { onLayoutChange: d, className: `dashboard-layout ${r}`, rowHeight: 1, margin: [0, 0], layout: s, isDraggable: i, isResizable: a, draggableHandle: ".react-grid-customDragHandle", resizeHandle: /* @__PURE__ */ n($y, {}), children: l.map((u, p) => /* @__PURE__ */ c("div", { "data-grid": {
|
|
14578
|
+
...u.layout
|
|
14579
|
+
}, className: "panel-grid-item", children: [
|
|
14580
|
+
i && /* @__PURE__ */ n(Py, {}),
|
|
14581
|
+
/* @__PURE__ */ n(Er, { view: t, panel: u })
|
|
14582
|
+
] }, u.id)) });
|
|
14586
14583
|
}), Ny = ca(sa), By = S(function({
|
|
14587
14584
|
view: t,
|
|
14588
|
-
className: r = "layout"
|
|
14589
|
-
rowHeight: i = 10
|
|
14585
|
+
className: r = "layout"
|
|
14590
14586
|
}) {
|
|
14591
14587
|
const {
|
|
14592
|
-
panels:
|
|
14593
|
-
layouts:
|
|
14588
|
+
panels: i,
|
|
14589
|
+
layouts: a
|
|
14594
14590
|
} = P().panels.panelsByIDs(t.panelIDs);
|
|
14595
|
-
return /* @__PURE__ */ n(Ny, { className: `dashboard-layout ${r}`, rowHeight:
|
|
14591
|
+
return /* @__PURE__ */ n(Ny, { className: `dashboard-layout ${r}`, rowHeight: 1, margin: [0, 0], isDraggable: !1, isResizable: !1, layout: a, children: i.map((o) => /* @__PURE__ */ n("div", { "data-grid": {
|
|
14592
|
+
...o.layout
|
|
14593
|
+
}, className: "panel-grid-item", children: /* @__PURE__ */ n(Er, { view: t, panel: o }) }, o.id)) });
|
|
14596
14594
|
});
|
|
14597
14595
|
var qy = /* @__PURE__ */ ((e) => (e.Use = "use", e.Edit = "edit", e))(qy || {}), G = /* @__PURE__ */ ((e) => (e.Division = "div", e.Modal = "modal", e.Tabs = "tabs", e))(G || {});
|
|
14598
14596
|
const I1 = {
|