@schneideress/dashboardframework 0.0.274 → 0.0.275
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 +123 -435
- 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 +62 -167
- 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 +62 -169
- 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 +101 -259
- package/fesm2015/schneideress-dashboardframework.js.map +1 -1
- package/fesm5/schneideress-dashboardframework.js +102 -262
- package/fesm5/schneideress-dashboardframework.js.map +1 -1
- package/lib/ra-dashboard-area/ra.dashboard.area.d.ts +2 -24
- 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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __extends, __decorate, __metadata,
|
|
1
|
+
import { __extends, __decorate, __metadata, __awaiter, __generator, __assign, __param } from 'tslib';
|
|
2
2
|
import { Injector, ɵɵdefineInjectable, ɵɵinject, INJECTOR, Injectable, EventEmitter, NgZone, Input, Output, ViewChild, ElementRef, Component, Renderer2, ChangeDetectorRef, ViewEncapsulation, Host, NgModule } from '@angular/core';
|
|
3
3
|
import { of, Subject } from 'rxjs';
|
|
4
4
|
import { BaseService, RATranslateService, RAPermissionService, DomService, RACommonModule } from '@schneideress/ra-common';
|
|
@@ -17,6 +17,7 @@ var RaDashboardService = /** @class */ (function (_super) {
|
|
|
17
17
|
function RaDashboardService(injector) {
|
|
18
18
|
var _this = _super.call(this, injector, '') || this;
|
|
19
19
|
_this.loadedScripts = [];
|
|
20
|
+
_this.clientId = undefined;
|
|
20
21
|
return _this;
|
|
21
22
|
}
|
|
22
23
|
/*
|
|
@@ -69,12 +70,6 @@ var RaDashboardService = /** @class */ (function (_super) {
|
|
|
69
70
|
/**To Update widgetInfo in database */
|
|
70
71
|
RaDashboardService.prototype.updateWidget = function (widgetInfo, appConfig) {
|
|
71
72
|
this.baseUrl = appConfig.apiBaseUrl;
|
|
72
|
-
var info = {};
|
|
73
|
-
info.widgetConfigInfo = widgetInfo.widgetConfigInfo;
|
|
74
|
-
info.widgetInstanceId = widgetInfo.widgetInstanceId;
|
|
75
|
-
info.widgetTitle = widgetInfo.widgetTitle;
|
|
76
|
-
info.widgetType = widgetInfo.widgetType;
|
|
77
|
-
info.widgetId = widgetInfo.widgetId;
|
|
78
73
|
return this.post('widget/UpdateUserWidget', widgetInfo);
|
|
79
74
|
};
|
|
80
75
|
/** To Move or change position if current widget container*/
|
|
@@ -190,12 +185,6 @@ var RAEvent;
|
|
|
190
185
|
RAEvent["UpdateAppledFiterForInapplicableFilter"] = "UpdateAppledFiterForInapplicableFilter";
|
|
191
186
|
/**show inapplicable filter message in global filter flyout */
|
|
192
187
|
RAEvent["ShowInapplicableFilterMessage"] = "ShowInapplicableFilterMessage";
|
|
193
|
-
/** Bulk Action Clicked */
|
|
194
|
-
RAEvent["BulkActionClick"] = "BulkActionClick";
|
|
195
|
-
/** Global Filter Clicked */
|
|
196
|
-
/** When user change the curated filter(eg:data streams), system will create/delete widgets */
|
|
197
|
-
RAEvent["CuratedFilterChange"] = "CuratedFilterChange";
|
|
198
|
-
RAEvent["GlobalFilterClick"] = "GlobalFilterClick";
|
|
199
188
|
})(RAEvent || (RAEvent = {}));
|
|
200
189
|
var RAEventKey;
|
|
201
190
|
(function (RAEventKey) {
|
|
@@ -209,9 +198,9 @@ var GridsterConfigDefaultSettings = {
|
|
|
209
198
|
margin: 10,
|
|
210
199
|
outerMargin: true,
|
|
211
200
|
outerMarginTop: 10,
|
|
212
|
-
outerMarginRight:
|
|
201
|
+
outerMarginRight: 10,
|
|
213
202
|
outerMarginBottom: 30,
|
|
214
|
-
outerMarginLeft:
|
|
203
|
+
outerMarginLeft: 10,
|
|
215
204
|
useTransformPositioning: true,
|
|
216
205
|
mobileBreakpoint: 640,
|
|
217
206
|
minCols: 10,
|
|
@@ -326,7 +315,7 @@ var RADashboardResponsiveService = /** @class */ (function () {
|
|
|
326
315
|
enumerable: true,
|
|
327
316
|
configurable: true
|
|
328
317
|
});
|
|
329
|
-
RADashboardResponsiveService.prototype.getGridsterConfig = function (isWidgetMgmnt
|
|
318
|
+
RADashboardResponsiveService.prototype.getGridsterConfig = function (isWidgetMgmnt) {
|
|
330
319
|
var config = GridsterConfigDefaultSettings;
|
|
331
320
|
config.minCols = this.currentResInfo.maxCols;
|
|
332
321
|
config.maxCols = this.currentResInfo.maxCols;
|
|
@@ -348,13 +337,6 @@ var RADashboardResponsiveService = /** @class */ (function () {
|
|
|
348
337
|
config.swap = true;
|
|
349
338
|
config.draggable.enabled = true;
|
|
350
339
|
}
|
|
351
|
-
if (!resize) {
|
|
352
|
-
config.resizable.enabled = false;
|
|
353
|
-
config.swap = false;
|
|
354
|
-
}
|
|
355
|
-
if (!canMove) {
|
|
356
|
-
config.draggable.enabled = false;
|
|
357
|
-
}
|
|
358
340
|
return config;
|
|
359
341
|
};
|
|
360
342
|
/**To map IwidgetInfo object to gridsterItem */
|
|
@@ -362,9 +344,6 @@ var RADashboardResponsiveService = /** @class */ (function () {
|
|
|
362
344
|
if (widget.widgetSettings) {
|
|
363
345
|
widget.settings = JSON.parse(widget.widgetSettings);
|
|
364
346
|
}
|
|
365
|
-
if (widget.templateSettings) {
|
|
366
|
-
widget.templateWidgetSettings = JSON.parse(widget.templateSettings);
|
|
367
|
-
}
|
|
368
347
|
var gridsterItem = {
|
|
369
348
|
cols: this.getWidth(widget.width),
|
|
370
349
|
rows: this.getHeight(widget.height),
|
|
@@ -432,21 +411,14 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
432
411
|
this.domResized = false;
|
|
433
412
|
this.showEmptyDashboard = false;
|
|
434
413
|
this.isWidgetMgmnt = false;
|
|
435
|
-
this.initialWidgetCount = 10;
|
|
436
|
-
this.currentLoadedIndex = 0;
|
|
437
|
-
this.loading = false;
|
|
438
414
|
this.widgetHeight = 2;
|
|
439
415
|
this.widgetWidth = 4;
|
|
440
416
|
this.hideDashboardBanner = new EventEmitter();
|
|
441
417
|
}
|
|
442
418
|
RADashboardArea.prototype.ngOnInit = function () {
|
|
443
419
|
var _this = this;
|
|
444
|
-
window.addEventListener('scroll', function () {
|
|
445
|
-
_this.loadNext();
|
|
446
|
-
});
|
|
447
420
|
this.isWidgetMgmnt = this.permissionService.hasPermission('ra.widgetmanagement');
|
|
448
421
|
this.initiateGridsterConfig();
|
|
449
|
-
this.setEmptyDashboardConfig();
|
|
450
422
|
this.lastViewType = this.responsiveService.IsDesktopView ? 'desktop' : 'mobile';
|
|
451
423
|
this.responsiveService.resized.subscribe(function (isDesktop) {
|
|
452
424
|
if (_this.lastViewType != (isDesktop ? 'desktop' : 'mobile') || !isDesktop) {
|
|
@@ -475,11 +447,6 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
475
447
|
}, 100);
|
|
476
448
|
}
|
|
477
449
|
});
|
|
478
|
-
setTimeout(function () {
|
|
479
|
-
_this.bulkActionClick = _this.raDashboardEventBus.subscribe(RAEvent.BulkActionClick).subscribe(function (data) {
|
|
480
|
-
_this.bulkActionData = JSON.parse(JSON.stringify(data)); // To create a new reference;
|
|
481
|
-
});
|
|
482
|
-
});
|
|
483
450
|
};
|
|
484
451
|
RADashboardArea.prototype.ngOnChanges = function (changes) {
|
|
485
452
|
this.isWidgetMgmnt = this.permissionService.hasPermission('ra.widgetmanagement');
|
|
@@ -487,44 +454,28 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
487
454
|
this.isWidgetLoaded = true;
|
|
488
455
|
this.loadWidgets(this.userDashboardId, this.areaKey);
|
|
489
456
|
}
|
|
490
|
-
this.initiateGridsterConfig();
|
|
491
457
|
if (changes.raDashboardEventBus && changes.raDashboardEventBus.currentValue != changes.raDashboardEventBus.previousValue) {
|
|
492
458
|
this.inititateEventBusSubscritions();
|
|
493
459
|
}
|
|
494
460
|
};
|
|
495
|
-
RADashboardArea.prototype.setEmptyDashboardConfig = function () {
|
|
496
|
-
if (this.dashboardInfo && this.dashboardInfo.templateConfig.emptyDashboardHeader) {
|
|
497
|
-
this.emptyDashboardTitle = this.translateService.translate("dashboard." + this.dashboardInfo.templateConfig.emptyDashboardHeader.titleKey);
|
|
498
|
-
this.emptyDashboardMsg1 = this.translateService.translate("dashboard." + this.dashboardInfo.templateConfig.emptyDashboardHeader.descriptionKey1);
|
|
499
|
-
this.emptyDashboardMsg2 = (this.dashboardInfo.templateConfig.emptyDashboardHeader.descriptionKey2) ? this.translateService.translate("dashboard." + this.dashboardInfo.templateConfig.emptyDashboardHeader.descriptionKey2) : '';
|
|
500
|
-
this.emptyDashboardButtonText = this.translateService.translate("dashboard." + this.dashboardInfo.templateConfig.emptyDashboardHeader.buttonTextKey);
|
|
501
|
-
this.emptyDashboardButtonIcon = this.dashboardInfo.templateConfig.emptyDashboardHeader.buttonIcon ? this.dashboardInfo.templateConfig.emptyDashboardHeader.buttonIcon : '';
|
|
502
|
-
this.emptyDashboardButtonAction = this.dashboardInfo.templateConfig.emptyDashboardHeader.buttonAction ? this.dashboardInfo.templateConfig.emptyDashboardHeader.buttonAction : '';
|
|
503
|
-
}
|
|
504
|
-
};
|
|
505
461
|
/**To set GridsterConfig */
|
|
506
462
|
RADashboardArea.prototype.initiateGridsterConfig = function () {
|
|
507
463
|
var _this = this;
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
if (
|
|
518
|
-
|
|
519
|
-
_this.updateWidgetPosition(item.widgetInfo.widgetInstanceId);
|
|
520
|
-
}
|
|
464
|
+
/**To override default configuration values to the gridster control */
|
|
465
|
+
this.options = this.responsiveService.getGridsterConfig(this.isWidgetMgmnt);
|
|
466
|
+
this.options.initCallback = function (gridster) {
|
|
467
|
+
if (_this.options.api) {
|
|
468
|
+
_this.gridcellHeight = _this.options.api.getCurrentRowHeight();
|
|
469
|
+
}
|
|
470
|
+
};
|
|
471
|
+
this.options.itemChangeCallback = function (item) {
|
|
472
|
+
if (_this.responsiveService.IsDesktopView) {
|
|
473
|
+
if (item.widgetInfo && item.widgetInfo.widgetInstanceId) {
|
|
474
|
+
_this.updateWidgetPosition(item.widgetInfo.widgetInstanceId);
|
|
521
475
|
}
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
}
|
|
525
|
-
};
|
|
526
|
-
RADashboardArea.prototype.widgetLoaded = function (widget) {
|
|
527
|
-
widget.canLoadData = true;
|
|
476
|
+
}
|
|
477
|
+
_this.setAreaHeight();
|
|
478
|
+
};
|
|
528
479
|
};
|
|
529
480
|
/** To initiate eventbus subsctiptions */
|
|
530
481
|
RADashboardArea.prototype.inititateEventBusSubscritions = function () {
|
|
@@ -544,11 +495,6 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
544
495
|
_this.addWidget(e);
|
|
545
496
|
});
|
|
546
497
|
});
|
|
547
|
-
this.curatedFilterChange = this.raDashboardEventBus.subscribe(RAEvent.CuratedFilterChange).subscribe(function (e) {
|
|
548
|
-
_this.ngZone.run(function () {
|
|
549
|
-
_this.loadWidgets(_this.userDashboardId, _this.areaKey);
|
|
550
|
-
});
|
|
551
|
-
});
|
|
552
498
|
this.rearrangeWidgetClick = this.raDashboardEventBus.subscribe(RAEvent.RearrangeClicked).subscribe(function (e) {
|
|
553
499
|
_this.ngZone.run(function () {
|
|
554
500
|
_this.rearrangeWidgets();
|
|
@@ -597,10 +543,6 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
597
543
|
this.widgetLibraryDoneClick.unsubscribe();
|
|
598
544
|
if (this.rearrangeWidgetClick)
|
|
599
545
|
this.rearrangeWidgetClick.unsubscribe();
|
|
600
|
-
if (this.curatedFilterChange)
|
|
601
|
-
this.curatedFilterChange.unsubscribe();
|
|
602
|
-
if (this.bulkActionClick)
|
|
603
|
-
this.bulkActionClick.unsubscribe();
|
|
604
546
|
};
|
|
605
547
|
/**To update position/dimention of all widgets in the area */
|
|
606
548
|
RADashboardArea.prototype.updateWidgets = function () {
|
|
@@ -637,13 +579,6 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
637
579
|
/** To retrieve widgets based on userDashboardid and area name */
|
|
638
580
|
RADashboardArea.prototype.loadWidgets = function (userDashboarId, areaKey) {
|
|
639
581
|
var _this = this;
|
|
640
|
-
if (this.templateConfig && this.templateConfig.initialWidgetCount)
|
|
641
|
-
this.initialWidgetCount = this.templateConfig.initialWidgetCount;
|
|
642
|
-
window.scrollTo(0, 0);
|
|
643
|
-
if (location.href.indexOf('/kiosk/') > -1)
|
|
644
|
-
this.initialWidgetCount = 1000;
|
|
645
|
-
this.currentLoadedIndex = 0;
|
|
646
|
-
this.loading = false;
|
|
647
582
|
var widgetInfo = {
|
|
648
583
|
dashboardId: userDashboarId.toString(),
|
|
649
584
|
dashboardAreaKey: areaKey
|
|
@@ -662,8 +597,9 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
662
597
|
});
|
|
663
598
|
_this.checkPAMWidgets();
|
|
664
599
|
if (widgets && widgets.length > 0) {
|
|
665
|
-
_this.
|
|
666
|
-
_this.
|
|
600
|
+
_this.dashboardService.clientId = widgets[0].clientId;
|
|
601
|
+
_this.widgetList = _this.mapObjectListToGridsterItemList(widgets);
|
|
602
|
+
_this.setAreaHeight();
|
|
667
603
|
_this.raDashboardEventBus.publish(RAEvent.HideDashboardBanner, false);
|
|
668
604
|
}
|
|
669
605
|
else {
|
|
@@ -672,45 +608,6 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
672
608
|
}
|
|
673
609
|
});
|
|
674
610
|
};
|
|
675
|
-
RADashboardArea.prototype.loadWidgetsDelta = function () {
|
|
676
|
-
var _this = this;
|
|
677
|
-
var _a;
|
|
678
|
-
if (!this.loading) {
|
|
679
|
-
this.loading = true;
|
|
680
|
-
var widgets = this.mapObjectListToGridsterItemList(this.userWidgets.slice(this.currentLoadedIndex, (this.currentLoadedIndex + this.initialWidgetCount)));
|
|
681
|
-
this.currentLoadedIndex += this.initialWidgetCount;
|
|
682
|
-
(_a = this.widgetList).push.apply(_a, __spread(widgets));
|
|
683
|
-
this.setAreaHeight();
|
|
684
|
-
setTimeout(function () {
|
|
685
|
-
_this.loading = false;
|
|
686
|
-
});
|
|
687
|
-
}
|
|
688
|
-
};
|
|
689
|
-
RADashboardArea.prototype.dataLoaded = function (widgetElement) {
|
|
690
|
-
this.loadNext();
|
|
691
|
-
};
|
|
692
|
-
RADashboardArea.prototype.loadNext = function () {
|
|
693
|
-
if (this.divBottom) {
|
|
694
|
-
if (this.elementInViewport(this.divBottom.nativeElement)) {
|
|
695
|
-
this.loadWidgetsDelta();
|
|
696
|
-
}
|
|
697
|
-
}
|
|
698
|
-
};
|
|
699
|
-
RADashboardArea.prototype.elementInViewport = function (el) {
|
|
700
|
-
var top = el.offsetTop;
|
|
701
|
-
var left = el.offsetLeft;
|
|
702
|
-
var width = el.offsetWidth;
|
|
703
|
-
var height = el.offsetHeight;
|
|
704
|
-
while (el.offsetParent) {
|
|
705
|
-
el = el.offsetParent;
|
|
706
|
-
top += el.offsetTop;
|
|
707
|
-
left += el.offsetLeft;
|
|
708
|
-
}
|
|
709
|
-
return (top >= window.scrollY &&
|
|
710
|
-
left >= window.scrollX &&
|
|
711
|
-
(top + height) <= (window.scrollY + window.innerHeight) &&
|
|
712
|
-
(left + width) <= (window.scrollX + window.innerWidth));
|
|
713
|
-
};
|
|
714
611
|
/** To set Area(Gridster) height dynamically as widgets are added/removed */
|
|
715
612
|
RADashboardArea.prototype.setAreaHeight = function () {
|
|
716
613
|
var _this = this;
|
|
@@ -754,22 +651,22 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
754
651
|
/** To remove a widget instance from dashboard and to save info in database */
|
|
755
652
|
RADashboardArea.prototype.deleteWidget = function (widgetInstanceId, isalertDisabled) {
|
|
756
653
|
if (isalertDisabled === void 0) { isalertDisabled = false; }
|
|
757
|
-
var widget = this.userWidgets.filter(function (item) {
|
|
758
|
-
return item.widgetInstanceId === widgetInstanceId;
|
|
759
|
-
});
|
|
760
|
-
if (widget.length > 0) {
|
|
761
|
-
this.userWidgets.splice(this.userWidgets.indexOf(widget[0]), 1);
|
|
762
|
-
}
|
|
763
|
-
if (this.PAMWidgets.length > 0) {
|
|
764
|
-
var indx = this.PAMWidgets.indexOf(widgetInstanceId);
|
|
765
|
-
if (indx > -1)
|
|
766
|
-
this.PAMWidgets.splice(indx, 1);
|
|
767
|
-
this.checkPAMWidgets();
|
|
768
|
-
}
|
|
769
654
|
var gridsterItem = this.widgetList.filter(function (item) {
|
|
770
655
|
return item.widgetInfo.widgetInstanceId === widgetInstanceId;
|
|
771
656
|
});
|
|
772
657
|
if (gridsterItem.length > 0) {
|
|
658
|
+
var widget = this.userWidgets.filter(function (item) {
|
|
659
|
+
return item.widgetInstanceId === widgetInstanceId;
|
|
660
|
+
});
|
|
661
|
+
if (widget.length > 0) {
|
|
662
|
+
this.userWidgets.splice(this.userWidgets.indexOf(widget[0]), 1);
|
|
663
|
+
}
|
|
664
|
+
if (this.PAMWidgets.length > 0) {
|
|
665
|
+
var indx = this.PAMWidgets.indexOf(widgetInstanceId);
|
|
666
|
+
if (indx > -1)
|
|
667
|
+
this.PAMWidgets.splice(indx, 1);
|
|
668
|
+
this.checkPAMWidgets();
|
|
669
|
+
}
|
|
773
670
|
this.widgetList.splice(this.widgetList.indexOf(gridsterItem[0]), 1);
|
|
774
671
|
this.setAreaHeight();
|
|
775
672
|
if (!isalertDisabled) {
|
|
@@ -784,15 +681,11 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
784
681
|
/**To rearrange widgets position in the dashboard, compactLeft&Up,compactLeft,compactUp,etc*/
|
|
785
682
|
RADashboardArea.prototype.rearrangeWidgets = function () {
|
|
786
683
|
var _this = this;
|
|
787
|
-
this.currentLoadedIndex = 0;
|
|
788
|
-
this.loading = false;
|
|
789
684
|
for (var i = 0; i < this.userWidgets.length; i++) {
|
|
790
685
|
this.userWidgets[i].position_x = 0;
|
|
791
686
|
this.userWidgets[i].position_y = 0;
|
|
792
687
|
}
|
|
793
|
-
this.widgetList =
|
|
794
|
-
this.loadWidgetsDelta();
|
|
795
|
-
this.raDashboardEventBus.publish(RAEvent.HideDashboardBanner, false);
|
|
688
|
+
this.widgetList = this.mapObjectListToGridsterItemList(this.userWidgets);
|
|
796
689
|
if (this.widgetList.length > 0)
|
|
797
690
|
this.updateWidgetPosition(this.widgetList[0].widgetInfo.widgetInstanceId);
|
|
798
691
|
setTimeout(function () {
|
|
@@ -825,33 +718,30 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
825
718
|
this.ngxService.start();
|
|
826
719
|
this.dashboardService.addWidget(data, this.appConfig).subscribe(function (widget) {
|
|
827
720
|
_this.userWidgets.push(widget);
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
_this.
|
|
833
|
-
if (
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
widget.rowHeight = curRowHeight;
|
|
837
|
-
_this.gridcellHeight = curRowHeight;
|
|
838
|
-
}
|
|
839
|
-
}
|
|
840
|
-
var widgetInstanceId = 0;
|
|
841
|
-
if (widget && widget.widgetInstanceId) {
|
|
842
|
-
widgetInstanceId = widget.widgetInstanceId;
|
|
843
|
-
/**To save added widget position in db */
|
|
844
|
-
if (_this.responsiveService.IsDesktopView) {
|
|
845
|
-
setTimeout(function () {
|
|
846
|
-
_this.updateWidgetPosition(widgetInstanceId);
|
|
847
|
-
});
|
|
848
|
-
}
|
|
721
|
+
var gridsterItem = _this.responsiveService.getGridsterItem(widget);
|
|
722
|
+
_this.widgetList.push(gridsterItem);
|
|
723
|
+
_this.setAreaHeight();
|
|
724
|
+
if (_this.options.api) {
|
|
725
|
+
var curRowHeight = Number(_this.options.api.getCurrentRowHeight());
|
|
726
|
+
if (curRowHeight > 0) {
|
|
727
|
+
widget.rowHeight = curRowHeight;
|
|
728
|
+
_this.gridcellHeight = curRowHeight;
|
|
849
729
|
}
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
730
|
+
}
|
|
731
|
+
var widgetInstanceId = 0;
|
|
732
|
+
if (widget && widget.widgetInstanceId) {
|
|
733
|
+
widgetInstanceId = widget.widgetInstanceId;
|
|
734
|
+
/**To save added widget position in db */
|
|
735
|
+
if (_this.responsiveService.IsDesktopView) {
|
|
736
|
+
setTimeout(function () {
|
|
737
|
+
_this.updateWidgetPosition(widgetInstanceId);
|
|
738
|
+
});
|
|
853
739
|
}
|
|
854
740
|
}
|
|
741
|
+
if (widget.settings && widget.settings.isPAMWidget) {
|
|
742
|
+
_this.PAMWidgets.push(widget.widgetInstanceId);
|
|
743
|
+
_this.checkPAMWidgets();
|
|
744
|
+
}
|
|
855
745
|
_this.raDashboardEventBus.publish(RAEvent.WidgetAdded, widget);
|
|
856
746
|
});
|
|
857
747
|
};
|
|
@@ -880,15 +770,12 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
880
770
|
});
|
|
881
771
|
}
|
|
882
772
|
this.userWidgets.push(data);
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
this.
|
|
888
|
-
|
|
889
|
-
this.PAMWidgets.push(data.widgetInstanceId);
|
|
890
|
-
this.checkPAMWidgets();
|
|
891
|
-
}
|
|
773
|
+
var gridsterItem = this.responsiveService.getGridsterItem(data);
|
|
774
|
+
this.widgetList.push(gridsterItem);
|
|
775
|
+
this.setAreaHeight();
|
|
776
|
+
if (data.settings && data.settings.isPAMWidget) {
|
|
777
|
+
this.PAMWidgets.push(data.widgetInstanceId);
|
|
778
|
+
this.checkPAMWidgets();
|
|
892
779
|
}
|
|
893
780
|
};
|
|
894
781
|
RADashboardArea.prototype.mapObjectListToGridsterItemList = function (widgetList) {
|
|
@@ -917,11 +804,8 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
917
804
|
});
|
|
918
805
|
return widgetListArray;
|
|
919
806
|
};
|
|
920
|
-
RADashboardArea.prototype.
|
|
921
|
-
|
|
922
|
-
this.raDashboardEventBus.publish(RAEvent.AddNewWidgetToDashboard, null);
|
|
923
|
-
else if (this.emptyDashboardButtonAction == "filter")
|
|
924
|
-
this.raDashboardEventBus.publish(RAEvent.GlobalFilterClick, null);
|
|
807
|
+
RADashboardArea.prototype.addNewWidget = function () {
|
|
808
|
+
this.raDashboardEventBus.publish(RAEvent.AddNewWidgetToDashboard, null);
|
|
925
809
|
};
|
|
926
810
|
RADashboardArea.prototype.updateAppliedFilters = function (data) {
|
|
927
811
|
this.raDashboardEventBus.publish(RAEvent.UpdateAppledFiterForInapplicableFilter, data);
|
|
@@ -971,14 +855,6 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
971
855
|
Input('app-config'),
|
|
972
856
|
__metadata("design:type", Object)
|
|
973
857
|
], RADashboardArea.prototype, "appConfig", void 0);
|
|
974
|
-
__decorate([
|
|
975
|
-
Input('dashboard-info'),
|
|
976
|
-
__metadata("design:type", Object)
|
|
977
|
-
], RADashboardArea.prototype, "dashboardInfo", void 0);
|
|
978
|
-
__decorate([
|
|
979
|
-
Input(),
|
|
980
|
-
__metadata("design:type", Object)
|
|
981
|
-
], RADashboardArea.prototype, "templateConfig", void 0);
|
|
982
858
|
__decorate([
|
|
983
859
|
Output(),
|
|
984
860
|
__metadata("design:type", Object)
|
|
@@ -987,15 +863,11 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
987
863
|
ViewChild('gridWrapper', { static: false }),
|
|
988
864
|
__metadata("design:type", ElementRef)
|
|
989
865
|
], RADashboardArea.prototype, "gridWrapper", void 0);
|
|
990
|
-
__decorate([
|
|
991
|
-
ViewChild('divBottom', { static: false }),
|
|
992
|
-
__metadata("design:type", ElementRef)
|
|
993
|
-
], RADashboardArea.prototype, "divBottom", void 0);
|
|
994
866
|
RADashboardArea = __decorate([
|
|
995
867
|
Component({
|
|
996
868
|
selector: 'ra-dashboard-area',
|
|
997
|
-
template: "<div #gridWrapper class=\"wrap gridster gridster-mobile\"
|
|
998
|
-
styles: ["gridster{width:inherit;resize:height;display:flex;background-color:#
|
|
869
|
+
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>",
|
|
870
|
+
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:-webkit-max-content;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}}"]
|
|
999
871
|
}),
|
|
1000
872
|
__metadata("design:paramtypes", [RaDashboardService,
|
|
1001
873
|
NgZone,
|
|
@@ -1098,11 +970,8 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
1098
970
|
this.showExcell = true;
|
|
1099
971
|
this.hideTitle = false;
|
|
1100
972
|
this.inapplicableFilters = [];
|
|
1101
|
-
this.canLoadData = false;
|
|
1102
973
|
this.widgetDeleted = new EventEmitter();
|
|
1103
974
|
this.updateAppliedFilters = new EventEmitter();
|
|
1104
|
-
this.dataLoaded = new EventEmitter();
|
|
1105
|
-
this.widgetLoaded = new EventEmitter();
|
|
1106
975
|
this.isWidgetStateApplicable = false;
|
|
1107
976
|
this.widgetEmptyState = '';
|
|
1108
977
|
this.lockVisible = false;
|
|
@@ -1127,7 +996,7 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
1127
996
|
configurable: true
|
|
1128
997
|
});
|
|
1129
998
|
RAWidgetContainer.prototype.ngOnInit = function () {
|
|
1130
|
-
this.WidgetDisplayName = this.
|
|
999
|
+
this.WidgetDisplayName = this.getwidgetTitleTranslation(this.data.widgetInfo.widgetTitle);
|
|
1131
1000
|
this.lockIconTitle = this.translateService.translate('Common.lockedfields');
|
|
1132
1001
|
this.lockIconFooter = this.translateService.translate('Common.lockedfieldseditinfo');
|
|
1133
1002
|
this.inapplicableIconTitle = this.translateService.translate('Common.InapplicableFilters');
|
|
@@ -1148,32 +1017,19 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
1148
1017
|
});
|
|
1149
1018
|
});
|
|
1150
1019
|
}
|
|
1151
|
-
if (this.widgetElement) {
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
}
|
|
1157
|
-
if (changes.globalFilter && changes.globalFilter.currentValue != changes.globalFilter.previousValue) {
|
|
1158
|
-
if (!this.dashboardInfo.curatedFilters) {
|
|
1159
|
-
var filterObj = this.getParsedConfig(this.globalFilter);
|
|
1160
|
-
if (filterObj.WidgetInstanceId) {
|
|
1161
|
-
if (this.data.widgetInfo.widgetInstanceId != filterObj.WidgetInstanceId)
|
|
1162
|
-
this.refreshWidget(this.data.widgetInfo);
|
|
1163
|
-
}
|
|
1164
|
-
else {
|
|
1165
|
-
//this.refreshWidget(this.data.widgetInfo);
|
|
1166
|
-
}
|
|
1167
|
-
}
|
|
1020
|
+
if (this.widgetElement && changes.globalFilter && changes.globalFilter.currentValue != changes.globalFilter.previousValue) {
|
|
1021
|
+
var filterObj = this.getParsedConfig(this.globalFilter);
|
|
1022
|
+
if (filterObj.WidgetInstanceId) {
|
|
1023
|
+
if (this.data.widgetInfo.widgetInstanceId != filterObj.WidgetInstanceId)
|
|
1024
|
+
this.refreshWidget(this.data.widgetInfo);
|
|
1168
1025
|
}
|
|
1169
|
-
|
|
1170
|
-
(
|
|
1171
|
-
this.invokeWidgetResizedEvent();
|
|
1026
|
+
else {
|
|
1027
|
+
this.refreshWidget(this.data.widgetInfo);
|
|
1172
1028
|
}
|
|
1173
1029
|
}
|
|
1174
|
-
if (changes.
|
|
1175
|
-
|
|
1176
|
-
|
|
1030
|
+
if (changes.width && changes.width.currentValue != changes.width.previousValue ||
|
|
1031
|
+
(changes.height && changes.height.currentValue != changes.height.previousValue)) {
|
|
1032
|
+
this.invokeWidgetResizedEvent();
|
|
1177
1033
|
}
|
|
1178
1034
|
};
|
|
1179
1035
|
RAWidgetContainer.prototype.invokeWidgetResizedEvent = function () {
|
|
@@ -1365,10 +1221,6 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
1365
1221
|
_this.showPanel = true;
|
|
1366
1222
|
else
|
|
1367
1223
|
_this.showPanel = false;
|
|
1368
|
-
if (!_this.data.dataLoaded) {
|
|
1369
|
-
_this.data.dataLoaded = true;
|
|
1370
|
-
_this.dataLoaded.emit(_this.widgetElement);
|
|
1371
|
-
}
|
|
1372
1224
|
break;
|
|
1373
1225
|
case 'onConfigEditClicked':
|
|
1374
1226
|
_this.editWidget();
|
|
@@ -1441,9 +1293,7 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
1441
1293
|
widgetConfigFilter.configChanges = this.getConfigChanges(false);
|
|
1442
1294
|
widgetConfigFilter.widgetInfo.widgetName = widgetInfo.widgetName;
|
|
1443
1295
|
widgetConfigFilter.globalFilter = this.globalFilter;
|
|
1444
|
-
|
|
1445
|
-
//this.widgetElement.loadContent(widgetConfigFilter);
|
|
1446
|
-
this.widgetLoaded.emit();
|
|
1296
|
+
this.widgetElement.loadContent(widgetConfigFilter);
|
|
1447
1297
|
return [4 /*yield*/, this.setLock(widgetConfigFilter.config)];
|
|
1448
1298
|
case 1:
|
|
1449
1299
|
_a.sent();
|
|
@@ -1526,8 +1376,7 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
1526
1376
|
globalFilter: this.globalFilter,
|
|
1527
1377
|
appConfig: this.appConfig,
|
|
1528
1378
|
widgetInfo: widgetInfo,
|
|
1529
|
-
configChanges: this.getConfigChanges(configChanged)
|
|
1530
|
-
dashboardInfo: this.dashboardInfo
|
|
1379
|
+
configChanges: this.getConfigChanges(configChanged)
|
|
1531
1380
|
};
|
|
1532
1381
|
if (!widgetContainerContext.isWidgetLoaded) return [3 /*break*/, 3];
|
|
1533
1382
|
if (this.widgetElement && typeof (this.widgetElement.setConfigFilter) == 'function') {
|
|
@@ -1714,12 +1563,9 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
1714
1563
|
var html = '<div id="ra-db-widget-menu"' + 'style="' + style + '" class="download-content dropdown-content widget-config-item dropdown-click" style="z-index: 1002;">';
|
|
1715
1564
|
var settings = '';
|
|
1716
1565
|
if (this.isWidgetMgmnt) {
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
settings += this.getHtmlForButton('wcCopyWidget', 'fal fa-copy', this.copyText);
|
|
1721
|
-
if (!this.data.widgetInfo.templateWidgetSettings || !this.data.widgetInfo.templateWidgetSettings.hideMove)
|
|
1722
|
-
settings += this.getHtmlForButton('wcMoveWidget', 'fal fa-arrows-alt', this.moveText);
|
|
1566
|
+
settings += this.getHtmlForButton('wcEditWidget', 'fal fa-edit', this.editText);
|
|
1567
|
+
settings += this.getHtmlForButton('wcCopyWidget', 'fal fa-copy', this.copyText);
|
|
1568
|
+
settings += this.getHtmlForButton('wcMoveWidget', 'fal fa-arrows-alt', this.moveText);
|
|
1723
1569
|
}
|
|
1724
1570
|
var customPageParams = false;
|
|
1725
1571
|
if (this.data.widgetInfo && this.data.widgetInfo.widgetSettings) {
|
|
@@ -1728,14 +1574,14 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
1728
1574
|
customPageParams = true;
|
|
1729
1575
|
}
|
|
1730
1576
|
}
|
|
1731
|
-
if (
|
|
1577
|
+
if ((this.detailPageUrl || customPageParams) && this.checkVisitLinkVisiblity()) {
|
|
1732
1578
|
settings += '<a style="max-height: 30px;align-items: center;align-content: center; display: flex;" id="wcVisitWidget">';
|
|
1733
1579
|
settings += '<i style="padding-left: 4px;font-size: 27px !important;" class="fal fa-angle-right"></i> ';
|
|
1734
1580
|
settings += '<span style="padding-left: 11px;margin-top: 2px;" style="padding-left: 6px;">';
|
|
1735
1581
|
settings += this.translateService.translate('Common.visitpage');
|
|
1736
1582
|
settings += '</span></a>';
|
|
1737
1583
|
}
|
|
1738
|
-
if (
|
|
1584
|
+
if ((this.detailPageUrl && this.checkVisitLinkVisiblity()) || this.isWidgetMgmnt) {
|
|
1739
1585
|
html += '<div style="color: #9FA0A4;font-size: 12px;padding-top: 8px;padding-left: 12px;">';
|
|
1740
1586
|
html += this.translateService.translate('Common.settings') + '</div>';
|
|
1741
1587
|
html += settings;
|
|
@@ -1767,7 +1613,7 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
1767
1613
|
if (this.isDownloadIconVisible && this.isWidgetMgmnt && this.showExcell) {
|
|
1768
1614
|
html += this.getHr();
|
|
1769
1615
|
}
|
|
1770
|
-
if (this.isWidgetMgmnt
|
|
1616
|
+
if (this.isWidgetMgmnt) {
|
|
1771
1617
|
html += '<a id="wcWidgetDelete"><i class="fal fa-times" style="padding-left: 3px;color: red;"></i><span>';
|
|
1772
1618
|
html += this.deleteText;
|
|
1773
1619
|
html += '</span></a>';
|
|
@@ -1848,6 +1694,22 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
1848
1694
|
if (this.currentComponent)
|
|
1849
1695
|
this.popupInstance.removeMe(this.currentComponent);
|
|
1850
1696
|
};
|
|
1697
|
+
RAWidgetContainer.prototype.getwidgetTitleTranslation = function (item) {
|
|
1698
|
+
var rKey = 'DBW_' + this.translateService.makeCode(item);
|
|
1699
|
+
var translatedString = '';
|
|
1700
|
+
if (this.dashboardService.clientId) {
|
|
1701
|
+
var translationModule = this.dashboardService.clientId + '_DBW';
|
|
1702
|
+
translatedString = this.translateService.translate(translationModule + '.' + rKey);
|
|
1703
|
+
if (translatedString.toLowerCase() === rKey.toLowerCase()) {
|
|
1704
|
+
return item;
|
|
1705
|
+
}
|
|
1706
|
+
else {
|
|
1707
|
+
return translatedString;
|
|
1708
|
+
}
|
|
1709
|
+
}
|
|
1710
|
+
else
|
|
1711
|
+
return item;
|
|
1712
|
+
};
|
|
1851
1713
|
RAWidgetContainer.ctorParameters = function () { return [
|
|
1852
1714
|
{ type: RaDashboardService },
|
|
1853
1715
|
{ type: NgxUiLoaderService },
|
|
@@ -1890,10 +1752,6 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
1890
1752
|
Input('global-filter'),
|
|
1891
1753
|
__metadata("design:type", Object)
|
|
1892
1754
|
], RAWidgetContainer.prototype, "globalFilter", void 0);
|
|
1893
|
-
__decorate([
|
|
1894
|
-
Input('dashboard-info'),
|
|
1895
|
-
__metadata("design:type", Object)
|
|
1896
|
-
], RAWidgetContainer.prototype, "dashboardInfo", void 0);
|
|
1897
1755
|
__decorate([
|
|
1898
1756
|
Input('data'),
|
|
1899
1757
|
__metadata("design:type", Object)
|
|
@@ -1918,14 +1776,6 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
1918
1776
|
Input('grid-cell-height'),
|
|
1919
1777
|
__metadata("design:type", Number)
|
|
1920
1778
|
], RAWidgetContainer.prototype, "gridCellHeight", void 0);
|
|
1921
|
-
__decorate([
|
|
1922
|
-
Input('bulk-action-data'),
|
|
1923
|
-
__metadata("design:type", Object)
|
|
1924
|
-
], RAWidgetContainer.prototype, "bulkActionData", void 0);
|
|
1925
|
-
__decorate([
|
|
1926
|
-
Input(),
|
|
1927
|
-
__metadata("design:type", Boolean)
|
|
1928
|
-
], RAWidgetContainer.prototype, "canLoadData", void 0);
|
|
1929
1779
|
__decorate([
|
|
1930
1780
|
Output(),
|
|
1931
1781
|
__metadata("design:type", Object)
|
|
@@ -1934,14 +1784,6 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
1934
1784
|
Output(),
|
|
1935
1785
|
__metadata("design:type", Object)
|
|
1936
1786
|
], RAWidgetContainer.prototype, "updateAppliedFilters", void 0);
|
|
1937
|
-
__decorate([
|
|
1938
|
-
Output(),
|
|
1939
|
-
__metadata("design:type", Object)
|
|
1940
|
-
], RAWidgetContainer.prototype, "dataLoaded", void 0);
|
|
1941
|
-
__decorate([
|
|
1942
|
-
Output(),
|
|
1943
|
-
__metadata("design:type", Object)
|
|
1944
|
-
], RAWidgetContainer.prototype, "widgetLoaded", void 0);
|
|
1945
1787
|
__decorate([
|
|
1946
1788
|
Input('dom-resized'),
|
|
1947
1789
|
__metadata("design:type", Boolean),
|
|
@@ -4940,13 +4782,11 @@ var RaBaseDashboardTemplate = /** @class */ (function () {
|
|
|
4940
4782
|
function RaBaseDashboardTemplate(ngZone) {
|
|
4941
4783
|
var _this = this;
|
|
4942
4784
|
this.ngZone = ngZone;
|
|
4943
|
-
this.initialize = function (eventBus, userDashboardId, appConfig
|
|
4785
|
+
this.initialize = function (eventBus, userDashboardId, appConfig) {
|
|
4944
4786
|
_this.ngZone.run(function () {
|
|
4945
4787
|
_this.userDashboardId = userDashboardId;
|
|
4946
4788
|
_this.appConfig = appConfig;
|
|
4947
4789
|
_this.raDashboardEventBus = eventBus;
|
|
4948
|
-
_this.dashboardInfo = dashboardInfo;
|
|
4949
|
-
_this.templateConfig = templateConfig;
|
|
4950
4790
|
});
|
|
4951
4791
|
_this.init();
|
|
4952
4792
|
};
|