@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.esm.js
CHANGED
|
@@ -26906,15 +26906,18 @@ function moveWidgetAcrossContainers(workspace, sourceGridId, sourceCell, targetG
|
|
|
26906
26906
|
|
|
26907
26907
|
// Build a list of every bucket with a stable name so we can locate
|
|
26908
26908
|
// grid containers across them and patch them back in place.
|
|
26909
|
+
//
|
|
26910
|
+
// IMPORTANT: pages are listed BEFORE the top-level `layout` bucket.
|
|
26911
|
+
// `handleClickSaveWorkspace` writes `workspace.layout = activePage.layout`
|
|
26912
|
+
// as a backward-compat mirror of the active page — so a dashboard
|
|
26913
|
+
// grid's id typically exists in BOTH `workspace.layout` AND
|
|
26914
|
+
// `workspace.pages[activeIdx].layout`. If we checked `layout` first,
|
|
26915
|
+
// findBucket would match there and we'd mutate a bucket React never
|
|
26916
|
+
// renders (renderers read from pages[i].layout), so the user would
|
|
26917
|
+
// see the widget "disappear" with no visible target update.
|
|
26918
|
+
// Sidebar is last because its ids (90000+) can never collide with
|
|
26919
|
+
// page grids.
|
|
26909
26920
|
var buckets = [];
|
|
26910
|
-
if (Array.isArray(workspace.layout)) {
|
|
26911
|
-
buckets.push({
|
|
26912
|
-
key: "layout",
|
|
26913
|
-
get: function get() {
|
|
26914
|
-
return workspace.layout;
|
|
26915
|
-
}
|
|
26916
|
-
});
|
|
26917
|
-
}
|
|
26918
26921
|
if (Array.isArray(workspace.pages)) {
|
|
26919
26922
|
var _loop = function _loop() {
|
|
26920
26923
|
var _workspace$pages$i;
|
|
@@ -26932,6 +26935,14 @@ function moveWidgetAcrossContainers(workspace, sourceGridId, sourceCell, targetG
|
|
|
26932
26935
|
_loop();
|
|
26933
26936
|
}
|
|
26934
26937
|
}
|
|
26938
|
+
if (Array.isArray(workspace.layout)) {
|
|
26939
|
+
buckets.push({
|
|
26940
|
+
key: "layout",
|
|
26941
|
+
get: function get() {
|
|
26942
|
+
return workspace.layout;
|
|
26943
|
+
}
|
|
26944
|
+
});
|
|
26945
|
+
}
|
|
26935
26946
|
if (Array.isArray(workspace.sidebarLayout)) {
|
|
26936
26947
|
buckets.push({
|
|
26937
26948
|
key: "sidebarLayout",
|