@trops/dash-core 0.1.322 → 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 +20 -7
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +20 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -19057,6 +19057,7 @@ var WidgetCardHeader_Component = function WidgetCardHeader_Component(_ref) {
|
|
|
19057
19057
|
onSplitHorizontal = _ref$onSplitHorizonta === void 0 ? null : _ref$onSplitHorizonta,
|
|
19058
19058
|
_ref$onSplitVertical = _ref.onSplitVertical,
|
|
19059
19059
|
onSplitVertical = _ref$onSplitVertical === void 0 ? null : _ref$onSplitVertical,
|
|
19060
|
+
onEditWithAI = _ref.onEditWithAI,
|
|
19060
19061
|
_ref$isSelected = _ref.isSelected,
|
|
19061
19062
|
isSelected = _ref$isSelected === void 0 ? false : _ref$isSelected,
|
|
19062
19063
|
_ref$isSelectable = _ref.isSelectable,
|
|
@@ -19080,6 +19081,7 @@ var WidgetCardHeader_Component = function WidgetCardHeader_Component(_ref) {
|
|
|
19080
19081
|
onDelete: onDelete,
|
|
19081
19082
|
onSplitHorizontal: onSplitHorizontal,
|
|
19082
19083
|
onSplitVertical: onSplitVertical,
|
|
19084
|
+
onEditWithAI: onEditWithAI,
|
|
19083
19085
|
isSelected: isSelected,
|
|
19084
19086
|
isSelectable: isSelectable,
|
|
19085
19087
|
onToggleSelect: onToggleSelect
|
|
@@ -51757,13 +51759,24 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
51757
51759
|
return copy;
|
|
51758
51760
|
});
|
|
51759
51761
|
} else {
|
|
51760
|
-
|
|
51761
|
-
|
|
51762
|
-
|
|
51763
|
-
|
|
51764
|
-
|
|
51765
|
-
|
|
51766
|
-
|
|
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
|
+
}
|
|
51767
51780
|
}
|
|
51768
51781
|
|
|
51769
51782
|
// Gather sidebar layout from its LayoutBuilder ref
|