@schneideress/dashboardframework 0.0.53 → 0.0.55
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 +22 -20
- 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/gridster/lib/gridsterPreview.component.js +1 -1
- package/esm2015/lib/ra-dashboard-area/ra.dashboard.area.js +7 -5
- package/esm2015/lib/ra-widget-container/ra.widget.container.component.js +1 -1
- package/esm2015/lib/ra.gridster.config.js +15 -15
- package/esm5/gridster/lib/gridsterPreview.component.js +1 -1
- package/esm5/lib/ra-dashboard-area/ra.dashboard.area.js +7 -5
- package/esm5/lib/ra-widget-container/ra.widget.container.component.js +1 -1
- package/esm5/lib/ra.gridster.config.js +15 -15
- package/fesm2015/schneideress-dashboardframework.js +22 -20
- package/fesm2015/schneideress-dashboardframework.js.map +1 -1
- package/fesm5/schneideress-dashboardframework.js +22 -20
- package/fesm5/schneideress-dashboardframework.js.map +1 -1
- package/package.json +1 -1
- package/schneideress-dashboardframework.metadata.json +1 -1
|
@@ -511,18 +511,18 @@ const GridsterConfigDefaultSettings = {
|
|
|
511
511
|
// outerMarginLeft: 10,
|
|
512
512
|
useTransformPositioning: true,
|
|
513
513
|
mobileBreakpoint: 640,
|
|
514
|
-
minCols:
|
|
515
|
-
maxCols:
|
|
516
|
-
minRows:
|
|
517
|
-
maxRows:
|
|
518
|
-
maxItemCols:
|
|
519
|
-
minItemCols:
|
|
520
|
-
maxItemRows:
|
|
521
|
-
minItemRows:
|
|
522
|
-
maxItemArea:
|
|
523
|
-
minItemArea:
|
|
524
|
-
defaultItemCols:
|
|
525
|
-
defaultItemRows:
|
|
514
|
+
minCols: 10,
|
|
515
|
+
maxCols: 10,
|
|
516
|
+
minRows: 2,
|
|
517
|
+
maxRows: 100,
|
|
518
|
+
maxItemCols: 10,
|
|
519
|
+
minItemCols: 2,
|
|
520
|
+
maxItemRows: 1000,
|
|
521
|
+
minItemRows: 2,
|
|
522
|
+
maxItemArea: 1000,
|
|
523
|
+
minItemArea: 4,
|
|
524
|
+
defaultItemCols: 2,
|
|
525
|
+
defaultItemRows: 2,
|
|
526
526
|
// fixedColWidth: 105,
|
|
527
527
|
// fixedRowHeight: 105,
|
|
528
528
|
keepFixedHeightInMobile: false,
|
|
@@ -545,12 +545,12 @@ const GridsterConfigDefaultSettings = {
|
|
|
545
545
|
enabled: true,
|
|
546
546
|
},
|
|
547
547
|
swap: true,
|
|
548
|
-
pushItems:
|
|
548
|
+
pushItems: true,
|
|
549
549
|
disablePushOnDrag: true,
|
|
550
550
|
disablePushOnResize: false,
|
|
551
551
|
pushDirections: { north: true, east: true, south: true, west: true },
|
|
552
552
|
pushResizeItems: true,
|
|
553
|
-
displayGrid: DisplayGrid.
|
|
553
|
+
displayGrid: DisplayGrid.None,
|
|
554
554
|
disableWindowResize: false,
|
|
555
555
|
disableWarnings: false,
|
|
556
556
|
scrollToNewItems: true,
|
|
@@ -578,8 +578,8 @@ class RADashboardArea {
|
|
|
578
578
|
this.widgetList = Array();
|
|
579
579
|
this.gridheight = 300;
|
|
580
580
|
this.isWidgetLoaded = false;
|
|
581
|
-
this.widgetHeight =
|
|
582
|
-
this.widgetWidth =
|
|
581
|
+
this.widgetHeight = 3;
|
|
582
|
+
this.widgetWidth = 5;
|
|
583
583
|
}
|
|
584
584
|
/**
|
|
585
585
|
* @return {?}
|
|
@@ -617,6 +617,8 @@ class RADashboardArea {
|
|
|
617
617
|
areaContext.setAreaHeight();
|
|
618
618
|
areaContext.updateWidgets();
|
|
619
619
|
});
|
|
620
|
+
console.log('gridster options are');
|
|
621
|
+
console.log(this.options);
|
|
620
622
|
}
|
|
621
623
|
/**
|
|
622
624
|
* To initiate eventbus subsctiptions
|
|
@@ -789,7 +791,7 @@ class RADashboardArea {
|
|
|
789
791
|
t.widgetInfo.rowHeight = curRowHeight;
|
|
790
792
|
}));
|
|
791
793
|
if (this.options.api) {
|
|
792
|
-
areaHeight = areaScrollHeight * this.options.api.getCurrentRowHeight() +
|
|
794
|
+
areaHeight = areaScrollHeight * this.options.api.getCurrentRowHeight() + 5;
|
|
793
795
|
}
|
|
794
796
|
if (areaHeight < 600) {
|
|
795
797
|
areaHeight = 600;
|
|
@@ -815,7 +817,7 @@ class RADashboardArea {
|
|
|
815
817
|
this.widgetList.splice(this.widgetList.indexOf(widget[0]), 1);
|
|
816
818
|
this.setAreaHeight();
|
|
817
819
|
if (!isalertDisabled) {
|
|
818
|
-
this.notifier.notify('success', " " + this.translateService.translate('Widget') + "
|
|
820
|
+
this.notifier.notify('success', " " + this.translateService.translate('Widget') + " " + widget[0].widgetInfo.widgetTitle + " " + this.translateService.translate('DeletedSuccesfully') + " ");
|
|
819
821
|
}
|
|
820
822
|
this.options.compactType = 'compactLeft&Up';
|
|
821
823
|
this.options.api.optionsChanged();
|
|
@@ -1283,7 +1285,7 @@ RAWidgetContainer.decorators = [
|
|
|
1283
1285
|
{ type: Component, args: [{
|
|
1284
1286
|
selector: 'ra-widget-container',
|
|
1285
1287
|
template: "<div class=\"wc-wrapper\">\r\n <div class=\"wcheader\">\r\n <div class=\"col-md-12 wc-mover\" style=\"padding-left: 0px;\">\r\n <div style=\"display:flex\">\r\n <div class=\"col-md-11 float-left widget-move\" style=\"width:96%;padding-left: 0px;\">{{data.widgetInfo.widgetTitle}}\r\n </div>\r\n <div class=\"col-md-1\" style=\"cursor:default;\">\r\n <div class=\"float-right\" style=\"display: flex;\">\r\n <div *ngIf=\"isDownloadIconVisible\"> <i class=\"far fa-download\" (click)=\"downloadClicked\"></i></div>\r\n <div class=\"pr-3\"><i [ngClass]=\"lockClass\"\r\n [attr.title]=\"lockStatus=='lock' ? 'Locked' : 'Partially Locked'\"></i></div>\r\n <div class=\"dropdown\">\r\n <div class=\"dropbtn gearIcon\"> <i class=\"fal fa-cog\"></i></div>\r\n <div class=\"dropdown-content widget-config-item\">\r\n <a (click)=\"editWidget()\">\r\n <i class=\"fal fa-edit\"></i>\r\n <span>{{'Edit'|translate}}</span>\r\n </a>\r\n <a (click)=\"copyWidget()\">\r\n <i class=\"fal fa-copy\"></i>\r\n <span>{{'Copy'|translate}}</span>\r\n </a>\r\n <a (click)=\"moveWidget()\">\r\n <i class=\"fal fa-arrows-alt\"></i>\r\n <span>{{'Move'|translate}}</span>\r\n </a>\r\n <hr class=\"hr\">\r\n <a (click)=\"deleteWidget()\">\r\n <i class=\"fal fa-times\" style=\"padding-left: 3px;\"></i>\r\n <span>{{'Delete'|translate}}</span>\r\n </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 <perfect-scrollbar [scrollIndicators]=\"true\">\r\n <div #ctlWidget></div>\r\n </perfect-scrollbar>\r\n </div>\r\n</div>",
|
|
1286
|
-
styles: [".wcheader{width:100%;height:46px;background:#fff;color:#3dcd58;font-family:\"Arial Rounded MT\";font-size:16px;position:absolute;left:0;top:0;padding:15px 0 0}.wc-wrapper{height:100%;position:relative;margin:
|
|
1288
|
+
styles: [".wcheader{width:100%;height:46px;background:#fff;color:#3dcd58;font-family:\"Arial Rounded MT\";font-size:16px;position:absolute;left:0;top:0;padding:15px 0 0}.wc-wrapper{height:100%;position:relative;margin:10px}.wc-mover{cursor:all-scroll}.wcBody{width:100%;position:absolute;top:46px;left:0;bottom:0}.wcBodyBorder{border:1px dashed #e6e2e2}.sp_icon{float:left;margin:0 15% 0 0}.dropbtn{cursor:pointer;color:#42b4e6}.dropdown{visibility:hidden;opacity:0;transition:visibility,opacity .5s linear;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:2;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{display:block;-webkit-animation:.3s ease-out slide-down;animation:.3s ease-out slide-down}.wc-wrapper:hover .dropdown{visibility:visible;opacity:1}.dropdown:hover .dropbtn{color:#2b7797}.gearIcon{color:#42b4e6}.hr{border:0;border-top:1px solid rgba(0,0,0,.1)}@keyframes slide-down{0%{opacity:0;-webkit-transform:translateY(-20%);transform:translateY(-20%)}100%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@-webkit-keyframes slide-down{0%{opacity:0;-webkit-transform:translateY(-20%)}100%{opacity:1;-webkit-transform:translateY(0)}}.widget-config-item i{font-size:17px;color:#42b4e6}.widget-config-item span{font-size:12px;font:inherit;padding-left:12px;color:#42b4e6}.locked{color:#42b4e6}.partiallocked{color:#a0d9f2}.unlocked{display:none}"]
|
|
1287
1289
|
}] }
|
|
1288
1290
|
];
|
|
1289
1291
|
/** @nocollapse */
|
|
@@ -5822,7 +5824,7 @@ GridsterPreviewComponent.decorators = [
|
|
|
5822
5824
|
selector: 'gridster-preview',
|
|
5823
5825
|
template: '',
|
|
5824
5826
|
encapsulation: ViewEncapsulation.None,
|
|
5825
|
-
styles: ["gridster-preview{position:absolute;display:none;background:#
|
|
5827
|
+
styles: ["gridster-preview{position:absolute;display:none;background:#42b4e6}"]
|
|
5826
5828
|
}] }
|
|
5827
5829
|
];
|
|
5828
5830
|
/** @nocollapse */
|