@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
|
@@ -625,18 +625,18 @@ var GridsterConfigDefaultSettings = {
|
|
|
625
625
|
// outerMarginLeft: 10,
|
|
626
626
|
useTransformPositioning: true,
|
|
627
627
|
mobileBreakpoint: 640,
|
|
628
|
-
minCols:
|
|
629
|
-
maxCols:
|
|
630
|
-
minRows:
|
|
631
|
-
maxRows:
|
|
632
|
-
maxItemCols:
|
|
633
|
-
minItemCols:
|
|
634
|
-
maxItemRows:
|
|
635
|
-
minItemRows:
|
|
636
|
-
maxItemArea:
|
|
637
|
-
minItemArea:
|
|
638
|
-
defaultItemCols:
|
|
639
|
-
defaultItemRows:
|
|
628
|
+
minCols: 10,
|
|
629
|
+
maxCols: 10,
|
|
630
|
+
minRows: 2,
|
|
631
|
+
maxRows: 100,
|
|
632
|
+
maxItemCols: 10,
|
|
633
|
+
minItemCols: 2,
|
|
634
|
+
maxItemRows: 1000,
|
|
635
|
+
minItemRows: 2,
|
|
636
|
+
maxItemArea: 1000,
|
|
637
|
+
minItemArea: 4,
|
|
638
|
+
defaultItemCols: 2,
|
|
639
|
+
defaultItemRows: 2,
|
|
640
640
|
// fixedColWidth: 105,
|
|
641
641
|
// fixedRowHeight: 105,
|
|
642
642
|
keepFixedHeightInMobile: false,
|
|
@@ -659,12 +659,12 @@ var GridsterConfigDefaultSettings = {
|
|
|
659
659
|
enabled: true,
|
|
660
660
|
},
|
|
661
661
|
swap: true,
|
|
662
|
-
pushItems:
|
|
662
|
+
pushItems: true,
|
|
663
663
|
disablePushOnDrag: true,
|
|
664
664
|
disablePushOnResize: false,
|
|
665
665
|
pushDirections: { north: true, east: true, south: true, west: true },
|
|
666
666
|
pushResizeItems: true,
|
|
667
|
-
displayGrid: DisplayGrid.
|
|
667
|
+
displayGrid: DisplayGrid.None,
|
|
668
668
|
disableWindowResize: false,
|
|
669
669
|
disableWarnings: false,
|
|
670
670
|
scrollToNewItems: true,
|
|
@@ -685,8 +685,8 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
685
685
|
this.widgetList = Array();
|
|
686
686
|
this.gridheight = 300;
|
|
687
687
|
this.isWidgetLoaded = false;
|
|
688
|
-
this.widgetHeight =
|
|
689
|
-
this.widgetWidth =
|
|
688
|
+
this.widgetHeight = 3;
|
|
689
|
+
this.widgetWidth = 5;
|
|
690
690
|
}
|
|
691
691
|
/**
|
|
692
692
|
* @return {?}
|
|
@@ -736,6 +736,8 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
736
736
|
areaContext.setAreaHeight();
|
|
737
737
|
areaContext.updateWidgets();
|
|
738
738
|
});
|
|
739
|
+
console.log('gridster options are');
|
|
740
|
+
console.log(this.options);
|
|
739
741
|
};
|
|
740
742
|
/** To initiate eventbus subsctiptions */
|
|
741
743
|
/**
|
|
@@ -949,7 +951,7 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
949
951
|
t.widgetInfo.rowHeight = curRowHeight;
|
|
950
952
|
}));
|
|
951
953
|
if (this.options.api) {
|
|
952
|
-
areaHeight = areaScrollHeight * this.options.api.getCurrentRowHeight() +
|
|
954
|
+
areaHeight = areaScrollHeight * this.options.api.getCurrentRowHeight() + 5;
|
|
953
955
|
}
|
|
954
956
|
if (areaHeight < 600) {
|
|
955
957
|
areaHeight = 600;
|
|
@@ -983,7 +985,7 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
983
985
|
this.widgetList.splice(this.widgetList.indexOf(widget[0]), 1);
|
|
984
986
|
this.setAreaHeight();
|
|
985
987
|
if (!isalertDisabled) {
|
|
986
|
-
this.notifier.notify('success', " " + this.translateService.translate('Widget') + "
|
|
988
|
+
this.notifier.notify('success', " " + this.translateService.translate('Widget') + " " + widget[0].widgetInfo.widgetTitle + " " + this.translateService.translate('DeletedSuccesfully') + " ");
|
|
987
989
|
}
|
|
988
990
|
this.options.compactType = 'compactLeft&Up';
|
|
989
991
|
this.options.api.optionsChanged();
|
|
@@ -1583,7 +1585,7 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
1583
1585
|
{ type: Component, args: [{
|
|
1584
1586
|
selector: 'ra-widget-container',
|
|
1585
1587
|
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>",
|
|
1586
|
-
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:
|
|
1588
|
+
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}"]
|
|
1587
1589
|
}] }
|
|
1588
1590
|
];
|
|
1589
1591
|
/** @nocollapse */
|
|
@@ -6689,7 +6691,7 @@ var GridsterPreviewComponent = /** @class */ (function () {
|
|
|
6689
6691
|
selector: 'gridster-preview',
|
|
6690
6692
|
template: '',
|
|
6691
6693
|
encapsulation: ViewEncapsulation.None,
|
|
6692
|
-
styles: ["gridster-preview{position:absolute;display:none;background:#
|
|
6694
|
+
styles: ["gridster-preview{position:absolute;display:none;background:#42b4e6}"]
|
|
6693
6695
|
}] }
|
|
6694
6696
|
];
|
|
6695
6697
|
/** @nocollapse */
|