@schneideress/dashboardframework 0.0.7 → 0.0.9
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 +17 -18
- 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/ra-dashboard-area/ra.dashboard.area.js +5 -9
- package/esm2015/lib/ra-widget-container/ra.widget.container.component.js +12 -12
- package/esm2015/lib/ra.event.enum.js +3 -1
- package/esm5/lib/ra-dashboard-area/ra.dashboard.area.js +5 -9
- package/esm5/lib/ra-widget-container/ra.widget.container.component.js +12 -13
- package/esm5/lib/ra.event.enum.js +3 -1
- package/fesm2015/schneideress-dashboardframework.js +17 -17
- package/fesm2015/schneideress-dashboardframework.js.map +1 -1
- package/fesm5/schneideress-dashboardframework.js +17 -18
- package/fesm5/schneideress-dashboardframework.js.map +1 -1
- package/lib/ra-widget-container/ra.widget.container.component.d.ts +1 -1
- package/lib/ra.event.enum.d.ts +3 -1
- package/package.json +1 -1
- package/schneideress-dashboardframework.metadata.json +1 -1
|
@@ -404,6 +404,8 @@
|
|
|
404
404
|
WidgetLibraryCloseBtnClicked: "WidgetLibraryCloseBtnClicked",
|
|
405
405
|
/** triggers when user clicks on view dashboard*/
|
|
406
406
|
LoadDashboard: "LoadDashboard",
|
|
407
|
+
/** triggers when user clicks on copywidget */
|
|
408
|
+
CopyWidget: "CopyWidget",
|
|
407
409
|
};
|
|
408
410
|
/** @enum {string} */
|
|
409
411
|
var RAEventKey = {
|
|
@@ -668,15 +670,11 @@
|
|
|
668
670
|
}));
|
|
669
671
|
if (this.options.api) {
|
|
670
672
|
areaHeight = areaScrollHeight * this.options.api.getCurrentRowHeight() + 2;
|
|
671
|
-
if (areaHeight < 300) {
|
|
672
|
-
areaHeight = 300;
|
|
673
|
-
}
|
|
674
|
-
this.gridheight = areaHeight;
|
|
675
673
|
}
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
console.log(this.options);
|
|
674
|
+
if (areaHeight < 600) {
|
|
675
|
+
areaHeight = 600;
|
|
679
676
|
}
|
|
677
|
+
this.gridheight = areaHeight;
|
|
680
678
|
};
|
|
681
679
|
/** To remove a widget instance from dashboard and to save info in database */
|
|
682
680
|
/**
|
|
@@ -833,7 +831,7 @@
|
|
|
833
831
|
{ type: core.Component, args: [{
|
|
834
832
|
selector: 'ra-dashboard-area',
|
|
835
833
|
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",
|
|
836
|
-
styles: ["gridster{width:inherit;resize:height;display:flex;min-height:
|
|
834
|
+
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}"]
|
|
837
835
|
}] }
|
|
838
836
|
];
|
|
839
837
|
/** @nocollapse */
|
|
@@ -935,15 +933,17 @@
|
|
|
935
933
|
*/
|
|
936
934
|
function () {
|
|
937
935
|
var _this = this;
|
|
938
|
-
|
|
939
|
-
|
|
936
|
+
/** @type {?} */
|
|
937
|
+
var widgetContainerContext = this;
|
|
938
|
+
widgetContainerContext.ngxService.start();
|
|
939
|
+
widgetContainerContext.dashboardService.deleteWidget(this.data.widgetInfo, this.appConfig).subscribe((/**
|
|
940
940
|
* @param {?} status
|
|
941
941
|
* @return {?}
|
|
942
942
|
*/
|
|
943
943
|
function (status) {
|
|
944
|
-
|
|
944
|
+
widgetContainerContext.ngxService.stop();
|
|
945
945
|
{
|
|
946
|
-
|
|
946
|
+
widgetContainerContext.widgetDeleted.emit(_this.data.widgetInfo.widgetInstanceId);
|
|
947
947
|
}
|
|
948
948
|
}));
|
|
949
949
|
};
|
|
@@ -964,16 +964,15 @@
|
|
|
964
964
|
/** To Copy Current widget with same configuration*/
|
|
965
965
|
/**
|
|
966
966
|
* To Copy Current widget with same configuration
|
|
967
|
-
* @param {?} widgetInfo
|
|
968
967
|
* @return {?}
|
|
969
968
|
*/
|
|
970
969
|
RAWidgetContainer.prototype.copyWidget = /**
|
|
971
970
|
* To Copy Current widget with same configuration
|
|
972
|
-
* @param {?} widgetInfo
|
|
973
971
|
* @return {?}
|
|
974
972
|
*/
|
|
975
|
-
function (
|
|
976
|
-
this.
|
|
973
|
+
function () {
|
|
974
|
+
this.raDashboardEventBus.publish(RAEvent.CopyWidget, this.data.widgetInfo);
|
|
975
|
+
//this.dashboardService.copyWidget(widgetInfo);
|
|
977
976
|
};
|
|
978
977
|
/** To Collapse current widget*/
|
|
979
978
|
/**
|
|
@@ -1072,8 +1071,8 @@
|
|
|
1072
1071
|
RAWidgetContainer.decorators = [
|
|
1073
1072
|
{ type: core.Component, args: [{
|
|
1074
1073
|
selector: 'ra-widget-container',
|
|
1075
|
-
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(
|
|
1076
|
-
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-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)}"]
|
|
1074
|
+
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(data)\">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",
|
|
1075
|
+
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)}"]
|
|
1077
1076
|
}] }
|
|
1078
1077
|
];
|
|
1079
1078
|
/** @nocollapse */
|