@trops/dash-core 0.1.323 → 0.1.324
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 +18 -7
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +18 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -51759,13 +51759,24 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
51759
51759
|
return copy;
|
|
51760
51760
|
});
|
|
51761
51761
|
} else {
|
|
51762
|
-
|
|
51763
|
-
|
|
51764
|
-
|
|
51765
|
-
|
|
51766
|
-
|
|
51767
|
-
|
|
51768
|
-
|
|
51762
|
+
var _currentWorkspaceRef$;
|
|
51763
|
+
// Single-page: merge workspace-level properties (themeKey, name, menuId, etc.)
|
|
51764
|
+
// from workspaceSelected with the latest layout from currentWorkspaceRef.
|
|
51765
|
+
// The ref only tracks layout changes; header-level property changes
|
|
51766
|
+
// (theme, folder, scrollable) are tracked in workspaceSelected.
|
|
51767
|
+
workspaceToSave = deepCopy(workspaceSelected);
|
|
51768
|
+
var refLayout = (_currentWorkspaceRef$ = currentWorkspaceRef.current) === null || _currentWorkspaceRef$ === void 0 ? void 0 : _currentWorkspaceRef$.layout;
|
|
51769
|
+
if (refLayout) {
|
|
51770
|
+
workspaceToSave["layout"] = refLayout.map(function (layoutItem) {
|
|
51771
|
+
delete layoutItem["widgetConfig"];
|
|
51772
|
+
return layoutItem;
|
|
51773
|
+
});
|
|
51774
|
+
} else {
|
|
51775
|
+
workspaceToSave["layout"] = (workspaceToSave["layout"] || []).map(function (layoutItem) {
|
|
51776
|
+
delete layoutItem["widgetConfig"];
|
|
51777
|
+
return layoutItem;
|
|
51778
|
+
});
|
|
51779
|
+
}
|
|
51769
51780
|
}
|
|
51770
51781
|
|
|
51771
51782
|
// Gather sidebar layout from its LayoutBuilder ref
|