@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
|
@@ -368,6 +368,8 @@ var RAEvent = {
|
|
|
368
368
|
WidgetLibraryCloseBtnClicked: "WidgetLibraryCloseBtnClicked",
|
|
369
369
|
/** triggers when user clicks on view dashboard*/
|
|
370
370
|
LoadDashboard: "LoadDashboard",
|
|
371
|
+
/** triggers when user clicks on copywidget */
|
|
372
|
+
CopyWidget: "CopyWidget",
|
|
371
373
|
};
|
|
372
374
|
/** @enum {string} */
|
|
373
375
|
var RAEventKey = {
|
|
@@ -632,15 +634,11 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
632
634
|
}));
|
|
633
635
|
if (this.options.api) {
|
|
634
636
|
areaHeight = areaScrollHeight * this.options.api.getCurrentRowHeight() + 2;
|
|
635
|
-
if (areaHeight < 300) {
|
|
636
|
-
areaHeight = 300;
|
|
637
|
-
}
|
|
638
|
-
this.gridheight = areaHeight;
|
|
639
637
|
}
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
console.log(this.options);
|
|
638
|
+
if (areaHeight < 600) {
|
|
639
|
+
areaHeight = 600;
|
|
643
640
|
}
|
|
641
|
+
this.gridheight = areaHeight;
|
|
644
642
|
};
|
|
645
643
|
/** To remove a widget instance from dashboard and to save info in database */
|
|
646
644
|
/**
|
|
@@ -797,7 +795,7 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
797
795
|
{ type: Component, args: [{
|
|
798
796
|
selector: 'ra-dashboard-area',
|
|
799
797
|
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",
|
|
800
|
-
styles: ["gridster{width:inherit;resize:height;display:flex;min-height:
|
|
798
|
+
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
799
|
}] }
|
|
802
800
|
];
|
|
803
801
|
/** @nocollapse */
|
|
@@ -899,15 +897,17 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
899
897
|
*/
|
|
900
898
|
function () {
|
|
901
899
|
var _this = this;
|
|
902
|
-
|
|
903
|
-
|
|
900
|
+
/** @type {?} */
|
|
901
|
+
var widgetContainerContext = this;
|
|
902
|
+
widgetContainerContext.ngxService.start();
|
|
903
|
+
widgetContainerContext.dashboardService.deleteWidget(this.data.widgetInfo, this.appConfig).subscribe((/**
|
|
904
904
|
* @param {?} status
|
|
905
905
|
* @return {?}
|
|
906
906
|
*/
|
|
907
907
|
function (status) {
|
|
908
|
-
|
|
908
|
+
widgetContainerContext.ngxService.stop();
|
|
909
909
|
{
|
|
910
|
-
|
|
910
|
+
widgetContainerContext.widgetDeleted.emit(_this.data.widgetInfo.widgetInstanceId);
|
|
911
911
|
}
|
|
912
912
|
}));
|
|
913
913
|
};
|
|
@@ -928,16 +928,15 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
928
928
|
/** To Copy Current widget with same configuration*/
|
|
929
929
|
/**
|
|
930
930
|
* To Copy Current widget with same configuration
|
|
931
|
-
* @param {?} widgetInfo
|
|
932
931
|
* @return {?}
|
|
933
932
|
*/
|
|
934
933
|
RAWidgetContainer.prototype.copyWidget = /**
|
|
935
934
|
* To Copy Current widget with same configuration
|
|
936
|
-
* @param {?} widgetInfo
|
|
937
935
|
* @return {?}
|
|
938
936
|
*/
|
|
939
|
-
function (
|
|
940
|
-
this.
|
|
937
|
+
function () {
|
|
938
|
+
this.raDashboardEventBus.publish(RAEvent.CopyWidget, this.data.widgetInfo);
|
|
939
|
+
//this.dashboardService.copyWidget(widgetInfo);
|
|
941
940
|
};
|
|
942
941
|
/** To Collapse current widget*/
|
|
943
942
|
/**
|
|
@@ -1036,8 +1035,8 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
1036
1035
|
RAWidgetContainer.decorators = [
|
|
1037
1036
|
{ type: Component, args: [{
|
|
1038
1037
|
selector: 'ra-widget-container',
|
|
1039
|
-
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(
|
|
1040
|
-
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)}"]
|
|
1038
|
+
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",
|
|
1039
|
+
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)}"]
|
|
1041
1040
|
}] }
|
|
1042
1041
|
];
|
|
1043
1042
|
/** @nocollapse */
|