@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.
- package/bundles/schneideress-dashboardframework.umd.js +10 -15
- package/bundles/schneideress-dashboardframework.umd.js.map +1 -1
- package/bundles/schneideress-dashboardframework.umd.min.js +2 -2
- package/bundles/schneideress-dashboardframework.umd.min.js.map +1 -1
- package/esm2015/lib/ra-dashboard-area/ra.dashboard.area.js +6 -13
- package/esm2015/lib/ra.base.dashboard.filter.js +2 -1
- package/esm5/lib/ra-dashboard-area/ra.dashboard.area.js +6 -13
- package/esm5/lib/ra.base.dashboard.filter.js +2 -1
- package/fesm2015/schneideress-dashboardframework.js +6 -12
- package/fesm2015/schneideress-dashboardframework.js.map +1 -1
- package/fesm5/schneideress-dashboardframework.js +6 -12
- package/fesm5/schneideress-dashboardframework.js.map +1 -1
- package/lib/ra-dashboard-area/ra.dashboard.area.d.ts +1 -3
- package/lib/ra.base.dashboard.filter.d.ts +1 -0
- package/package.json +1 -1
- package/schneideress-dashboardframework.metadata.json +1 -1
|
@@ -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';
|
|
@@ -395,7 +394,7 @@ var RADashboardResponsiveService = /** @class */ (function () {
|
|
|
395
394
|
}());
|
|
396
395
|
|
|
397
396
|
var RADashboardArea = /** @class */ (function () {
|
|
398
|
-
function RADashboardArea(dashboardService, ngZone, ngxService, translateService, notifier, responsiveService, permissionService
|
|
397
|
+
function RADashboardArea(dashboardService, ngZone, ngxService, translateService, notifier, responsiveService, permissionService) {
|
|
399
398
|
this.dashboardService = dashboardService;
|
|
400
399
|
this.ngZone = ngZone;
|
|
401
400
|
this.ngxService = ngxService;
|
|
@@ -403,7 +402,6 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
403
402
|
this.notifier = notifier;
|
|
404
403
|
this.responsiveService = responsiveService;
|
|
405
404
|
this.permissionService = permissionService;
|
|
406
|
-
this.router = router;
|
|
407
405
|
this.widgetList = Array();
|
|
408
406
|
this.gridheight = 300;
|
|
409
407
|
this.gridcellHeight = 0;
|
|
@@ -581,14 +579,11 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
581
579
|
/** To retrieve widgets based on userDashboardid and area name */
|
|
582
580
|
RADashboardArea.prototype.loadWidgets = function (userDashboarId, areaKey) {
|
|
583
581
|
var _this = this;
|
|
584
|
-
var
|
|
585
|
-
var IsTypeIndicator = false;
|
|
586
|
-
if (currentUrl.includes('indicatorDashboard'))
|
|
587
|
-
IsTypeIndicator = true;
|
|
582
|
+
var isIndicatorDashboard = localStorage.getItem('IsIndicatorDashboard') == 'true' ? true : false;
|
|
588
583
|
var widgetInfo = {
|
|
589
584
|
dashboardId: userDashboarId.toString(),
|
|
590
585
|
dashboardAreaKey: areaKey,
|
|
591
|
-
|
|
586
|
+
isIndicatorDashboard: isIndicatorDashboard
|
|
592
587
|
};
|
|
593
588
|
this.widgetList = [];
|
|
594
589
|
this.dashboardService.getWidgetsByDashboardArea(widgetInfo, this.appConfig).subscribe(function (widgets) {
|
|
@@ -832,8 +827,7 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
832
827
|
{ type: RATranslateService },
|
|
833
828
|
{ type: NotifierService },
|
|
834
829
|
{ type: RADashboardResponsiveService },
|
|
835
|
-
{ type: RAPermissionService }
|
|
836
|
-
{ type: Router }
|
|
830
|
+
{ type: RAPermissionService }
|
|
837
831
|
]; };
|
|
838
832
|
__decorate([
|
|
839
833
|
Input('user-dashboard-id'),
|
|
@@ -883,8 +877,7 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
883
877
|
RATranslateService,
|
|
884
878
|
NotifierService,
|
|
885
879
|
RADashboardResponsiveService,
|
|
886
|
-
RAPermissionService
|
|
887
|
-
Router])
|
|
880
|
+
RAPermissionService])
|
|
888
881
|
], RADashboardArea);
|
|
889
882
|
return RADashboardArea;
|
|
890
883
|
}());
|
|
@@ -4841,6 +4834,7 @@ var RaBaseDashboardFilter = /** @class */ (function () {
|
|
|
4841
4834
|
RaBaseDashboardFilter.prototype.ngOnInit = function () {
|
|
4842
4835
|
var myEvent = new CustomEvent("global-filter-initiated");
|
|
4843
4836
|
document.body.dispatchEvent(myEvent);
|
|
4837
|
+
this.hideControls();
|
|
4844
4838
|
};
|
|
4845
4839
|
__decorate([
|
|
4846
4840
|
Input(),
|