@schneideress/dashboardframework 0.0.275 → 0.0.276
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 +17 -9
- 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 +15 -6
- package/esm5/lib/ra-dashboard-area/ra.dashboard.area.js +15 -6
- package/fesm2015/schneideress-dashboardframework.js +14 -5
- package/fesm2015/schneideress-dashboardframework.js.map +1 -1
- package/fesm5/schneideress-dashboardframework.js +14 -5
- package/fesm5/schneideress-dashboardframework.js.map +1 -1
- package/lib/ra-dashboard-area/ra.dashboard.area.d.ts +3 -1
- package/package.json +1 -1
- package/schneideress-dashboardframework.metadata.json +1 -1
|
@@ -5,6 +5,7 @@ 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';
|
|
8
9
|
import { RaWidgetlockStatus, WidgetViewState, RADownloadType, RADownloadOption } from '@schneideress/widgetframework';
|
|
9
10
|
import { BrowserModule } from '@angular/platform-browser';
|
|
10
11
|
import { HttpClientModule } from '@angular/common/http';
|
|
@@ -379,7 +380,7 @@ RADashboardResponsiveService = __decorate([
|
|
|
379
380
|
], RADashboardResponsiveService);
|
|
380
381
|
|
|
381
382
|
let RADashboardArea = class RADashboardArea {
|
|
382
|
-
constructor(dashboardService, ngZone, ngxService, translateService, notifier, responsiveService, permissionService) {
|
|
383
|
+
constructor(dashboardService, ngZone, ngxService, translateService, notifier, responsiveService, permissionService, router) {
|
|
383
384
|
this.dashboardService = dashboardService;
|
|
384
385
|
this.ngZone = ngZone;
|
|
385
386
|
this.ngxService = ngxService;
|
|
@@ -387,6 +388,7 @@ let RADashboardArea = class RADashboardArea {
|
|
|
387
388
|
this.notifier = notifier;
|
|
388
389
|
this.responsiveService = responsiveService;
|
|
389
390
|
this.permissionService = permissionService;
|
|
391
|
+
this.router = router;
|
|
390
392
|
this.widgetList = Array();
|
|
391
393
|
this.gridheight = 300;
|
|
392
394
|
this.gridcellHeight = 0;
|
|
@@ -560,9 +562,14 @@ let RADashboardArea = class RADashboardArea {
|
|
|
560
562
|
}
|
|
561
563
|
/** To retrieve widgets based on userDashboardid and area name */
|
|
562
564
|
loadWidgets(userDashboarId, areaKey) {
|
|
565
|
+
const currentUrl = this.router.url;
|
|
566
|
+
let IsTypeIndicator = false;
|
|
567
|
+
if (currentUrl.includes('indicatorDashboard'))
|
|
568
|
+
IsTypeIndicator = true;
|
|
563
569
|
let widgetInfo = {
|
|
564
570
|
dashboardId: userDashboarId.toString(),
|
|
565
|
-
dashboardAreaKey: areaKey
|
|
571
|
+
dashboardAreaKey: areaKey,
|
|
572
|
+
IsTypeIndicator: IsTypeIndicator
|
|
566
573
|
};
|
|
567
574
|
this.widgetList = [];
|
|
568
575
|
this.dashboardService.getWidgetsByDashboardArea(widgetInfo, this.appConfig).subscribe(widgets => {
|
|
@@ -801,7 +808,8 @@ RADashboardArea.ctorParameters = () => [
|
|
|
801
808
|
{ type: RATranslateService },
|
|
802
809
|
{ type: NotifierService },
|
|
803
810
|
{ type: RADashboardResponsiveService },
|
|
804
|
-
{ type: RAPermissionService }
|
|
811
|
+
{ type: RAPermissionService },
|
|
812
|
+
{ type: Router }
|
|
805
813
|
];
|
|
806
814
|
__decorate([
|
|
807
815
|
Input('user-dashboard-id'),
|
|
@@ -843,7 +851,7 @@ RADashboardArea = __decorate([
|
|
|
843
851
|
Component({
|
|
844
852
|
selector: 'ra-dashboard-area',
|
|
845
853
|
template: "<div #gridWrapper class=\"wrap gridster gridster-mobile\" [ngStyle]=\"{'height': userWidgets.length > 0 ? (gridheight + 'px') : 'unset'}\">\r\n <!-- <div #gridWrapper class=\"wrap gridster\"> -->\r\n <gridster [options]=\"options\" style=\"height:100%;\" *ngIf=\"userWidgets.length > 0\">\r\n <gridster-item [item]=\"item\" *ngFor=\"let item of widgetList\">\r\n <ra-widget-container [app-config]=\"appConfig\" [event-bus]=\"raDashboardEventBus\"\r\n (widgetDeleted)=\"deleteWidget($event)\" [data]=\"item\" [global-filter]=\"globalFilter\"\r\n [grid-cell-height]=\"gridcellHeight\" *ngIf=\"gridcellHeight && gridcellHeight > 0\" [widget-width]=\"item.cols\"\r\n [widget-height]=\"item.rows\" [widget-instance-id]=\"item.widgetInstanceId\" [dom-resized]=\"domResized\"\r\n (updateAppliedFilters)=\"updateAppliedFilters($event)\">\r\n </ra-widget-container>\r\n </gridster-item>\r\n </gridster>\r\n\r\n <div class=\"empty-padding kiosk-hide\" *ngIf=\"showEmptyDashboard\">\r\n <div class=\"empty-wrapper\">\r\n <div></div>\r\n <div class=\"m-1 empty-prefix\">\r\n <i class=\"fal fa-edit edit-icon\"></i>\r\n <span class=\"empty-title\">{{'dashboard.emptydashboard'|translate}}</span>\r\n </div>\r\n <div class=\"empty-content light\">\r\n <div>\r\n <div class=\"col-sm-12 empty-msg\">\r\n {{'dashboard.emptydashboardmessage'|translate}} <br />\r\n {{'dashboard.emptydashboardmessage2'|translate}}\r\n </div>\r\n <button *ngIf=\"isWidgetMgmnt\" class=\"btn btnLib btn-sm m-1 dashboard-button light\" (click)=\"addNewWidget()\">\r\n <i class=\"fal fa-plus m-1\"></i>{{'dashboard.addawidgets'|translate}}</button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <notifier-container></notifier-container>\r\n</div>",
|
|
846
|
-
styles: ["gridster{width:inherit;resize:height;display:flex;background-color:#ededed;overflow-y:hidden!important}.dvheader{width:100%;height:35px;background:#000;color:#fff;padding:7px 3px 5px 6px;text-transform:uppercase}gridster-item{box-sizing:border-box;z-index:1;position:absolute;overflow:hidden;transition:.3s;display:none;background:#fff;-webkit-user-select:text;-moz-user-select:text;user-select:text;box-shadow:0 1px 10px rgba(0,0,0,.05)}gridster-item:hover{box-shadow:0 1px 10px rgba(0,0,0,.15)}@media screen and (max-width:685px){.gridster-mobile{height:auto!important;margin-bottom:50px!important}}@media screen and (max-width:350px){.gridster-mobile{min-height:330px!important;margin-bottom:0!important}}.empty-padding{padding:40px 20px 20px;background-color:#ededed;display:flex;justify-content:center;align-content:center}.empty-wrapper{display:flex;background-color:#fff;border-radius:8px;min-height:125px;width:72%}.empty-prefix{color:#32ad3c;font-size:18px;display:flex;align-items:center;padding:10px 30px;min-width
|
|
854
|
+
styles: ["gridster{width:inherit;resize:height;display:flex;background-color:#ededed;overflow-y:hidden!important}.dvheader{width:100%;height:35px;background:#000;color:#fff;padding:7px 3px 5px 6px;text-transform:uppercase}gridster-item{box-sizing:border-box;z-index:1;position:absolute;overflow:hidden;transition:.3s;display:none;background:#fff;-webkit-user-select:text;-moz-user-select:text;user-select:text;box-shadow:0 1px 10px rgba(0,0,0,.05)}gridster-item:hover{box-shadow:0 1px 10px rgba(0,0,0,.15)}@media screen and (max-width:685px){.gridster-mobile{height:auto!important;margin-bottom:50px!important}}@media screen and (max-width:350px){.gridster-mobile{min-height:330px!important;margin-bottom:0!important}}.empty-padding{padding:40px 20px 20px;background-color:#ededed;display:flex;justify-content:center;align-content:center}.empty-wrapper{display:flex;background-color:#fff;border-radius:8px;min-height:125px;width:72%}.empty-prefix{color:#32ad3c;font-size:18px;display:flex;align-items:center;padding:10px 30px;min-width:max-content;min-width:-moz-max-content}.empty-content{color:#333;border-left:1px solid #a9afb1;width:100%;display:flex;align-items:center;padding:15px 30px 10px 40px}.empty-msg{padding:0 0 5px;font-size:16px}.dashboard-button{padding:5px 10px 5px 5px!important}.btnLib{background-color:#ededed;color:#333!important}.btn-group-sm>.btn,.btn-sm{padding:5px 20px 5px 5px}.edit-icon{color:#32ad3c;font-size:24px;margin-right:15px}.empty-title{margin-top:10px}@media screen and (max-width:600px){.empty-padding{padding:10px;background-color:#ededed;width:100%;display:block}.empty-wrapper{display:flex;background-color:#fff;border-radius:8px;min-height:125px;width:100%}.empty-prefix{color:#32ad3c;font-size:16px;display:flex;height:40px;padding:6px 10px 8px}.empty-content{color:#333;display:flex;padding:5px 10px 10px;margin-top:44px;margin-left:-185px;border-left:none}.empty-msg{padding:12px 10px 10px 5px;font-size:14px;border-top:1px solid #a9afb1}.edit-icon{color:#32ad3c;font-size:20px;margin-right:6px}.empty-title{margin-top:6px}}"]
|
|
847
855
|
}),
|
|
848
856
|
__metadata("design:paramtypes", [RaDashboardService,
|
|
849
857
|
NgZone,
|
|
@@ -851,7 +859,8 @@ RADashboardArea = __decorate([
|
|
|
851
859
|
RATranslateService,
|
|
852
860
|
NotifierService,
|
|
853
861
|
RADashboardResponsiveService,
|
|
854
|
-
RAPermissionService
|
|
862
|
+
RAPermissionService,
|
|
863
|
+
Router])
|
|
855
864
|
], RADashboardArea);
|
|
856
865
|
|
|
857
866
|
let LockTooltip = class LockTooltip {
|