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