@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.js
CHANGED
|
@@ -51777,13 +51777,24 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
51777
51777
|
return copy;
|
|
51778
51778
|
});
|
|
51779
51779
|
} else {
|
|
51780
|
-
|
|
51781
|
-
|
|
51782
|
-
|
|
51783
|
-
|
|
51784
|
-
|
|
51785
|
-
|
|
51786
|
-
|
|
51780
|
+
var _currentWorkspaceRef$;
|
|
51781
|
+
// Single-page: merge workspace-level properties (themeKey, name, menuId, etc.)
|
|
51782
|
+
// from workspaceSelected with the latest layout from currentWorkspaceRef.
|
|
51783
|
+
// The ref only tracks layout changes; header-level property changes
|
|
51784
|
+
// (theme, folder, scrollable) are tracked in workspaceSelected.
|
|
51785
|
+
workspaceToSave = DashReact.deepCopy(workspaceSelected);
|
|
51786
|
+
var refLayout = (_currentWorkspaceRef$ = currentWorkspaceRef.current) === null || _currentWorkspaceRef$ === void 0 ? void 0 : _currentWorkspaceRef$.layout;
|
|
51787
|
+
if (refLayout) {
|
|
51788
|
+
workspaceToSave["layout"] = refLayout.map(function (layoutItem) {
|
|
51789
|
+
delete layoutItem["widgetConfig"];
|
|
51790
|
+
return layoutItem;
|
|
51791
|
+
});
|
|
51792
|
+
} else {
|
|
51793
|
+
workspaceToSave["layout"] = (workspaceToSave["layout"] || []).map(function (layoutItem) {
|
|
51794
|
+
delete layoutItem["widgetConfig"];
|
|
51795
|
+
return layoutItem;
|
|
51796
|
+
});
|
|
51797
|
+
}
|
|
51787
51798
|
}
|
|
51788
51799
|
|
|
51789
51800
|
// Gather sidebar layout from its LayoutBuilder ref
|