@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.js
CHANGED
|
@@ -19075,6 +19075,7 @@ var WidgetCardHeader_Component = function WidgetCardHeader_Component(_ref) {
|
|
|
19075
19075
|
onSplitHorizontal = _ref$onSplitHorizonta === void 0 ? null : _ref$onSplitHorizonta,
|
|
19076
19076
|
_ref$onSplitVertical = _ref.onSplitVertical,
|
|
19077
19077
|
onSplitVertical = _ref$onSplitVertical === void 0 ? null : _ref$onSplitVertical,
|
|
19078
|
+
onEditWithAI = _ref.onEditWithAI,
|
|
19078
19079
|
_ref$isSelected = _ref.isSelected,
|
|
19079
19080
|
isSelected = _ref$isSelected === void 0 ? false : _ref$isSelected,
|
|
19080
19081
|
_ref$isSelectable = _ref.isSelectable,
|
|
@@ -19098,6 +19099,7 @@ var WidgetCardHeader_Component = function WidgetCardHeader_Component(_ref) {
|
|
|
19098
19099
|
onDelete: onDelete,
|
|
19099
19100
|
onSplitHorizontal: onSplitHorizontal,
|
|
19100
19101
|
onSplitVertical: onSplitVertical,
|
|
19102
|
+
onEditWithAI: onEditWithAI,
|
|
19101
19103
|
isSelected: isSelected,
|
|
19102
19104
|
isSelectable: isSelectable,
|
|
19103
19105
|
onToggleSelect: onToggleSelect
|
|
@@ -51775,13 +51777,24 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
51775
51777
|
return copy;
|
|
51776
51778
|
});
|
|
51777
51779
|
} else {
|
|
51778
|
-
|
|
51779
|
-
|
|
51780
|
-
|
|
51781
|
-
|
|
51782
|
-
|
|
51783
|
-
|
|
51784
|
-
|
|
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
|
+
}
|
|
51785
51798
|
}
|
|
51786
51799
|
|
|
51787
51800
|
// Gather sidebar layout from its LayoutBuilder ref
|