@schneideress/dashboardframework 20.0.28 → 20.0.29
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.
|
@@ -4976,13 +4976,31 @@ class RADashboardArea {
|
|
|
4976
4976
|
this.isElementLoaded(this.widgetList[this.currentLoadingCount]?.widgetElement) ?
|
|
4977
4977
|
this.initialWidgetCount++ : null;
|
|
4978
4978
|
}
|
|
4979
|
+
/**
|
|
4980
|
+
* Whether expanded view is active. Uses bulk action as source of truth (works in both normal browser and kiosk).
|
|
4981
|
+
* Handles bulkActionData as string (from API) or object (from event). Falls back to URL param for edge cases (e.g. shared link).
|
|
4982
|
+
*/
|
|
4983
|
+
isExpandedView() {
|
|
4984
|
+
if (this.bulkActionData) {
|
|
4985
|
+
try {
|
|
4986
|
+
const data = typeof this.bulkActionData === 'string'
|
|
4987
|
+
? JSON.parse(this.bulkActionData)
|
|
4988
|
+
: this.bulkActionData;
|
|
4989
|
+
if (data?.allSelections?.expandedView === true)
|
|
4990
|
+
return true;
|
|
4991
|
+
}
|
|
4992
|
+
catch (_) {
|
|
4993
|
+
// ignore parse errors
|
|
4994
|
+
}
|
|
4995
|
+
}
|
|
4996
|
+
return typeof location !== 'undefined' && new URLSearchParams(window.location.search).get('expanded') === 'true';
|
|
4997
|
+
}
|
|
4979
4998
|
dataLoaded(widgetInfo) {
|
|
4980
4999
|
setTimeout(() => {
|
|
4981
5000
|
this.currentLoadingCount--;
|
|
4982
5001
|
}, 100);
|
|
4983
|
-
// For expanded view, override widget dimensions after data loads
|
|
4984
|
-
|
|
4985
|
-
if (isExpandedView && widgetInfo && widgetInfo.widgetInstanceId) {
|
|
5002
|
+
// For expanded view, override widget dimensions after data loads (from bulk action or URL)
|
|
5003
|
+
if (this.isExpandedView() && widgetInfo && widgetInfo.widgetInstanceId) {
|
|
4986
5004
|
this.overrideWidgetDimensions(widgetInfo);
|
|
4987
5005
|
}
|
|
4988
5006
|
// this.loadData()
|