@valtimo/dashboard 13.31.0 → 13.33.0
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/fesm2022/valtimo-dashboard.mjs +6 -6
- package/fesm2022/valtimo-dashboard.mjs.map +1 -1
- package/lib/components/widget-dashboard-content/widget-dashboard-content.component.d.ts +1 -0
- package/lib/components/widget-dashboard-content/widget-dashboard-content.component.d.ts.map +1 -1
- package/lib/models/dashboard.model.d.ts +2 -0
- package/lib/models/dashboard.model.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@ import { RouterModule } from '@angular/router';
|
|
|
10
10
|
import * as i3 from '@angular/common';
|
|
11
11
|
import { CommonModule } from '@angular/common';
|
|
12
12
|
import * as i1$1 from '@valtimo/components';
|
|
13
|
-
import { CarbonListModule, ValuePathSelectorPrefix, CarbonMultiInputModule, InputModule as InputModule$1, ValuePathSelectorComponent, WidgetModule, BpmnJsDiagramModule, AlertModule, SpinnerModule } from '@valtimo/components';
|
|
13
|
+
import { resolveWidgetLayout, CarbonListModule, ValuePathSelectorPrefix, CarbonMultiInputModule, InputModule as InputModule$1, ValuePathSelectorComponent, WidgetModule, BpmnJsDiagramModule, AlertModule, SpinnerModule } from '@valtimo/components';
|
|
14
14
|
import * as i3$1 from '@ngx-translate/core';
|
|
15
15
|
import { TranslateModule, TranslateLoader } from '@ngx-translate/core';
|
|
16
16
|
import Muuri from 'muuri';
|
|
@@ -180,7 +180,7 @@ const WIDGET_1X_MIN_WIDTH = 275;
|
|
|
180
180
|
*/
|
|
181
181
|
|
|
182
182
|
/*
|
|
183
|
-
* Copyright 2015-
|
|
183
|
+
* Copyright 2015-2026 Ritense BV, the Netherlands.
|
|
184
184
|
*
|
|
185
185
|
* Licensed under EUPL, Version 1.2 (the "License");
|
|
186
186
|
* you may not use this file except in compliance with the License.
|
|
@@ -229,7 +229,7 @@ class WidgetLayoutService {
|
|
|
229
229
|
}
|
|
230
230
|
openMuuriSubscription() {
|
|
231
231
|
this._subscriptions.add(combineLatest([this.muuri$, this._triggerMuuriLayout$])
|
|
232
|
-
.pipe(debounceTime(
|
|
232
|
+
.pipe(debounceTime(400))
|
|
233
233
|
.subscribe(([muuri]) => {
|
|
234
234
|
muuri.refreshItems();
|
|
235
235
|
muuri.layout();
|
|
@@ -426,6 +426,7 @@ class WidgetDashboardContentComponent {
|
|
|
426
426
|
this._widgetData$.next(value.data);
|
|
427
427
|
}
|
|
428
428
|
set dashboard(value) {
|
|
429
|
+
this._resolvedLayout = resolveWidgetLayout(value?.widgetLayout);
|
|
429
430
|
this.setWidgetConfigurations(value);
|
|
430
431
|
}
|
|
431
432
|
get _muuriInitialized$() {
|
|
@@ -438,6 +439,7 @@ class WidgetDashboardContentComponent {
|
|
|
438
439
|
this.router = router;
|
|
439
440
|
this._isLoading$ = new BehaviorSubject(true);
|
|
440
441
|
this._widgetData$ = new BehaviorSubject([]);
|
|
442
|
+
this._resolvedLayout = resolveWidgetLayout(null);
|
|
441
443
|
this.widgetConfigurations$ = new BehaviorSubject(null);
|
|
442
444
|
this._subscriptions = new Subscription();
|
|
443
445
|
this._muuri$ = this.layoutService.muuriSubject$;
|
|
@@ -536,9 +538,7 @@ class WidgetDashboardContentComponent {
|
|
|
536
538
|
return;
|
|
537
539
|
this._creatingMuuri = true;
|
|
538
540
|
this.layoutService.setMuuri(new Muuri(this._widgetContainerRef.nativeElement, {
|
|
539
|
-
layout:
|
|
540
|
-
fillGaps: true,
|
|
541
|
-
},
|
|
541
|
+
layout: this._resolvedLayout.muuriLayout,
|
|
542
542
|
layoutOnResize: false,
|
|
543
543
|
}));
|
|
544
544
|
this._creatingMuuri = false;
|