@schneideress/dashboardframework 0.0.9 → 0.0.10
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 -22
- 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-widget-container/ra.widget.container.component.js +16 -16
- package/esm2015/lib/ra.event.enum.js +3 -1
- package/esm5/lib/ra-widget-container/ra.widget.container.component.js +16 -23
- package/esm5/lib/ra.event.enum.js +3 -1
- package/fesm2015/schneideress-dashboardframework.js +17 -15
- package/fesm2015/schneideress-dashboardframework.js.map +1 -1
- package/fesm5/schneideress-dashboardframework.js +17 -22
- package/fesm5/schneideress-dashboardframework.js.map +1 -1
- package/lib/ra-widget-container/ra.widget.container.component.d.ts +1 -3
- package/lib/ra.event.enum.d.ts +3 -1
- package/package.json +1 -1
- package/schneideress-dashboardframework.metadata.json +1 -1
|
@@ -406,6 +406,8 @@
|
|
|
406
406
|
LoadDashboard: "LoadDashboard",
|
|
407
407
|
/** triggers when user clicks on copywidget */
|
|
408
408
|
CopyWidget: "CopyWidget",
|
|
409
|
+
/**triggers when user clicks on Move widget */
|
|
410
|
+
MoveWidget: "MoveWidget",
|
|
409
411
|
};
|
|
410
412
|
/** @enum {string} */
|
|
411
413
|
var RAEventKey = {
|
|
@@ -950,16 +952,16 @@
|
|
|
950
952
|
/** To Move or change position if current widget container*/
|
|
951
953
|
/**
|
|
952
954
|
* To Move or change position if current widget container
|
|
953
|
-
* @param {?} widgetInfo
|
|
954
955
|
* @return {?}
|
|
955
956
|
*/
|
|
956
957
|
RAWidgetContainer.prototype.moveWidget = /**
|
|
957
958
|
* To Move or change position if current widget container
|
|
958
|
-
* @param {?} widgetInfo
|
|
959
959
|
* @return {?}
|
|
960
960
|
*/
|
|
961
|
-
function (
|
|
962
|
-
|
|
961
|
+
function () {
|
|
962
|
+
console.log('in move widget');
|
|
963
|
+
this.raDashboardEventBus.publish(RAEvent.MoveWidget, this.data.widgetInfo);
|
|
964
|
+
// this.dashboardService.moveWidget(widgetInfo);
|
|
963
965
|
};
|
|
964
966
|
/** To Copy Current widget with same configuration*/
|
|
965
967
|
/**
|
|
@@ -974,20 +976,6 @@
|
|
|
974
976
|
this.raDashboardEventBus.publish(RAEvent.CopyWidget, this.data.widgetInfo);
|
|
975
977
|
//this.dashboardService.copyWidget(widgetInfo);
|
|
976
978
|
};
|
|
977
|
-
/** To Collapse current widget*/
|
|
978
|
-
/**
|
|
979
|
-
* To Collapse current widget
|
|
980
|
-
* @param {?} widgetInfo
|
|
981
|
-
* @return {?}
|
|
982
|
-
*/
|
|
983
|
-
RAWidgetContainer.prototype.collapse = /**
|
|
984
|
-
* To Collapse current widget
|
|
985
|
-
* @param {?} widgetInfo
|
|
986
|
-
* @return {?}
|
|
987
|
-
*/
|
|
988
|
-
function (widgetInfo) {
|
|
989
|
-
this.dashboardService.collapse(widgetInfo);
|
|
990
|
-
};
|
|
991
979
|
/**
|
|
992
980
|
* @param {?} config
|
|
993
981
|
* @return {?}
|
|
@@ -1045,7 +1033,13 @@
|
|
|
1045
1033
|
widgetConfigFilter.appConfig = _this.appConfig;
|
|
1046
1034
|
widgetConfigFilter.widgetInfo = (/** @type {?} */ ({}));
|
|
1047
1035
|
widgetConfigFilter.widgetInfo.widgetName = widgetInfo.widgetName;
|
|
1048
|
-
widgetContainer.widgetElement.loadContent(widgetConfigFilter
|
|
1036
|
+
widgetContainer.widgetElement.loadContent(widgetConfigFilter);
|
|
1037
|
+
widgetContainer.widgetElement.addEventListener('load-data-initiated', (/**
|
|
1038
|
+
* @param {?} hidePanel
|
|
1039
|
+
* @return {?}
|
|
1040
|
+
*/
|
|
1041
|
+
function (hidePanel) {
|
|
1042
|
+
}));
|
|
1049
1043
|
}), 2000);
|
|
1050
1044
|
}));
|
|
1051
1045
|
};
|
|
@@ -1064,14 +1058,15 @@
|
|
|
1064
1058
|
/** @type {?} */
|
|
1065
1059
|
var widgetConfigFilter = (/** @type {?} */ ({
|
|
1066
1060
|
config: widgetInfo.widgetConfigInfo.config,
|
|
1067
|
-
globalFilter: this.globalFilter
|
|
1061
|
+
globalFilter: this.globalFilter,
|
|
1062
|
+
appConfig: this.appConfig
|
|
1068
1063
|
}));
|
|
1069
|
-
this.widgetElement.loadContent(widgetConfigFilter
|
|
1064
|
+
this.widgetElement.loadContent(widgetConfigFilter);
|
|
1070
1065
|
};
|
|
1071
1066
|
RAWidgetContainer.decorators = [
|
|
1072
1067
|
{ type: core.Component, args: [{
|
|
1073
1068
|
selector: 'ra-widget-container',
|
|
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(
|
|
1069
|
+
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",
|
|
1075
1070
|
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)}"]
|
|
1076
1071
|
}] }
|
|
1077
1072
|
];
|