@schneideress/dashboardframework 0.0.276 → 0.0.278

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.
@@ -5,7 +5,6 @@ import { BaseService, RATranslateService, RAPermissionService, DomService, RACom
5
5
  import { filter, map } from 'rxjs/operators';
6
6
  import { NgxUiLoaderService, NgxUiLoaderModule } from 'ngx-ui-loader';
7
7
  import { NotifierService, NotifierModule } from 'angular-notifier';
8
- import { Router } from '@angular/router';
9
8
  import { RaWidgetlockStatus, WidgetViewState, RADownloadType, RADownloadOption } from '@schneideress/widgetframework';
10
9
  import { BrowserModule } from '@angular/platform-browser';
11
10
  import { HttpClientModule } from '@angular/common/http';
@@ -380,7 +379,7 @@ RADashboardResponsiveService = __decorate([
380
379
  ], RADashboardResponsiveService);
381
380
 
382
381
  let RADashboardArea = class RADashboardArea {
383
- constructor(dashboardService, ngZone, ngxService, translateService, notifier, responsiveService, permissionService, router) {
382
+ constructor(dashboardService, ngZone, ngxService, translateService, notifier, responsiveService, permissionService) {
384
383
  this.dashboardService = dashboardService;
385
384
  this.ngZone = ngZone;
386
385
  this.ngxService = ngxService;
@@ -388,7 +387,6 @@ let RADashboardArea = class RADashboardArea {
388
387
  this.notifier = notifier;
389
388
  this.responsiveService = responsiveService;
390
389
  this.permissionService = permissionService;
391
- this.router = router;
392
390
  this.widgetList = Array();
393
391
  this.gridheight = 300;
394
392
  this.gridcellHeight = 0;
@@ -562,14 +560,11 @@ let RADashboardArea = class RADashboardArea {
562
560
  }
563
561
  /** To retrieve widgets based on userDashboardid and area name */
564
562
  loadWidgets(userDashboarId, areaKey) {
565
- const currentUrl = this.router.url;
566
- let IsTypeIndicator = false;
567
- if (currentUrl.includes('indicatorDashboard'))
568
- IsTypeIndicator = true;
563
+ let isIndicatorDashboard = localStorage.getItem('IsIndicatorDashboard') == 'true' ? true : false;
569
564
  let widgetInfo = {
570
565
  dashboardId: userDashboarId.toString(),
571
566
  dashboardAreaKey: areaKey,
572
- IsTypeIndicator: IsTypeIndicator
567
+ isIndicatorDashboard: isIndicatorDashboard
573
568
  };
574
569
  this.widgetList = [];
575
570
  this.dashboardService.getWidgetsByDashboardArea(widgetInfo, this.appConfig).subscribe(widgets => {
@@ -808,8 +803,7 @@ RADashboardArea.ctorParameters = () => [
808
803
  { type: RATranslateService },
809
804
  { type: NotifierService },
810
805
  { type: RADashboardResponsiveService },
811
- { type: RAPermissionService },
812
- { type: Router }
806
+ { type: RAPermissionService }
813
807
  ];
814
808
  __decorate([
815
809
  Input('user-dashboard-id'),
@@ -859,8 +853,7 @@ RADashboardArea = __decorate([
859
853
  RATranslateService,
860
854
  NotifierService,
861
855
  RADashboardResponsiveService,
862
- RAPermissionService,
863
- Router])
856
+ RAPermissionService])
864
857
  ], RADashboardArea);
865
858
 
866
859
  let LockTooltip = class LockTooltip {
@@ -4708,6 +4701,7 @@ class RaBaseDashboardFilter {
4708
4701
  ngOnInit() {
4709
4702
  var myEvent = new CustomEvent("global-filter-initiated");
4710
4703
  document.body.dispatchEvent(myEvent);
4704
+ this.hideControls();
4711
4705
  }
4712
4706
  }
4713
4707
  __decorate([