@trops/dash-core 0.1.406 → 0.1.407
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/index.esm.js +19 -8
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +19 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -26924,15 +26924,18 @@ function moveWidgetAcrossContainers(workspace, sourceGridId, sourceCell, targetG
|
|
|
26924
26924
|
|
|
26925
26925
|
// Build a list of every bucket with a stable name so we can locate
|
|
26926
26926
|
// grid containers across them and patch them back in place.
|
|
26927
|
+
//
|
|
26928
|
+
// IMPORTANT: pages are listed BEFORE the top-level `layout` bucket.
|
|
26929
|
+
// `handleClickSaveWorkspace` writes `workspace.layout = activePage.layout`
|
|
26930
|
+
// as a backward-compat mirror of the active page — so a dashboard
|
|
26931
|
+
// grid's id typically exists in BOTH `workspace.layout` AND
|
|
26932
|
+
// `workspace.pages[activeIdx].layout`. If we checked `layout` first,
|
|
26933
|
+
// findBucket would match there and we'd mutate a bucket React never
|
|
26934
|
+
// renders (renderers read from pages[i].layout), so the user would
|
|
26935
|
+
// see the widget "disappear" with no visible target update.
|
|
26936
|
+
// Sidebar is last because its ids (90000+) can never collide with
|
|
26937
|
+
// page grids.
|
|
26927
26938
|
var buckets = [];
|
|
26928
|
-
if (Array.isArray(workspace.layout)) {
|
|
26929
|
-
buckets.push({
|
|
26930
|
-
key: "layout",
|
|
26931
|
-
get: function get() {
|
|
26932
|
-
return workspace.layout;
|
|
26933
|
-
}
|
|
26934
|
-
});
|
|
26935
|
-
}
|
|
26936
26939
|
if (Array.isArray(workspace.pages)) {
|
|
26937
26940
|
var _loop = function _loop() {
|
|
26938
26941
|
var _workspace$pages$i;
|
|
@@ -26950,6 +26953,14 @@ function moveWidgetAcrossContainers(workspace, sourceGridId, sourceCell, targetG
|
|
|
26950
26953
|
_loop();
|
|
26951
26954
|
}
|
|
26952
26955
|
}
|
|
26956
|
+
if (Array.isArray(workspace.layout)) {
|
|
26957
|
+
buckets.push({
|
|
26958
|
+
key: "layout",
|
|
26959
|
+
get: function get() {
|
|
26960
|
+
return workspace.layout;
|
|
26961
|
+
}
|
|
26962
|
+
});
|
|
26963
|
+
}
|
|
26953
26964
|
if (Array.isArray(workspace.sidebarLayout)) {
|
|
26954
26965
|
buckets.push({
|
|
26955
26966
|
key: "sidebarLayout",
|