@schneideress/dashboardframework 0.0.276 → 0.0.277
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 +11 -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 +8 -13
- package/esm5/lib/ra-dashboard-area/ra.dashboard.area.js +8 -13
- package/fesm2015/schneideress-dashboardframework.js +7 -12
- package/fesm2015/schneideress-dashboardframework.js.map +1 -1
- package/fesm5/schneideress-dashboardframework.js +7 -12
- package/fesm5/schneideress-dashboardframework.js.map +1 -1
- package/lib/ra-dashboard-area/ra.dashboard.area.d.ts +2 -3
- package/package.json +1 -1
- package/schneideress-dashboardframework.metadata.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs'), require('@schneideress/ra-common'), require('rxjs/operators'), require('ngx-ui-loader'), require('angular-notifier'), require('@
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@schneideress/dashboardframework', ['exports', '@angular/core', 'rxjs', '@schneideress/ra-common', 'rxjs/operators', 'ngx-ui-loader', 'angular-notifier', '@
|
|
4
|
-
(global = global || self, factory((global.schneideress = global.schneideress || {}, global.schneideress.dashboardframework = {}), global.ng.core, global.rxjs, global.raCommon, global.rxjs.operators, global['ngx-ui-loader'], global['angular-notifier'], global.
|
|
5
|
-
}(this, (function (exports, core, rxjs, raCommon, operators, ngxUiLoader, angularNotifier,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs'), require('@schneideress/ra-common'), require('rxjs/operators'), require('ngx-ui-loader'), require('angular-notifier'), require('@schneideress/widgetframework'), require('@angular/platform-browser'), require('@angular/common/http'), require('@angular/common'), require('@schneideress/user-controls'), require('@schneideress/common-controls')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@schneideress/dashboardframework', ['exports', '@angular/core', 'rxjs', '@schneideress/ra-common', 'rxjs/operators', 'ngx-ui-loader', 'angular-notifier', '@schneideress/widgetframework', '@angular/platform-browser', '@angular/common/http', '@angular/common', '@schneideress/user-controls', '@schneideress/common-controls'], factory) :
|
|
4
|
+
(global = global || self, factory((global.schneideress = global.schneideress || {}, global.schneideress.dashboardframework = {}), global.ng.core, global.rxjs, global.raCommon, global.rxjs.operators, global['ngx-ui-loader'], global['angular-notifier'], global.widgetframework, global.ng.platformBrowser, global.ng.common.http, global.ng.common, global.userControls, global.commonControls));
|
|
5
|
+
}(this, (function (exports, core, rxjs, raCommon, operators, ngxUiLoader, angularNotifier, widgetframework, platformBrowser, http, common, userControls, commonControls) { 'use strict';
|
|
6
6
|
|
|
7
7
|
/*! *****************************************************************************
|
|
8
8
|
Copyright (c) Microsoft Corporation.
|
|
@@ -605,7 +605,7 @@
|
|
|
605
605
|
}());
|
|
606
606
|
|
|
607
607
|
var RADashboardArea = /** @class */ (function () {
|
|
608
|
-
function RADashboardArea(dashboardService, ngZone, ngxService, translateService, notifier, responsiveService, permissionService
|
|
608
|
+
function RADashboardArea(dashboardService, ngZone, ngxService, translateService, notifier, responsiveService, permissionService) {
|
|
609
609
|
this.dashboardService = dashboardService;
|
|
610
610
|
this.ngZone = ngZone;
|
|
611
611
|
this.ngxService = ngxService;
|
|
@@ -613,7 +613,6 @@
|
|
|
613
613
|
this.notifier = notifier;
|
|
614
614
|
this.responsiveService = responsiveService;
|
|
615
615
|
this.permissionService = permissionService;
|
|
616
|
-
this.router = router;
|
|
617
616
|
this.widgetList = Array();
|
|
618
617
|
this.gridheight = 300;
|
|
619
618
|
this.gridcellHeight = 0;
|
|
@@ -623,6 +622,7 @@
|
|
|
623
622
|
this.domResized = false;
|
|
624
623
|
this.showEmptyDashboard = false;
|
|
625
624
|
this.isWidgetMgmnt = false;
|
|
625
|
+
this.templateId = '';
|
|
626
626
|
this.widgetHeight = 2;
|
|
627
627
|
this.widgetWidth = 4;
|
|
628
628
|
this.hideDashboardBanner = new core.EventEmitter();
|
|
@@ -791,14 +791,12 @@
|
|
|
791
791
|
/** To retrieve widgets based on userDashboardid and area name */
|
|
792
792
|
RADashboardArea.prototype.loadWidgets = function (userDashboarId, areaKey) {
|
|
793
793
|
var _this = this;
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
if (currentUrl.includes('indicatorDashboard'))
|
|
797
|
-
IsTypeIndicator = true;
|
|
794
|
+
if (localStorage.getItem('IndicatorDashboardTemplateId'))
|
|
795
|
+
this.templateId = localStorage.getItem('IndicatorDashboardTemplateId');
|
|
798
796
|
var widgetInfo = {
|
|
799
797
|
dashboardId: userDashboarId.toString(),
|
|
800
798
|
dashboardAreaKey: areaKey,
|
|
801
|
-
|
|
799
|
+
templateId: this.templateId
|
|
802
800
|
};
|
|
803
801
|
this.widgetList = [];
|
|
804
802
|
this.dashboardService.getWidgetsByDashboardArea(widgetInfo, this.appConfig).subscribe(function (widgets) {
|
|
@@ -1042,8 +1040,7 @@
|
|
|
1042
1040
|
{ type: raCommon.RATranslateService },
|
|
1043
1041
|
{ type: angularNotifier.NotifierService },
|
|
1044
1042
|
{ type: RADashboardResponsiveService },
|
|
1045
|
-
{ type: raCommon.RAPermissionService }
|
|
1046
|
-
{ type: router.Router }
|
|
1043
|
+
{ type: raCommon.RAPermissionService }
|
|
1047
1044
|
]; };
|
|
1048
1045
|
__decorate([
|
|
1049
1046
|
core.Input('user-dashboard-id'),
|
|
@@ -1093,8 +1090,7 @@
|
|
|
1093
1090
|
raCommon.RATranslateService,
|
|
1094
1091
|
angularNotifier.NotifierService,
|
|
1095
1092
|
RADashboardResponsiveService,
|
|
1096
|
-
raCommon.RAPermissionService
|
|
1097
|
-
router.Router])
|
|
1093
|
+
raCommon.RAPermissionService])
|
|
1098
1094
|
], RADashboardArea);
|
|
1099
1095
|
return RADashboardArea;
|
|
1100
1096
|
}());
|