@schneideress/dashboardframework 0.0.10 → 0.0.12
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 +161 -48
- package/bundles/schneideress-dashboardframework.umd.js.map +1 -1
- package/bundles/schneideress-dashboardframework.umd.min.js +1 -1
- package/bundles/schneideress-dashboardframework.umd.min.js.map +1 -1
- package/esm2015/lib/custom.notifier.options.js +46 -0
- package/esm2015/lib/ra-dashboard-area/ra.dashboard.area.js +95 -23
- package/esm2015/lib/ra-widget-container/ra.widget.container.component.js +18 -7
- package/esm2015/lib/ra.dashboard.module.js +5 -2
- package/esm2015/lib/ra.dashboard.service.js +1 -8
- package/esm2015/lib/ra.event.enum.js +5 -1
- package/esm2015/schneideress-dashboardframework.js +2 -1
- package/esm5/lib/custom.notifier.options.js +46 -0
- package/esm5/lib/ra-dashboard-area/ra.dashboard.area.js +111 -25
- package/esm5/lib/ra-widget-container/ra.widget.container.component.js +17 -7
- package/esm5/lib/ra.dashboard.module.js +5 -2
- package/esm5/lib/ra.dashboard.service.js +1 -14
- package/esm5/lib/ra.event.enum.js +5 -1
- package/esm5/schneideress-dashboardframework.js +2 -1
- package/fesm2015/schneideress-dashboardframework.js +143 -37
- package/fesm2015/schneideress-dashboardframework.js.map +1 -1
- package/fesm5/schneideress-dashboardframework.js +158 -45
- package/fesm5/schneideress-dashboardframework.js.map +1 -1
- package/lib/custom.notifier.options.d.ts +2 -0
- package/lib/ra-dashboard-area/ra.dashboard.area.d.ts +12 -3
- package/lib/ra-widget-container/ra.widget.container.component.d.ts +3 -1
- package/lib/ra.dashboard.service.d.ts +0 -2
- package/lib/ra.event.enum.d.ts +5 -1
- package/package.json +1 -1
- package/schneideress-dashboardframework.d.ts +1 -0
- package/schneideress-dashboardframework.metadata.json +1 -1
|
@@ -4,6 +4,7 @@ import { of, Subject } from 'rxjs';
|
|
|
4
4
|
import { BaseService } from '@schneideress/ess-util';
|
|
5
5
|
import { filter, map } from 'rxjs/operators';
|
|
6
6
|
import { NgxUiLoaderService, NgxUiLoaderModule } from 'ngx-ui-loader';
|
|
7
|
+
import { NotifierService, NotifierModule } from 'angular-notifier';
|
|
7
8
|
import { BrowserModule } from '@angular/platform-browser';
|
|
8
9
|
import { HttpClientModule } from '@angular/common/http';
|
|
9
10
|
import { CommonModule } from '@angular/common';
|
|
@@ -203,19 +204,6 @@ var RaDashboardService = /** @class */ (function (_super) {
|
|
|
203
204
|
*/
|
|
204
205
|
function (widgetInfo) {
|
|
205
206
|
};
|
|
206
|
-
/** To Collapse current widget*/
|
|
207
|
-
/**
|
|
208
|
-
* To Collapse current widget
|
|
209
|
-
* @param {?} widgetInfo
|
|
210
|
-
* @return {?}
|
|
211
|
-
*/
|
|
212
|
-
RaDashboardService.prototype.collapse = /**
|
|
213
|
-
* To Collapse current widget
|
|
214
|
-
* @param {?} widgetInfo
|
|
215
|
-
* @return {?}
|
|
216
|
-
*/
|
|
217
|
-
function (widgetInfo) {
|
|
218
|
-
};
|
|
219
207
|
RaDashboardService.decorators = [
|
|
220
208
|
{ type: Injectable, args: [{
|
|
221
209
|
providedIn: 'root'
|
|
@@ -372,6 +360,10 @@ var RAEvent = {
|
|
|
372
360
|
CopyWidget: "CopyWidget",
|
|
373
361
|
/**triggers when user clicks on Move widget */
|
|
374
362
|
MoveWidget: "MoveWidget",
|
|
363
|
+
/**triggers when user raise delete widget event */
|
|
364
|
+
WidgetDelete: "WidgetDelete",
|
|
365
|
+
/** used to add widget to widgetlist when user copies a widget to current dashboard */
|
|
366
|
+
AddWidget: "AddWidget",
|
|
375
367
|
};
|
|
376
368
|
/** @enum {string} */
|
|
377
369
|
var RAEventKey = {
|
|
@@ -477,10 +469,11 @@ var GridsterConfigDefaultSettings = {
|
|
|
477
469
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
478
470
|
*/
|
|
479
471
|
var RADashboardArea = /** @class */ (function () {
|
|
480
|
-
function RADashboardArea(dashboardService, ngZone, ngxService) {
|
|
472
|
+
function RADashboardArea(dashboardService, ngZone, ngxService, notifier) {
|
|
481
473
|
this.dashboardService = dashboardService;
|
|
482
474
|
this.ngZone = ngZone;
|
|
483
475
|
this.ngxService = ngxService;
|
|
476
|
+
this.notifier = notifier;
|
|
484
477
|
this.widgetList = Array();
|
|
485
478
|
this.gridheight = 300;
|
|
486
479
|
this.widgetHeight = 20;
|
|
@@ -495,6 +488,21 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
495
488
|
function () {
|
|
496
489
|
this.initiateGridsterConfig();
|
|
497
490
|
};
|
|
491
|
+
/**
|
|
492
|
+
* @param {?} changes
|
|
493
|
+
* @return {?}
|
|
494
|
+
*/
|
|
495
|
+
RADashboardArea.prototype.ngOnChanges = /**
|
|
496
|
+
* @param {?} changes
|
|
497
|
+
* @return {?}
|
|
498
|
+
*/
|
|
499
|
+
function (changes) {
|
|
500
|
+
if (this.raDashboardEventBus && this.userDashboardId && this.areaKey) {
|
|
501
|
+
this.initiateGridsterConfig();
|
|
502
|
+
this.loadWidgets(this.userDashboardId, this.areaKey);
|
|
503
|
+
this.inititateEventBusSubscritions();
|
|
504
|
+
}
|
|
505
|
+
};
|
|
498
506
|
/**To set GridsterConfig */
|
|
499
507
|
/**
|
|
500
508
|
* To set GridsterConfig
|
|
@@ -518,34 +526,53 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
518
526
|
areaContext.updateWidgets();
|
|
519
527
|
});
|
|
520
528
|
};
|
|
529
|
+
/** To initiate eventbus subsctiptions */
|
|
521
530
|
/**
|
|
522
|
-
*
|
|
531
|
+
* To initiate eventbus subsctiptions
|
|
523
532
|
* @return {?}
|
|
524
533
|
*/
|
|
525
|
-
RADashboardArea.prototype.
|
|
526
|
-
*
|
|
534
|
+
RADashboardArea.prototype.inititateEventBusSubscritions = /**
|
|
535
|
+
* To initiate eventbus subsctiptions
|
|
527
536
|
* @return {?}
|
|
528
537
|
*/
|
|
529
|
-
function (
|
|
538
|
+
function () {
|
|
530
539
|
var _this = this;
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
540
|
+
this.widgetDeleteEvent = this.raDashboardEventBus.subscribe(RAEvent.WidgetDelete).subscribe((/**
|
|
541
|
+
* @param {?} instanceId
|
|
542
|
+
* @return {?}
|
|
543
|
+
*/
|
|
544
|
+
function (instanceId) {
|
|
545
|
+
_this.ngZone.run((/**
|
|
534
546
|
* @return {?}
|
|
535
547
|
*/
|
|
536
|
-
function (
|
|
537
|
-
_this.
|
|
538
|
-
* @return {?}
|
|
539
|
-
*/
|
|
540
|
-
function () {
|
|
541
|
-
_this.addWidget(e);
|
|
542
|
-
}));
|
|
548
|
+
function () {
|
|
549
|
+
_this.deleteWidget(instanceId, true);
|
|
543
550
|
}));
|
|
544
|
-
}
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
551
|
+
}));
|
|
552
|
+
this.widgetAddEvent = this.raDashboardEventBus.subscribe(RAEvent.AddWidget).subscribe((/**
|
|
553
|
+
* @param {?} widgetInfo
|
|
554
|
+
* @return {?}
|
|
555
|
+
*/
|
|
556
|
+
function (widgetInfo) {
|
|
557
|
+
_this.ngZone.run((/**
|
|
558
|
+
* @return {?}
|
|
559
|
+
*/
|
|
560
|
+
function () {
|
|
561
|
+
_this.copyWidget(widgetInfo);
|
|
562
|
+
}));
|
|
563
|
+
}));
|
|
564
|
+
this.conifgAddClick = this.raDashboardEventBus.subscribe(RAEvent.ConfigAddClick).subscribe((/**
|
|
565
|
+
* @param {?} e
|
|
566
|
+
* @return {?}
|
|
567
|
+
*/
|
|
568
|
+
function (e) {
|
|
569
|
+
_this.ngZone.run((/**
|
|
570
|
+
* @return {?}
|
|
571
|
+
*/
|
|
572
|
+
function () {
|
|
573
|
+
_this.addWidget(e);
|
|
574
|
+
}));
|
|
575
|
+
}));
|
|
549
576
|
};
|
|
550
577
|
/**
|
|
551
578
|
* @return {?}
|
|
@@ -555,11 +582,16 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
555
582
|
*/
|
|
556
583
|
function () {
|
|
557
584
|
this.conifgAddClick.unsubscribe();
|
|
585
|
+
this.widgetAddEvent.unsubscribe();
|
|
586
|
+
this.widgetDeleteEvent.unsubscribe();
|
|
558
587
|
};
|
|
588
|
+
/**To update position/dimention of all widgets in the area */
|
|
559
589
|
/**
|
|
590
|
+
* To update position/dimention of all widgets in the area
|
|
560
591
|
* @return {?}
|
|
561
592
|
*/
|
|
562
593
|
RADashboardArea.prototype.updateWidgets = /**
|
|
594
|
+
* To update position/dimention of all widgets in the area
|
|
563
595
|
* @return {?}
|
|
564
596
|
*/
|
|
565
597
|
function () {
|
|
@@ -646,14 +678,17 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
646
678
|
/**
|
|
647
679
|
* To remove a widget instance from dashboard and to save info in database
|
|
648
680
|
* @param {?} widgetInstanceId
|
|
681
|
+
* @param {?=} isalertDisabled
|
|
649
682
|
* @return {?}
|
|
650
683
|
*/
|
|
651
684
|
RADashboardArea.prototype.deleteWidget = /**
|
|
652
685
|
* To remove a widget instance from dashboard and to save info in database
|
|
653
686
|
* @param {?} widgetInstanceId
|
|
687
|
+
* @param {?=} isalertDisabled
|
|
654
688
|
* @return {?}
|
|
655
689
|
*/
|
|
656
|
-
function (widgetInstanceId) {
|
|
690
|
+
function (widgetInstanceId, isalertDisabled) {
|
|
691
|
+
if (isalertDisabled === void 0) { isalertDisabled = false; }
|
|
657
692
|
/** @type {?} */
|
|
658
693
|
var widget = this.widgetList.filter((/**
|
|
659
694
|
* @param {?} item
|
|
@@ -665,6 +700,9 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
665
700
|
if (widget.length > 0) {
|
|
666
701
|
this.widgetList.splice(this.widgetList.indexOf(widget[0]), 1);
|
|
667
702
|
this.setAreaHeight();
|
|
703
|
+
if (!isalertDisabled) {
|
|
704
|
+
this.notifier.notify('success', "Widget (" + widget[0].widgetInfo.widgetTitle + ") deleted successfully!");
|
|
705
|
+
}
|
|
668
706
|
}
|
|
669
707
|
};
|
|
670
708
|
/**To add widget instance to the database with the next available position and to make changes in
|
|
@@ -708,9 +746,32 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
708
746
|
gridsterItem = _this.mapObjectsToGridsterItem(widget);
|
|
709
747
|
_this.widgetList.push(gridsterItem);
|
|
710
748
|
_this.setAreaHeight();
|
|
711
|
-
|
|
749
|
+
//this.ngxService.stop();
|
|
712
750
|
}));
|
|
713
751
|
};
|
|
752
|
+
/** To add widget to current widget list ,invoked from copy widget window*/
|
|
753
|
+
/**
|
|
754
|
+
* To add widget to current widget list ,invoked from copy widget window
|
|
755
|
+
* @param {?} data
|
|
756
|
+
* @return {?}
|
|
757
|
+
*/
|
|
758
|
+
RADashboardArea.prototype.copyWidget = /**
|
|
759
|
+
* To add widget to current widget list ,invoked from copy widget window
|
|
760
|
+
* @param {?} data
|
|
761
|
+
* @return {?}
|
|
762
|
+
*/
|
|
763
|
+
function (data) {
|
|
764
|
+
/** @type {?} */
|
|
765
|
+
var gridsterItem = this.mapObjectsToGridsterItem(data);
|
|
766
|
+
if (this.options.api) {
|
|
767
|
+
gridsterItem = this.options.api.getFirstPossiblePosition(gridsterItem);
|
|
768
|
+
}
|
|
769
|
+
data.position_x = gridsterItem.x;
|
|
770
|
+
data.position_y = gridsterItem.y;
|
|
771
|
+
gridsterItem = this.mapObjectsToGridsterItem(data);
|
|
772
|
+
this.widgetList.push(gridsterItem);
|
|
773
|
+
this.setAreaHeight();
|
|
774
|
+
};
|
|
714
775
|
/**To map IwidgetInfo object to gridsterItem */
|
|
715
776
|
/**
|
|
716
777
|
* To map IwidgetInfo object to gridsterItem
|
|
@@ -796,7 +857,7 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
796
857
|
RADashboardArea.decorators = [
|
|
797
858
|
{ type: Component, args: [{
|
|
798
859
|
selector: 'ra-dashboard-area',
|
|
799
|
-
template: "<div #gridWrapper class=\"wrap gridster\" [style.height.px]=\"gridheight\">\r\n<!-- <div #gridWrapper class=\"wrap gridster\"> -->\r\n <gridster [options]=\"options\" style=\"height:100%;\">\r\n <gridster-item [item]=\"item\" *ngFor=\"let item of widgetList\">\r\n <ra-widget-container [app-config]=\"appConfig\" [event-bus]=\"raDashboardEventBus\" (widgetDeleted)=\"deleteWidget($event)\" [data]=\"item\"\r\n [global-filter]=\"globalFilter\" [widget-instance-id]=\"item.widgetInstanceId\"></ra-widget-container>\r\n </gridster-item>\r\n </gridster>\r\n</div>\r\n\r\n",
|
|
860
|
+
template: "<div #gridWrapper class=\"wrap gridster\" [style.height.px]=\"gridheight\">\r\n<!-- <div #gridWrapper class=\"wrap gridster\"> -->\r\n <gridster [options]=\"options\" style=\"height:100%;\">\r\n <gridster-item [item]=\"item\" *ngFor=\"let item of widgetList\">\r\n <ra-widget-container [app-config]=\"appConfig\" [event-bus]=\"raDashboardEventBus\" (widgetDeleted)=\"deleteWidget($event)\" [data]=\"item\"\r\n [global-filter]=\"globalFilter\" [widget-instance-id]=\"item.widgetInstanceId\"></ra-widget-container>\r\n </gridster-item>\r\n </gridster>\r\n <notifier-container></notifier-container>\r\n</div>\r\n\r\n",
|
|
800
861
|
styles: ["gridster{width:inherit;resize:height;display:flex;min-height:600px}gridster-item{border:1px solid #ccc;background:#fff!important}.dvheader{width:100%;height:35px;background:#000;color:#fff;padding:7px 3px 5px 6px;text-transform:uppercase}"]
|
|
801
862
|
}] }
|
|
802
863
|
];
|
|
@@ -804,7 +865,8 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
804
865
|
RADashboardArea.ctorParameters = function () { return [
|
|
805
866
|
{ type: RaDashboardService },
|
|
806
867
|
{ type: NgZone },
|
|
807
|
-
{ type: NgxUiLoaderService }
|
|
868
|
+
{ type: NgxUiLoaderService },
|
|
869
|
+
{ type: NotifierService }
|
|
808
870
|
]; };
|
|
809
871
|
RADashboardArea.propDecorators = {
|
|
810
872
|
userDashboardId: [{ type: Input, args: ['user-dashboard-id',] }],
|
|
@@ -823,9 +885,10 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
823
885
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
824
886
|
*/
|
|
825
887
|
var RAWidgetContainer = /** @class */ (function () {
|
|
826
|
-
function RAWidgetContainer(dashboardService, ngxService) {
|
|
888
|
+
function RAWidgetContainer(dashboardService, ngxService, notifier) {
|
|
827
889
|
this.dashboardService = dashboardService;
|
|
828
890
|
this.ngxService = ngxService;
|
|
891
|
+
this.notifier = notifier;
|
|
829
892
|
this.isIEOrEdge = /msie\s|trident\/|edge\//i.test(window.navigator.userAgent);
|
|
830
893
|
this.widgetDeleted = new EventEmitter();
|
|
831
894
|
}
|
|
@@ -908,9 +971,12 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
908
971
|
*/
|
|
909
972
|
function (status) {
|
|
910
973
|
widgetContainerContext.ngxService.stop();
|
|
911
|
-
{
|
|
974
|
+
if (status) {
|
|
912
975
|
widgetContainerContext.widgetDeleted.emit(_this.data.widgetInfo.widgetInstanceId);
|
|
913
976
|
}
|
|
977
|
+
else {
|
|
978
|
+
widgetContainerContext.notifier.notify('error', "Failed to remove widget (" + _this.data.widgetInfo.widgetTitle + ")!");
|
|
979
|
+
}
|
|
914
980
|
}));
|
|
915
981
|
};
|
|
916
982
|
/** To Move or change position if current widget container*/
|
|
@@ -923,7 +989,6 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
923
989
|
* @return {?}
|
|
924
990
|
*/
|
|
925
991
|
function () {
|
|
926
|
-
console.log('in move widget');
|
|
927
992
|
this.raDashboardEventBus.publish(RAEvent.MoveWidget, this.data.widgetInfo);
|
|
928
993
|
// this.dashboardService.moveWidget(widgetInfo);
|
|
929
994
|
};
|
|
@@ -1030,14 +1095,15 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
1030
1095
|
RAWidgetContainer.decorators = [
|
|
1031
1096
|
{ type: Component, args: [{
|
|
1032
1097
|
selector: 'ra-widget-container',
|
|
1033
|
-
template: "<div class=\"wc-wrapper\">\r\n <div class=\"wcheader\">\r\n <div class=\"col-md-12 wc-mover\">\r\n <div class=\"row\">\r\n <div class=\"col-md-11 float-left\" style=\"width:96%;\">{{data.widgetInfo.title?data.widgetInfo.title:\"Title\"}}\r\n </div>\r\n <div class=\"col-md-1\">\r\n <div class=\"float-right\">\r\n <div class=\"dropdown\">\r\n <div class=\"dropbtn\"> <i class=\"fal fa-cog\"></i></div>\r\n <div class=\"dropdown-content\">\r\n <a (click)=\"editWidget()\">Edit</a>\r\n <a (click)=\"copyWidget()\">Copy</a>\r\n <a (click)=\"moveWidget()\">Move</a> \r\n <hr class=\"hr\">\r\n <a (click)=\"deleteWidget()\">Delete</a>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"wcBody\">\r\n <div class=\"wcBodyBorder\" #ctlWidget></div>\r\n </div>\r\n</div>\r\n",
|
|
1034
|
-
styles: [".wcheader{width:100%;height:26px;background:#fff;color:#3dcd58;padding:7px 7px 0 6px;font-family:\"Arial Rounded MT\";border-bottom:1px solid;border-color:#fff;font-size:16px}.wc-mover{cursor:all-scroll}.wcBody{padding:8px}.wcBodyBorder{border:1px dashed #e6e2e2}.sp_icon{float:left;margin:0 15% 0 0}.dropbtn{cursor:pointer;color:#42b4e6}.dropdown{display:none;position:relative}.dropdown hr{margin:0!important}.dropdown-content{display:none;position:absolute;right:0;background-color:#f9f9f9;min-width:100px;box-shadow:0 8px 16px 8px rgba(0,0,0,.2);z-index:1;font-size:12px;font-family:\"Arial Rounded MT\"}.dropdown-content a{color:#000;padding:5px 16px;text-decoration:none;display:block;cursor:pointer}.dropdown-content a:hover{background-color:#f1f1f1}.dropdown:hover .dropdown-content,.wc-wrapper:hover .dropdown{display:block}.dropdown:hover .dropbtn{color:#2b7797}.hr{border:0;border-top:1px solid rgba(0,0,0,.1)}"]
|
|
1098
|
+
template: "<div class=\"wc-wrapper\">\r\n <div class=\"wcheader\">\r\n <div class=\"col-md-12 wc-mover\">\r\n <div class=\"row\">\r\n <div class=\"col-md-11 float-left\" style=\"width:96%;\">{{data.widgetInfo.title?data.widgetInfo.title:\"Title\"}}\r\n </div>\r\n <div class=\"col-md-1\">\r\n <div class=\"float-right\">\r\n <div class=\"dropdown\">\r\n <div class=\"dropbtn gearIcon\"> <i class=\"fal fa-cog\"></i></div>\r\n <div class=\"dropdown-content\">\r\n <a (click)=\"editWidget()\">Edit</a>\r\n <a (click)=\"copyWidget()\">Copy</a>\r\n <a (click)=\"moveWidget()\">Move</a> \r\n <hr class=\"hr\">\r\n <a (click)=\"deleteWidget()\">Delete</a>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"wcBody\">\r\n <div class=\"wcBodyBorder\" #ctlWidget></div>\r\n </div>\r\n</div>\r\n",
|
|
1099
|
+
styles: [".wcheader{width:100%;height:26px;background:#fff;color:#3dcd58;padding:7px 7px 0 6px;font-family:\"Arial Rounded MT\";border-bottom:1px solid;border-color:#fff;font-size:16px}.wc-mover{cursor:all-scroll}.wcBody{padding:8px}.wcBodyBorder{border:1px dashed #e6e2e2}.sp_icon{float:left;margin:0 15% 0 0}.dropbtn{cursor:pointer;color:#42b4e6}.dropdown{display:none;position:relative}.dropdown hr{margin:0!important}.dropdown-content{display:none;position:absolute;right:0;background-color:#f9f9f9;min-width:100px;box-shadow:0 8px 16px 8px rgba(0,0,0,.2);z-index:1;font-size:12px;font-family:\"Arial Rounded MT\"}.dropdown-content a{color:#000;padding:5px 16px;text-decoration:none;display:block;cursor:pointer}.dropdown-content a:hover{background-color:#f1f1f1}.dropdown:hover .dropdown-content,.wc-wrapper:hover .dropdown{display:block}.dropdown:hover .dropbtn{color:#2b7797}.gearIcon{color:#42b4e6}.hr{border:0;border-top:1px solid rgba(0,0,0,.1)}"]
|
|
1035
1100
|
}] }
|
|
1036
1101
|
];
|
|
1037
1102
|
/** @nocollapse */
|
|
1038
1103
|
RAWidgetContainer.ctorParameters = function () { return [
|
|
1039
1104
|
{ type: RaDashboardService },
|
|
1040
|
-
{ type: NgxUiLoaderService }
|
|
1105
|
+
{ type: NgxUiLoaderService },
|
|
1106
|
+
{ type: NotifierService }
|
|
1041
1107
|
]; };
|
|
1042
1108
|
RAWidgetContainer.propDecorators = {
|
|
1043
1109
|
ctlWidget: [{ type: ViewChild, args: ['ctlWidget', { static: false },] }],
|
|
@@ -1051,6 +1117,52 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
1051
1117
|
return RAWidgetContainer;
|
|
1052
1118
|
}());
|
|
1053
1119
|
|
|
1120
|
+
/**
|
|
1121
|
+
* @fileoverview added by tsickle
|
|
1122
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1123
|
+
*/
|
|
1124
|
+
/** @type {?} */
|
|
1125
|
+
var customNotifierOptions = {
|
|
1126
|
+
position: {
|
|
1127
|
+
horizontal: {
|
|
1128
|
+
position: 'right',
|
|
1129
|
+
distance: 12
|
|
1130
|
+
},
|
|
1131
|
+
vertical: {
|
|
1132
|
+
position: 'top',
|
|
1133
|
+
distance: 12,
|
|
1134
|
+
gap: 10
|
|
1135
|
+
}
|
|
1136
|
+
},
|
|
1137
|
+
theme: 'material',
|
|
1138
|
+
behaviour: {
|
|
1139
|
+
autoHide: 5000,
|
|
1140
|
+
onClick: 'hide',
|
|
1141
|
+
onMouseover: 'pauseAutoHide',
|
|
1142
|
+
showDismissButton: true,
|
|
1143
|
+
stacking: 4
|
|
1144
|
+
},
|
|
1145
|
+
animations: {
|
|
1146
|
+
enabled: true,
|
|
1147
|
+
show: {
|
|
1148
|
+
preset: 'slide',
|
|
1149
|
+
speed: 300,
|
|
1150
|
+
easing: 'ease'
|
|
1151
|
+
},
|
|
1152
|
+
hide: {
|
|
1153
|
+
preset: 'fade',
|
|
1154
|
+
speed: 300,
|
|
1155
|
+
easing: 'ease',
|
|
1156
|
+
offset: 50
|
|
1157
|
+
},
|
|
1158
|
+
shift: {
|
|
1159
|
+
speed: 300,
|
|
1160
|
+
easing: 'ease'
|
|
1161
|
+
},
|
|
1162
|
+
overlap: 150
|
|
1163
|
+
}
|
|
1164
|
+
};
|
|
1165
|
+
|
|
1054
1166
|
/**
|
|
1055
1167
|
* @fileoverview added by tsickle
|
|
1056
1168
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -5566,7 +5678,8 @@ var DashboardFrameworkModule = /** @class */ (function () {
|
|
|
5566
5678
|
BrowserModule,
|
|
5567
5679
|
GridsterModule,
|
|
5568
5680
|
HttpClientModule,
|
|
5569
|
-
NgxUiLoaderModule
|
|
5681
|
+
NgxUiLoaderModule,
|
|
5682
|
+
NotifierModule.withConfig(customNotifierOptions)
|
|
5570
5683
|
],
|
|
5571
5684
|
exports: [
|
|
5572
5685
|
RADashboardArea
|
|
@@ -5639,5 +5752,5 @@ var RaBaseDashboardFilter = /** @class */ (function () {
|
|
|
5639
5752
|
return RaBaseDashboardFilter;
|
|
5640
5753
|
}());
|
|
5641
5754
|
|
|
5642
|
-
export { DashboardFrameworkModule, RADashboardArea, RADashboardEventBus, RAEvent, RAEventKey, RAWidgetContainer, RaBaseDashboardFilter, RaBaseDashboardTemplate, RaDashboardService, GridsterModule as ɵa, GridsterComponent as ɵb, GridsterItemComponent as ɵc, GridsterPreviewComponent as ɵd };
|
|
5755
|
+
export { DashboardFrameworkModule, RADashboardArea, RADashboardEventBus, RAEvent, RAEventKey, RAWidgetContainer, RaBaseDashboardFilter, RaBaseDashboardTemplate, RaDashboardService, GridsterModule as ɵa, GridsterComponent as ɵb, GridsterItemComponent as ɵc, GridsterPreviewComponent as ɵd, customNotifierOptions as ɵe };
|
|
5643
5756
|
//# sourceMappingURL=schneideress-dashboardframework.js.map
|