@schneideress/dashboardframework 0.0.274 → 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 +139 -443
- package/bundles/schneideress-dashboardframework.umd.js.map +1 -1
- package/bundles/schneideress-dashboardframework.umd.min.js +15 -1
- package/bundles/schneideress-dashboardframework.umd.min.js.map +1 -1
- package/esm2015/gridster/lib/gridsterItem.component.js +1 -1
- package/esm2015/gridster/lib/gridsterRenderer.service.js +1 -1
- package/esm2015/lib/ra-dashboard-area/ra.dashboard.area.js +75 -171
- package/esm2015/lib/ra-widget-container/ra.widget.container.component.js +36 -66
- package/esm2015/lib/ra.base.dashboard.template.js +2 -4
- package/esm2015/lib/ra.dashboard.responsive.service.js +2 -12
- package/esm2015/lib/ra.dashboard.service.js +2 -7
- package/esm2015/lib/ra.event.enum.js +1 -7
- package/esm2015/lib/ra.gridster.config.js +3 -3
- package/esm5/gridster/lib/gridsterItem.component.js +1 -1
- package/esm5/gridster/lib/gridsterRenderer.service.js +1 -1
- package/esm5/lib/ra-dashboard-area/ra.dashboard.area.js +75 -173
- package/esm5/lib/ra-widget-container/ra.widget.container.component.js +36 -66
- package/esm5/lib/ra.base.dashboard.template.js +2 -4
- package/esm5/lib/ra.dashboard.responsive.service.js +2 -12
- package/esm5/lib/ra.dashboard.service.js +2 -7
- package/esm5/lib/ra.event.enum.js +1 -7
- package/esm5/lib/ra.gridster.config.js +3 -3
- package/fesm2015/schneideress-dashboardframework.js +114 -263
- package/fesm2015/schneideress-dashboardframework.js.map +1 -1
- package/fesm5/schneideress-dashboardframework.js +115 -266
- package/fesm5/schneideress-dashboardframework.js.map +1 -1
- package/lib/ra-dashboard-area/ra.dashboard.area.d.ts +5 -25
- package/lib/ra-widget-container/ra.widget.container.component.d.ts +2 -6
- package/lib/ra.base.dashboard.template.d.ts +2 -4
- package/lib/ra.dashboard.responsive.service.d.ts +1 -1
- package/lib/ra.dashboard.service.d.ts +1 -0
- package/lib/ra.event.enum.d.ts +1 -7
- 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';
|
|
@@ -16,6 +17,7 @@ let RaDashboardService = class RaDashboardService extends BaseService {
|
|
|
16
17
|
constructor(injector) {
|
|
17
18
|
super(injector, '');
|
|
18
19
|
this.loadedScripts = [];
|
|
20
|
+
this.clientId = undefined;
|
|
19
21
|
}
|
|
20
22
|
/*
|
|
21
23
|
* To load external scripts in the dom
|
|
@@ -67,12 +69,6 @@ let RaDashboardService = class RaDashboardService extends BaseService {
|
|
|
67
69
|
/**To Update widgetInfo in database */
|
|
68
70
|
updateWidget(widgetInfo, appConfig) {
|
|
69
71
|
this.baseUrl = appConfig.apiBaseUrl;
|
|
70
|
-
let info = {};
|
|
71
|
-
info.widgetConfigInfo = widgetInfo.widgetConfigInfo;
|
|
72
|
-
info.widgetInstanceId = widgetInfo.widgetInstanceId;
|
|
73
|
-
info.widgetTitle = widgetInfo.widgetTitle;
|
|
74
|
-
info.widgetType = widgetInfo.widgetType;
|
|
75
|
-
info.widgetId = widgetInfo.widgetId;
|
|
76
72
|
return this.post('widget/UpdateUserWidget', widgetInfo);
|
|
77
73
|
}
|
|
78
74
|
/** To Move or change position if current widget container*/
|
|
@@ -186,12 +182,6 @@ var RAEvent;
|
|
|
186
182
|
RAEvent["UpdateAppledFiterForInapplicableFilter"] = "UpdateAppledFiterForInapplicableFilter";
|
|
187
183
|
/**show inapplicable filter message in global filter flyout */
|
|
188
184
|
RAEvent["ShowInapplicableFilterMessage"] = "ShowInapplicableFilterMessage";
|
|
189
|
-
/** Bulk Action Clicked */
|
|
190
|
-
RAEvent["BulkActionClick"] = "BulkActionClick";
|
|
191
|
-
/** Global Filter Clicked */
|
|
192
|
-
/** When user change the curated filter(eg:data streams), system will create/delete widgets */
|
|
193
|
-
RAEvent["CuratedFilterChange"] = "CuratedFilterChange";
|
|
194
|
-
RAEvent["GlobalFilterClick"] = "GlobalFilterClick";
|
|
195
185
|
})(RAEvent || (RAEvent = {}));
|
|
196
186
|
var RAEventKey;
|
|
197
187
|
(function (RAEventKey) {
|
|
@@ -205,9 +195,9 @@ const GridsterConfigDefaultSettings = {
|
|
|
205
195
|
margin: 10,
|
|
206
196
|
outerMargin: true,
|
|
207
197
|
outerMarginTop: 10,
|
|
208
|
-
outerMarginRight:
|
|
198
|
+
outerMarginRight: 10,
|
|
209
199
|
outerMarginBottom: 30,
|
|
210
|
-
outerMarginLeft:
|
|
200
|
+
outerMarginLeft: 10,
|
|
211
201
|
useTransformPositioning: true,
|
|
212
202
|
mobileBreakpoint: 640,
|
|
213
203
|
minCols: 10,
|
|
@@ -312,7 +302,7 @@ let RADashboardResponsiveService = class RADashboardResponsiveService {
|
|
|
312
302
|
check = true;
|
|
313
303
|
return check;
|
|
314
304
|
}
|
|
315
|
-
getGridsterConfig(isWidgetMgmnt
|
|
305
|
+
getGridsterConfig(isWidgetMgmnt) {
|
|
316
306
|
let config = GridsterConfigDefaultSettings;
|
|
317
307
|
config.minCols = this.currentResInfo.maxCols;
|
|
318
308
|
config.maxCols = this.currentResInfo.maxCols;
|
|
@@ -334,13 +324,6 @@ let RADashboardResponsiveService = class RADashboardResponsiveService {
|
|
|
334
324
|
config.swap = true;
|
|
335
325
|
config.draggable.enabled = true;
|
|
336
326
|
}
|
|
337
|
-
if (!resize) {
|
|
338
|
-
config.resizable.enabled = false;
|
|
339
|
-
config.swap = false;
|
|
340
|
-
}
|
|
341
|
-
if (!canMove) {
|
|
342
|
-
config.draggable.enabled = false;
|
|
343
|
-
}
|
|
344
327
|
return config;
|
|
345
328
|
}
|
|
346
329
|
/**To map IwidgetInfo object to gridsterItem */
|
|
@@ -348,9 +331,6 @@ let RADashboardResponsiveService = class RADashboardResponsiveService {
|
|
|
348
331
|
if (widget.widgetSettings) {
|
|
349
332
|
widget.settings = JSON.parse(widget.widgetSettings);
|
|
350
333
|
}
|
|
351
|
-
if (widget.templateSettings) {
|
|
352
|
-
widget.templateWidgetSettings = JSON.parse(widget.templateSettings);
|
|
353
|
-
}
|
|
354
334
|
let gridsterItem = {
|
|
355
335
|
cols: this.getWidth(widget.width),
|
|
356
336
|
rows: this.getHeight(widget.height),
|
|
@@ -400,7 +380,7 @@ RADashboardResponsiveService = __decorate([
|
|
|
400
380
|
], RADashboardResponsiveService);
|
|
401
381
|
|
|
402
382
|
let RADashboardArea = class RADashboardArea {
|
|
403
|
-
constructor(dashboardService, ngZone, ngxService, translateService, notifier, responsiveService, permissionService) {
|
|
383
|
+
constructor(dashboardService, ngZone, ngxService, translateService, notifier, responsiveService, permissionService, router) {
|
|
404
384
|
this.dashboardService = dashboardService;
|
|
405
385
|
this.ngZone = ngZone;
|
|
406
386
|
this.ngxService = ngxService;
|
|
@@ -408,6 +388,7 @@ let RADashboardArea = class RADashboardArea {
|
|
|
408
388
|
this.notifier = notifier;
|
|
409
389
|
this.responsiveService = responsiveService;
|
|
410
390
|
this.permissionService = permissionService;
|
|
391
|
+
this.router = router;
|
|
411
392
|
this.widgetList = Array();
|
|
412
393
|
this.gridheight = 300;
|
|
413
394
|
this.gridcellHeight = 0;
|
|
@@ -417,20 +398,13 @@ let RADashboardArea = class RADashboardArea {
|
|
|
417
398
|
this.domResized = false;
|
|
418
399
|
this.showEmptyDashboard = false;
|
|
419
400
|
this.isWidgetMgmnt = false;
|
|
420
|
-
this.initialWidgetCount = 10;
|
|
421
|
-
this.currentLoadedIndex = 0;
|
|
422
|
-
this.loading = false;
|
|
423
401
|
this.widgetHeight = 2;
|
|
424
402
|
this.widgetWidth = 4;
|
|
425
403
|
this.hideDashboardBanner = new EventEmitter();
|
|
426
404
|
}
|
|
427
405
|
ngOnInit() {
|
|
428
|
-
window.addEventListener('scroll', () => {
|
|
429
|
-
this.loadNext();
|
|
430
|
-
});
|
|
431
406
|
this.isWidgetMgmnt = this.permissionService.hasPermission('ra.widgetmanagement');
|
|
432
407
|
this.initiateGridsterConfig();
|
|
433
|
-
this.setEmptyDashboardConfig();
|
|
434
408
|
this.lastViewType = this.responsiveService.IsDesktopView ? 'desktop' : 'mobile';
|
|
435
409
|
this.responsiveService.resized.subscribe((isDesktop) => {
|
|
436
410
|
if (this.lastViewType != (isDesktop ? 'desktop' : 'mobile') || !isDesktop) {
|
|
@@ -459,11 +433,6 @@ let RADashboardArea = class RADashboardArea {
|
|
|
459
433
|
}, 100);
|
|
460
434
|
}
|
|
461
435
|
});
|
|
462
|
-
setTimeout(() => {
|
|
463
|
-
this.bulkActionClick = this.raDashboardEventBus.subscribe(RAEvent.BulkActionClick).subscribe((data) => {
|
|
464
|
-
this.bulkActionData = JSON.parse(JSON.stringify(data)); // To create a new reference;
|
|
465
|
-
});
|
|
466
|
-
});
|
|
467
436
|
}
|
|
468
437
|
ngOnChanges(changes) {
|
|
469
438
|
this.isWidgetMgmnt = this.permissionService.hasPermission('ra.widgetmanagement');
|
|
@@ -471,43 +440,27 @@ let RADashboardArea = class RADashboardArea {
|
|
|
471
440
|
this.isWidgetLoaded = true;
|
|
472
441
|
this.loadWidgets(this.userDashboardId, this.areaKey);
|
|
473
442
|
}
|
|
474
|
-
this.initiateGridsterConfig();
|
|
475
443
|
if (changes.raDashboardEventBus && changes.raDashboardEventBus.currentValue != changes.raDashboardEventBus.previousValue) {
|
|
476
444
|
this.inititateEventBusSubscritions();
|
|
477
445
|
}
|
|
478
446
|
}
|
|
479
|
-
setEmptyDashboardConfig() {
|
|
480
|
-
if (this.dashboardInfo && this.dashboardInfo.templateConfig.emptyDashboardHeader) {
|
|
481
|
-
this.emptyDashboardTitle = this.translateService.translate("dashboard." + this.dashboardInfo.templateConfig.emptyDashboardHeader.titleKey);
|
|
482
|
-
this.emptyDashboardMsg1 = this.translateService.translate("dashboard." + this.dashboardInfo.templateConfig.emptyDashboardHeader.descriptionKey1);
|
|
483
|
-
this.emptyDashboardMsg2 = (this.dashboardInfo.templateConfig.emptyDashboardHeader.descriptionKey2) ? this.translateService.translate("dashboard." + this.dashboardInfo.templateConfig.emptyDashboardHeader.descriptionKey2) : '';
|
|
484
|
-
this.emptyDashboardButtonText = this.translateService.translate("dashboard." + this.dashboardInfo.templateConfig.emptyDashboardHeader.buttonTextKey);
|
|
485
|
-
this.emptyDashboardButtonIcon = this.dashboardInfo.templateConfig.emptyDashboardHeader.buttonIcon ? this.dashboardInfo.templateConfig.emptyDashboardHeader.buttonIcon : '';
|
|
486
|
-
this.emptyDashboardButtonAction = this.dashboardInfo.templateConfig.emptyDashboardHeader.buttonAction ? this.dashboardInfo.templateConfig.emptyDashboardHeader.buttonAction : '';
|
|
487
|
-
}
|
|
488
|
-
}
|
|
489
447
|
/**To set GridsterConfig */
|
|
490
448
|
initiateGridsterConfig() {
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
this.options.
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
this.
|
|
500
|
-
if (
|
|
501
|
-
|
|
502
|
-
this.updateWidgetPosition(item.widgetInfo.widgetInstanceId);
|
|
503
|
-
}
|
|
449
|
+
/**To override default configuration values to the gridster control */
|
|
450
|
+
this.options = this.responsiveService.getGridsterConfig(this.isWidgetMgmnt);
|
|
451
|
+
this.options.initCallback = (gridster) => {
|
|
452
|
+
if (this.options.api) {
|
|
453
|
+
this.gridcellHeight = this.options.api.getCurrentRowHeight();
|
|
454
|
+
}
|
|
455
|
+
};
|
|
456
|
+
this.options.itemChangeCallback = (item) => {
|
|
457
|
+
if (this.responsiveService.IsDesktopView) {
|
|
458
|
+
if (item.widgetInfo && item.widgetInfo.widgetInstanceId) {
|
|
459
|
+
this.updateWidgetPosition(item.widgetInfo.widgetInstanceId);
|
|
504
460
|
}
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
}
|
|
508
|
-
}
|
|
509
|
-
widgetLoaded(widget) {
|
|
510
|
-
widget.canLoadData = true;
|
|
461
|
+
}
|
|
462
|
+
this.setAreaHeight();
|
|
463
|
+
};
|
|
511
464
|
}
|
|
512
465
|
/** To initiate eventbus subsctiptions */
|
|
513
466
|
inititateEventBusSubscritions() {
|
|
@@ -526,11 +479,6 @@ let RADashboardArea = class RADashboardArea {
|
|
|
526
479
|
this.addWidget(e);
|
|
527
480
|
});
|
|
528
481
|
});
|
|
529
|
-
this.curatedFilterChange = this.raDashboardEventBus.subscribe(RAEvent.CuratedFilterChange).subscribe((e) => {
|
|
530
|
-
this.ngZone.run(() => {
|
|
531
|
-
this.loadWidgets(this.userDashboardId, this.areaKey);
|
|
532
|
-
});
|
|
533
|
-
});
|
|
534
482
|
this.rearrangeWidgetClick = this.raDashboardEventBus.subscribe(RAEvent.RearrangeClicked).subscribe((e) => {
|
|
535
483
|
this.ngZone.run(() => {
|
|
536
484
|
this.rearrangeWidgets();
|
|
@@ -579,10 +527,6 @@ let RADashboardArea = class RADashboardArea {
|
|
|
579
527
|
this.widgetLibraryDoneClick.unsubscribe();
|
|
580
528
|
if (this.rearrangeWidgetClick)
|
|
581
529
|
this.rearrangeWidgetClick.unsubscribe();
|
|
582
|
-
if (this.curatedFilterChange)
|
|
583
|
-
this.curatedFilterChange.unsubscribe();
|
|
584
|
-
if (this.bulkActionClick)
|
|
585
|
-
this.bulkActionClick.unsubscribe();
|
|
586
530
|
}
|
|
587
531
|
/**To update position/dimention of all widgets in the area */
|
|
588
532
|
updateWidgets() {
|
|
@@ -618,16 +562,14 @@ let RADashboardArea = class RADashboardArea {
|
|
|
618
562
|
}
|
|
619
563
|
/** To retrieve widgets based on userDashboardid and area name */
|
|
620
564
|
loadWidgets(userDashboarId, areaKey) {
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
this.initialWidgetCount = 1000;
|
|
626
|
-
this.currentLoadedIndex = 0;
|
|
627
|
-
this.loading = false;
|
|
565
|
+
const currentUrl = this.router.url;
|
|
566
|
+
let IsTypeIndicator = false;
|
|
567
|
+
if (currentUrl.includes('indicatorDashboard'))
|
|
568
|
+
IsTypeIndicator = true;
|
|
628
569
|
let widgetInfo = {
|
|
629
570
|
dashboardId: userDashboarId.toString(),
|
|
630
|
-
dashboardAreaKey: areaKey
|
|
571
|
+
dashboardAreaKey: areaKey,
|
|
572
|
+
IsTypeIndicator: IsTypeIndicator
|
|
631
573
|
};
|
|
632
574
|
this.widgetList = [];
|
|
633
575
|
this.dashboardService.getWidgetsByDashboardArea(widgetInfo, this.appConfig).subscribe(widgets => {
|
|
@@ -643,8 +585,9 @@ let RADashboardArea = class RADashboardArea {
|
|
|
643
585
|
});
|
|
644
586
|
this.checkPAMWidgets();
|
|
645
587
|
if (widgets && widgets.length > 0) {
|
|
646
|
-
this.
|
|
647
|
-
this.
|
|
588
|
+
this.dashboardService.clientId = widgets[0].clientId;
|
|
589
|
+
this.widgetList = this.mapObjectListToGridsterItemList(widgets);
|
|
590
|
+
this.setAreaHeight();
|
|
648
591
|
this.raDashboardEventBus.publish(RAEvent.HideDashboardBanner, false);
|
|
649
592
|
}
|
|
650
593
|
else {
|
|
@@ -653,43 +596,6 @@ let RADashboardArea = class RADashboardArea {
|
|
|
653
596
|
}
|
|
654
597
|
});
|
|
655
598
|
}
|
|
656
|
-
loadWidgetsDelta() {
|
|
657
|
-
if (!this.loading) {
|
|
658
|
-
this.loading = true;
|
|
659
|
-
let widgets = this.mapObjectListToGridsterItemList(this.userWidgets.slice(this.currentLoadedIndex, (this.currentLoadedIndex + this.initialWidgetCount)));
|
|
660
|
-
this.currentLoadedIndex += this.initialWidgetCount;
|
|
661
|
-
this.widgetList.push(...widgets);
|
|
662
|
-
this.setAreaHeight();
|
|
663
|
-
setTimeout(() => {
|
|
664
|
-
this.loading = false;
|
|
665
|
-
});
|
|
666
|
-
}
|
|
667
|
-
}
|
|
668
|
-
dataLoaded(widgetElement) {
|
|
669
|
-
this.loadNext();
|
|
670
|
-
}
|
|
671
|
-
loadNext() {
|
|
672
|
-
if (this.divBottom) {
|
|
673
|
-
if (this.elementInViewport(this.divBottom.nativeElement)) {
|
|
674
|
-
this.loadWidgetsDelta();
|
|
675
|
-
}
|
|
676
|
-
}
|
|
677
|
-
}
|
|
678
|
-
elementInViewport(el) {
|
|
679
|
-
var top = el.offsetTop;
|
|
680
|
-
var left = el.offsetLeft;
|
|
681
|
-
var width = el.offsetWidth;
|
|
682
|
-
var height = el.offsetHeight;
|
|
683
|
-
while (el.offsetParent) {
|
|
684
|
-
el = el.offsetParent;
|
|
685
|
-
top += el.offsetTop;
|
|
686
|
-
left += el.offsetLeft;
|
|
687
|
-
}
|
|
688
|
-
return (top >= window.scrollY &&
|
|
689
|
-
left >= window.scrollX &&
|
|
690
|
-
(top + height) <= (window.scrollY + window.innerHeight) &&
|
|
691
|
-
(left + width) <= (window.scrollX + window.innerWidth));
|
|
692
|
-
}
|
|
693
599
|
/** To set Area(Gridster) height dynamically as widgets are added/removed */
|
|
694
600
|
setAreaHeight() {
|
|
695
601
|
setTimeout(() => {
|
|
@@ -731,22 +637,22 @@ let RADashboardArea = class RADashboardArea {
|
|
|
731
637
|
}
|
|
732
638
|
/** To remove a widget instance from dashboard and to save info in database */
|
|
733
639
|
deleteWidget(widgetInstanceId, isalertDisabled = false) {
|
|
734
|
-
let widget = this.userWidgets.filter((item) => {
|
|
735
|
-
return item.widgetInstanceId === widgetInstanceId;
|
|
736
|
-
});
|
|
737
|
-
if (widget.length > 0) {
|
|
738
|
-
this.userWidgets.splice(this.userWidgets.indexOf(widget[0]), 1);
|
|
739
|
-
}
|
|
740
|
-
if (this.PAMWidgets.length > 0) {
|
|
741
|
-
var indx = this.PAMWidgets.indexOf(widgetInstanceId);
|
|
742
|
-
if (indx > -1)
|
|
743
|
-
this.PAMWidgets.splice(indx, 1);
|
|
744
|
-
this.checkPAMWidgets();
|
|
745
|
-
}
|
|
746
640
|
let gridsterItem = this.widgetList.filter((item) => {
|
|
747
641
|
return item.widgetInfo.widgetInstanceId === widgetInstanceId;
|
|
748
642
|
});
|
|
749
643
|
if (gridsterItem.length > 0) {
|
|
644
|
+
let widget = this.userWidgets.filter((item) => {
|
|
645
|
+
return item.widgetInstanceId === widgetInstanceId;
|
|
646
|
+
});
|
|
647
|
+
if (widget.length > 0) {
|
|
648
|
+
this.userWidgets.splice(this.userWidgets.indexOf(widget[0]), 1);
|
|
649
|
+
}
|
|
650
|
+
if (this.PAMWidgets.length > 0) {
|
|
651
|
+
var indx = this.PAMWidgets.indexOf(widgetInstanceId);
|
|
652
|
+
if (indx > -1)
|
|
653
|
+
this.PAMWidgets.splice(indx, 1);
|
|
654
|
+
this.checkPAMWidgets();
|
|
655
|
+
}
|
|
750
656
|
this.widgetList.splice(this.widgetList.indexOf(gridsterItem[0]), 1);
|
|
751
657
|
this.setAreaHeight();
|
|
752
658
|
if (!isalertDisabled) {
|
|
@@ -760,15 +666,11 @@ let RADashboardArea = class RADashboardArea {
|
|
|
760
666
|
}
|
|
761
667
|
/**To rearrange widgets position in the dashboard, compactLeft&Up,compactLeft,compactUp,etc*/
|
|
762
668
|
rearrangeWidgets() {
|
|
763
|
-
this.currentLoadedIndex = 0;
|
|
764
|
-
this.loading = false;
|
|
765
669
|
for (let i = 0; i < this.userWidgets.length; i++) {
|
|
766
670
|
this.userWidgets[i].position_x = 0;
|
|
767
671
|
this.userWidgets[i].position_y = 0;
|
|
768
672
|
}
|
|
769
|
-
this.widgetList =
|
|
770
|
-
this.loadWidgetsDelta();
|
|
771
|
-
this.raDashboardEventBus.publish(RAEvent.HideDashboardBanner, false);
|
|
673
|
+
this.widgetList = this.mapObjectListToGridsterItemList(this.userWidgets);
|
|
772
674
|
if (this.widgetList.length > 0)
|
|
773
675
|
this.updateWidgetPosition(this.widgetList[0].widgetInfo.widgetInstanceId);
|
|
774
676
|
setTimeout(() => {
|
|
@@ -800,33 +702,30 @@ let RADashboardArea = class RADashboardArea {
|
|
|
800
702
|
this.ngxService.start();
|
|
801
703
|
this.dashboardService.addWidget(data, this.appConfig).subscribe(widget => {
|
|
802
704
|
this.userWidgets.push(widget);
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
this.
|
|
808
|
-
if (
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
widget.rowHeight = curRowHeight;
|
|
812
|
-
this.gridcellHeight = curRowHeight;
|
|
813
|
-
}
|
|
814
|
-
}
|
|
815
|
-
var widgetInstanceId = 0;
|
|
816
|
-
if (widget && widget.widgetInstanceId) {
|
|
817
|
-
widgetInstanceId = widget.widgetInstanceId;
|
|
818
|
-
/**To save added widget position in db */
|
|
819
|
-
if (this.responsiveService.IsDesktopView) {
|
|
820
|
-
setTimeout(() => {
|
|
821
|
-
this.updateWidgetPosition(widgetInstanceId);
|
|
822
|
-
});
|
|
823
|
-
}
|
|
705
|
+
let gridsterItem = this.responsiveService.getGridsterItem(widget);
|
|
706
|
+
this.widgetList.push(gridsterItem);
|
|
707
|
+
this.setAreaHeight();
|
|
708
|
+
if (this.options.api) {
|
|
709
|
+
let curRowHeight = Number(this.options.api.getCurrentRowHeight());
|
|
710
|
+
if (curRowHeight > 0) {
|
|
711
|
+
widget.rowHeight = curRowHeight;
|
|
712
|
+
this.gridcellHeight = curRowHeight;
|
|
824
713
|
}
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
714
|
+
}
|
|
715
|
+
var widgetInstanceId = 0;
|
|
716
|
+
if (widget && widget.widgetInstanceId) {
|
|
717
|
+
widgetInstanceId = widget.widgetInstanceId;
|
|
718
|
+
/**To save added widget position in db */
|
|
719
|
+
if (this.responsiveService.IsDesktopView) {
|
|
720
|
+
setTimeout(() => {
|
|
721
|
+
this.updateWidgetPosition(widgetInstanceId);
|
|
722
|
+
});
|
|
828
723
|
}
|
|
829
724
|
}
|
|
725
|
+
if (widget.settings && widget.settings.isPAMWidget) {
|
|
726
|
+
this.PAMWidgets.push(widget.widgetInstanceId);
|
|
727
|
+
this.checkPAMWidgets();
|
|
728
|
+
}
|
|
830
729
|
this.raDashboardEventBus.publish(RAEvent.WidgetAdded, widget);
|
|
831
730
|
});
|
|
832
731
|
}
|
|
@@ -855,15 +754,12 @@ let RADashboardArea = class RADashboardArea {
|
|
|
855
754
|
});
|
|
856
755
|
}
|
|
857
756
|
this.userWidgets.push(data);
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
this.
|
|
863
|
-
|
|
864
|
-
this.PAMWidgets.push(data.widgetInstanceId);
|
|
865
|
-
this.checkPAMWidgets();
|
|
866
|
-
}
|
|
757
|
+
let gridsterItem = this.responsiveService.getGridsterItem(data);
|
|
758
|
+
this.widgetList.push(gridsterItem);
|
|
759
|
+
this.setAreaHeight();
|
|
760
|
+
if (data.settings && data.settings.isPAMWidget) {
|
|
761
|
+
this.PAMWidgets.push(data.widgetInstanceId);
|
|
762
|
+
this.checkPAMWidgets();
|
|
867
763
|
}
|
|
868
764
|
}
|
|
869
765
|
mapObjectListToGridsterItemList(widgetList) {
|
|
@@ -890,11 +786,8 @@ let RADashboardArea = class RADashboardArea {
|
|
|
890
786
|
});
|
|
891
787
|
return widgetListArray;
|
|
892
788
|
}
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
this.raDashboardEventBus.publish(RAEvent.AddNewWidgetToDashboard, null);
|
|
896
|
-
else if (this.emptyDashboardButtonAction == "filter")
|
|
897
|
-
this.raDashboardEventBus.publish(RAEvent.GlobalFilterClick, null);
|
|
789
|
+
addNewWidget() {
|
|
790
|
+
this.raDashboardEventBus.publish(RAEvent.AddNewWidgetToDashboard, null);
|
|
898
791
|
}
|
|
899
792
|
updateAppliedFilters(data) {
|
|
900
793
|
this.raDashboardEventBus.publish(RAEvent.UpdateAppledFiterForInapplicableFilter, data);
|
|
@@ -915,7 +808,8 @@ RADashboardArea.ctorParameters = () => [
|
|
|
915
808
|
{ type: RATranslateService },
|
|
916
809
|
{ type: NotifierService },
|
|
917
810
|
{ type: RADashboardResponsiveService },
|
|
918
|
-
{ type: RAPermissionService }
|
|
811
|
+
{ type: RAPermissionService },
|
|
812
|
+
{ type: Router }
|
|
919
813
|
];
|
|
920
814
|
__decorate([
|
|
921
815
|
Input('user-dashboard-id'),
|
|
@@ -945,14 +839,6 @@ __decorate([
|
|
|
945
839
|
Input('app-config'),
|
|
946
840
|
__metadata("design:type", Object)
|
|
947
841
|
], RADashboardArea.prototype, "appConfig", void 0);
|
|
948
|
-
__decorate([
|
|
949
|
-
Input('dashboard-info'),
|
|
950
|
-
__metadata("design:type", Object)
|
|
951
|
-
], RADashboardArea.prototype, "dashboardInfo", void 0);
|
|
952
|
-
__decorate([
|
|
953
|
-
Input(),
|
|
954
|
-
__metadata("design:type", Object)
|
|
955
|
-
], RADashboardArea.prototype, "templateConfig", void 0);
|
|
956
842
|
__decorate([
|
|
957
843
|
Output(),
|
|
958
844
|
__metadata("design:type", Object)
|
|
@@ -961,15 +847,11 @@ __decorate([
|
|
|
961
847
|
ViewChild('gridWrapper', { static: false }),
|
|
962
848
|
__metadata("design:type", ElementRef)
|
|
963
849
|
], RADashboardArea.prototype, "gridWrapper", void 0);
|
|
964
|
-
__decorate([
|
|
965
|
-
ViewChild('divBottom', { static: false }),
|
|
966
|
-
__metadata("design:type", ElementRef)
|
|
967
|
-
], RADashboardArea.prototype, "divBottom", void 0);
|
|
968
850
|
RADashboardArea = __decorate([
|
|
969
851
|
Component({
|
|
970
852
|
selector: 'ra-dashboard-area',
|
|
971
|
-
template: "<div #gridWrapper class=\"wrap gridster gridster-mobile\"
|
|
972
|
-
styles: ["gridster{width:inherit;resize:height;display:flex;background-color:#
|
|
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>",
|
|
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}}"]
|
|
973
855
|
}),
|
|
974
856
|
__metadata("design:paramtypes", [RaDashboardService,
|
|
975
857
|
NgZone,
|
|
@@ -977,7 +859,8 @@ RADashboardArea = __decorate([
|
|
|
977
859
|
RATranslateService,
|
|
978
860
|
NotifierService,
|
|
979
861
|
RADashboardResponsiveService,
|
|
980
|
-
RAPermissionService
|
|
862
|
+
RAPermissionService,
|
|
863
|
+
Router])
|
|
981
864
|
], RADashboardArea);
|
|
982
865
|
|
|
983
866
|
let LockTooltip = class LockTooltip {
|
|
@@ -1067,11 +950,8 @@ let RAWidgetContainer = class RAWidgetContainer {
|
|
|
1067
950
|
this.showExcell = true;
|
|
1068
951
|
this.hideTitle = false;
|
|
1069
952
|
this.inapplicableFilters = [];
|
|
1070
|
-
this.canLoadData = false;
|
|
1071
953
|
this.widgetDeleted = new EventEmitter();
|
|
1072
954
|
this.updateAppliedFilters = new EventEmitter();
|
|
1073
|
-
this.dataLoaded = new EventEmitter();
|
|
1074
|
-
this.widgetLoaded = new EventEmitter();
|
|
1075
955
|
this.isWidgetStateApplicable = false;
|
|
1076
956
|
this.widgetEmptyState = '';
|
|
1077
957
|
this.lockVisible = false;
|
|
@@ -1092,7 +972,7 @@ let RAWidgetContainer = class RAWidgetContainer {
|
|
|
1092
972
|
this.invokeWidgetResizedEvent();
|
|
1093
973
|
}
|
|
1094
974
|
ngOnInit() {
|
|
1095
|
-
this.WidgetDisplayName = this.
|
|
975
|
+
this.WidgetDisplayName = this.getwidgetTitleTranslation(this.data.widgetInfo.widgetTitle);
|
|
1096
976
|
this.lockIconTitle = this.translateService.translate('Common.lockedfields');
|
|
1097
977
|
this.lockIconFooter = this.translateService.translate('Common.lockedfieldseditinfo');
|
|
1098
978
|
this.inapplicableIconTitle = this.translateService.translate('Common.InapplicableFilters');
|
|
@@ -1108,32 +988,19 @@ let RAWidgetContainer = class RAWidgetContainer {
|
|
|
1108
988
|
});
|
|
1109
989
|
});
|
|
1110
990
|
}
|
|
1111
|
-
if (this.widgetElement) {
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
991
|
+
if (this.widgetElement && changes.globalFilter && changes.globalFilter.currentValue != changes.globalFilter.previousValue) {
|
|
992
|
+
let filterObj = this.getParsedConfig(this.globalFilter);
|
|
993
|
+
if (filterObj.WidgetInstanceId) {
|
|
994
|
+
if (this.data.widgetInfo.widgetInstanceId != filterObj.WidgetInstanceId)
|
|
995
|
+
this.refreshWidget(this.data.widgetInfo);
|
|
1116
996
|
}
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
let filterObj = this.getParsedConfig(this.globalFilter);
|
|
1120
|
-
if (filterObj.WidgetInstanceId) {
|
|
1121
|
-
if (this.data.widgetInfo.widgetInstanceId != filterObj.WidgetInstanceId)
|
|
1122
|
-
this.refreshWidget(this.data.widgetInfo);
|
|
1123
|
-
}
|
|
1124
|
-
else {
|
|
1125
|
-
//this.refreshWidget(this.data.widgetInfo);
|
|
1126
|
-
}
|
|
1127
|
-
}
|
|
1128
|
-
}
|
|
1129
|
-
if (changes.width && changes.width.currentValue != changes.width.previousValue ||
|
|
1130
|
-
(changes.height && changes.height.currentValue != changes.height.previousValue)) {
|
|
1131
|
-
this.invokeWidgetResizedEvent();
|
|
997
|
+
else {
|
|
998
|
+
this.refreshWidget(this.data.widgetInfo);
|
|
1132
999
|
}
|
|
1133
1000
|
}
|
|
1134
|
-
if (changes.
|
|
1135
|
-
|
|
1136
|
-
|
|
1001
|
+
if (changes.width && changes.width.currentValue != changes.width.previousValue ||
|
|
1002
|
+
(changes.height && changes.height.currentValue != changes.height.previousValue)) {
|
|
1003
|
+
this.invokeWidgetResizedEvent();
|
|
1137
1004
|
}
|
|
1138
1005
|
}
|
|
1139
1006
|
invokeWidgetResizedEvent() {
|
|
@@ -1312,10 +1179,6 @@ let RAWidgetContainer = class RAWidgetContainer {
|
|
|
1312
1179
|
this.showPanel = true;
|
|
1313
1180
|
else
|
|
1314
1181
|
this.showPanel = false;
|
|
1315
|
-
if (!this.data.dataLoaded) {
|
|
1316
|
-
this.data.dataLoaded = true;
|
|
1317
|
-
this.dataLoaded.emit(this.widgetElement);
|
|
1318
|
-
}
|
|
1319
1182
|
break;
|
|
1320
1183
|
case 'onConfigEditClicked':
|
|
1321
1184
|
this.editWidget();
|
|
@@ -1388,9 +1251,7 @@ let RAWidgetContainer = class RAWidgetContainer {
|
|
|
1388
1251
|
widgetConfigFilter.configChanges = this.getConfigChanges(false);
|
|
1389
1252
|
widgetConfigFilter.widgetInfo.widgetName = widgetInfo.widgetName;
|
|
1390
1253
|
widgetConfigFilter.globalFilter = this.globalFilter;
|
|
1391
|
-
|
|
1392
|
-
//this.widgetElement.loadContent(widgetConfigFilter);
|
|
1393
|
-
this.widgetLoaded.emit();
|
|
1254
|
+
this.widgetElement.loadContent(widgetConfigFilter);
|
|
1394
1255
|
yield this.setLock(widgetConfigFilter.config);
|
|
1395
1256
|
yield this.setDownloadIcon();
|
|
1396
1257
|
}));
|
|
@@ -1457,8 +1318,7 @@ let RAWidgetContainer = class RAWidgetContainer {
|
|
|
1457
1318
|
globalFilter: this.globalFilter,
|
|
1458
1319
|
appConfig: this.appConfig,
|
|
1459
1320
|
widgetInfo: widgetInfo,
|
|
1460
|
-
configChanges: this.getConfigChanges(configChanged)
|
|
1461
|
-
dashboardInfo: this.dashboardInfo
|
|
1321
|
+
configChanges: this.getConfigChanges(configChanged)
|
|
1462
1322
|
};
|
|
1463
1323
|
if (widgetContainerContext.isWidgetLoaded) {
|
|
1464
1324
|
if (this.widgetElement && typeof (this.widgetElement.setConfigFilter) == 'function') {
|
|
@@ -1625,12 +1485,9 @@ let RAWidgetContainer = class RAWidgetContainer {
|
|
|
1625
1485
|
let html = '<div id="ra-db-widget-menu"' + 'style="' + style + '" class="download-content dropdown-content widget-config-item dropdown-click" style="z-index: 1002;">';
|
|
1626
1486
|
let settings = '';
|
|
1627
1487
|
if (this.isWidgetMgmnt) {
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
settings += this.getHtmlForButton('wcCopyWidget', 'fal fa-copy', this.copyText);
|
|
1632
|
-
if (!this.data.widgetInfo.templateWidgetSettings || !this.data.widgetInfo.templateWidgetSettings.hideMove)
|
|
1633
|
-
settings += this.getHtmlForButton('wcMoveWidget', 'fal fa-arrows-alt', this.moveText);
|
|
1488
|
+
settings += this.getHtmlForButton('wcEditWidget', 'fal fa-edit', this.editText);
|
|
1489
|
+
settings += this.getHtmlForButton('wcCopyWidget', 'fal fa-copy', this.copyText);
|
|
1490
|
+
settings += this.getHtmlForButton('wcMoveWidget', 'fal fa-arrows-alt', this.moveText);
|
|
1634
1491
|
}
|
|
1635
1492
|
let customPageParams = false;
|
|
1636
1493
|
if (this.data.widgetInfo && this.data.widgetInfo.widgetSettings) {
|
|
@@ -1639,14 +1496,14 @@ let RAWidgetContainer = class RAWidgetContainer {
|
|
|
1639
1496
|
customPageParams = true;
|
|
1640
1497
|
}
|
|
1641
1498
|
}
|
|
1642
|
-
if (
|
|
1499
|
+
if ((this.detailPageUrl || customPageParams) && this.checkVisitLinkVisiblity()) {
|
|
1643
1500
|
settings += '<a style="max-height: 30px;align-items: center;align-content: center; display: flex;" id="wcVisitWidget">';
|
|
1644
1501
|
settings += '<i style="padding-left: 4px;font-size: 27px !important;" class="fal fa-angle-right"></i> ';
|
|
1645
1502
|
settings += '<span style="padding-left: 11px;margin-top: 2px;" style="padding-left: 6px;">';
|
|
1646
1503
|
settings += this.translateService.translate('Common.visitpage');
|
|
1647
1504
|
settings += '</span></a>';
|
|
1648
1505
|
}
|
|
1649
|
-
if (
|
|
1506
|
+
if ((this.detailPageUrl && this.checkVisitLinkVisiblity()) || this.isWidgetMgmnt) {
|
|
1650
1507
|
html += '<div style="color: #9FA0A4;font-size: 12px;padding-top: 8px;padding-left: 12px;">';
|
|
1651
1508
|
html += this.translateService.translate('Common.settings') + '</div>';
|
|
1652
1509
|
html += settings;
|
|
@@ -1678,7 +1535,7 @@ let RAWidgetContainer = class RAWidgetContainer {
|
|
|
1678
1535
|
if (this.isDownloadIconVisible && this.isWidgetMgmnt && this.showExcell) {
|
|
1679
1536
|
html += this.getHr();
|
|
1680
1537
|
}
|
|
1681
|
-
if (this.isWidgetMgmnt
|
|
1538
|
+
if (this.isWidgetMgmnt) {
|
|
1682
1539
|
html += '<a id="wcWidgetDelete"><i class="fal fa-times" style="padding-left: 3px;color: red;"></i><span>';
|
|
1683
1540
|
html += this.deleteText;
|
|
1684
1541
|
html += '</span></a>';
|
|
@@ -1757,6 +1614,22 @@ let RAWidgetContainer = class RAWidgetContainer {
|
|
|
1757
1614
|
if (this.currentComponent)
|
|
1758
1615
|
this.popupInstance.removeMe(this.currentComponent);
|
|
1759
1616
|
}
|
|
1617
|
+
getwidgetTitleTranslation(item) {
|
|
1618
|
+
let rKey = 'DBW_' + this.translateService.makeCode(item);
|
|
1619
|
+
let translatedString = '';
|
|
1620
|
+
if (this.dashboardService.clientId) {
|
|
1621
|
+
const translationModule = this.dashboardService.clientId + '_DBW';
|
|
1622
|
+
translatedString = this.translateService.translate(translationModule + '.' + rKey);
|
|
1623
|
+
if (translatedString.toLowerCase() === rKey.toLowerCase()) {
|
|
1624
|
+
return item;
|
|
1625
|
+
}
|
|
1626
|
+
else {
|
|
1627
|
+
return translatedString;
|
|
1628
|
+
}
|
|
1629
|
+
}
|
|
1630
|
+
else
|
|
1631
|
+
return item;
|
|
1632
|
+
}
|
|
1760
1633
|
};
|
|
1761
1634
|
RAWidgetContainer.ctorParameters = () => [
|
|
1762
1635
|
{ type: RaDashboardService },
|
|
@@ -1800,10 +1673,6 @@ __decorate([
|
|
|
1800
1673
|
Input('global-filter'),
|
|
1801
1674
|
__metadata("design:type", Object)
|
|
1802
1675
|
], RAWidgetContainer.prototype, "globalFilter", void 0);
|
|
1803
|
-
__decorate([
|
|
1804
|
-
Input('dashboard-info'),
|
|
1805
|
-
__metadata("design:type", Object)
|
|
1806
|
-
], RAWidgetContainer.prototype, "dashboardInfo", void 0);
|
|
1807
1676
|
__decorate([
|
|
1808
1677
|
Input('data'),
|
|
1809
1678
|
__metadata("design:type", Object)
|
|
@@ -1828,14 +1697,6 @@ __decorate([
|
|
|
1828
1697
|
Input('grid-cell-height'),
|
|
1829
1698
|
__metadata("design:type", Number)
|
|
1830
1699
|
], RAWidgetContainer.prototype, "gridCellHeight", void 0);
|
|
1831
|
-
__decorate([
|
|
1832
|
-
Input('bulk-action-data'),
|
|
1833
|
-
__metadata("design:type", Object)
|
|
1834
|
-
], RAWidgetContainer.prototype, "bulkActionData", void 0);
|
|
1835
|
-
__decorate([
|
|
1836
|
-
Input(),
|
|
1837
|
-
__metadata("design:type", Boolean)
|
|
1838
|
-
], RAWidgetContainer.prototype, "canLoadData", void 0);
|
|
1839
1700
|
__decorate([
|
|
1840
1701
|
Output(),
|
|
1841
1702
|
__metadata("design:type", Object)
|
|
@@ -1844,14 +1705,6 @@ __decorate([
|
|
|
1844
1705
|
Output(),
|
|
1845
1706
|
__metadata("design:type", Object)
|
|
1846
1707
|
], RAWidgetContainer.prototype, "updateAppliedFilters", void 0);
|
|
1847
|
-
__decorate([
|
|
1848
|
-
Output(),
|
|
1849
|
-
__metadata("design:type", Object)
|
|
1850
|
-
], RAWidgetContainer.prototype, "dataLoaded", void 0);
|
|
1851
|
-
__decorate([
|
|
1852
|
-
Output(),
|
|
1853
|
-
__metadata("design:type", Object)
|
|
1854
|
-
], RAWidgetContainer.prototype, "widgetLoaded", void 0);
|
|
1855
1708
|
__decorate([
|
|
1856
1709
|
Input('dom-resized'),
|
|
1857
1710
|
__metadata("design:type", Boolean),
|
|
@@ -4807,13 +4660,11 @@ DashboardFrameworkModule = __decorate([
|
|
|
4807
4660
|
class RaBaseDashboardTemplate {
|
|
4808
4661
|
constructor(ngZone) {
|
|
4809
4662
|
this.ngZone = ngZone;
|
|
4810
|
-
this.initialize = (eventBus, userDashboardId, appConfig
|
|
4663
|
+
this.initialize = (eventBus, userDashboardId, appConfig) => {
|
|
4811
4664
|
this.ngZone.run(() => {
|
|
4812
4665
|
this.userDashboardId = userDashboardId;
|
|
4813
4666
|
this.appConfig = appConfig;
|
|
4814
4667
|
this.raDashboardEventBus = eventBus;
|
|
4815
|
-
this.dashboardInfo = dashboardInfo;
|
|
4816
|
-
this.templateConfig = templateConfig;
|
|
4817
4668
|
});
|
|
4818
4669
|
this.init();
|
|
4819
4670
|
};
|