@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
|
@@ -368,6 +368,10 @@ 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",
|
|
373
|
+
/**triggers when user clicks on Move widget */
|
|
374
|
+
MoveWidget: "MoveWidget",
|
|
371
375
|
};
|
|
372
376
|
/** @enum {string} */
|
|
373
377
|
var RAEventKey = {
|
|
@@ -912,44 +916,29 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
912
916
|
/** To Move or change position if current widget container*/
|
|
913
917
|
/**
|
|
914
918
|
* To Move or change position if current widget container
|
|
915
|
-
* @param {?} widgetInfo
|
|
916
919
|
* @return {?}
|
|
917
920
|
*/
|
|
918
921
|
RAWidgetContainer.prototype.moveWidget = /**
|
|
919
922
|
* To Move or change position if current widget container
|
|
920
|
-
* @param {?} widgetInfo
|
|
921
923
|
* @return {?}
|
|
922
924
|
*/
|
|
923
|
-
function (
|
|
924
|
-
|
|
925
|
+
function () {
|
|
926
|
+
console.log('in move widget');
|
|
927
|
+
this.raDashboardEventBus.publish(RAEvent.MoveWidget, this.data.widgetInfo);
|
|
928
|
+
// this.dashboardService.moveWidget(widgetInfo);
|
|
925
929
|
};
|
|
926
930
|
/** To Copy Current widget with same configuration*/
|
|
927
931
|
/**
|
|
928
932
|
* To Copy Current widget with same configuration
|
|
929
|
-
* @param {?} widgetInfo
|
|
930
933
|
* @return {?}
|
|
931
934
|
*/
|
|
932
935
|
RAWidgetContainer.prototype.copyWidget = /**
|
|
933
936
|
* To Copy Current widget with same configuration
|
|
934
|
-
* @param {?} widgetInfo
|
|
935
|
-
* @return {?}
|
|
936
|
-
*/
|
|
937
|
-
function (widgetInfo) {
|
|
938
|
-
this.dashboardService.copyWidget(widgetInfo);
|
|
939
|
-
};
|
|
940
|
-
/** To Collapse current widget*/
|
|
941
|
-
/**
|
|
942
|
-
* To Collapse current widget
|
|
943
|
-
* @param {?} widgetInfo
|
|
944
|
-
* @return {?}
|
|
945
|
-
*/
|
|
946
|
-
RAWidgetContainer.prototype.collapse = /**
|
|
947
|
-
* To Collapse current widget
|
|
948
|
-
* @param {?} widgetInfo
|
|
949
937
|
* @return {?}
|
|
950
938
|
*/
|
|
951
|
-
function (
|
|
952
|
-
this.
|
|
939
|
+
function () {
|
|
940
|
+
this.raDashboardEventBus.publish(RAEvent.CopyWidget, this.data.widgetInfo);
|
|
941
|
+
//this.dashboardService.copyWidget(widgetInfo);
|
|
953
942
|
};
|
|
954
943
|
/**
|
|
955
944
|
* @param {?} config
|
|
@@ -1008,7 +997,13 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
1008
997
|
widgetConfigFilter.appConfig = _this.appConfig;
|
|
1009
998
|
widgetConfigFilter.widgetInfo = (/** @type {?} */ ({}));
|
|
1010
999
|
widgetConfigFilter.widgetInfo.widgetName = widgetInfo.widgetName;
|
|
1011
|
-
widgetContainer.widgetElement.loadContent(widgetConfigFilter
|
|
1000
|
+
widgetContainer.widgetElement.loadContent(widgetConfigFilter);
|
|
1001
|
+
widgetContainer.widgetElement.addEventListener('load-data-initiated', (/**
|
|
1002
|
+
* @param {?} hidePanel
|
|
1003
|
+
* @return {?}
|
|
1004
|
+
*/
|
|
1005
|
+
function (hidePanel) {
|
|
1006
|
+
}));
|
|
1012
1007
|
}), 2000);
|
|
1013
1008
|
}));
|
|
1014
1009
|
};
|
|
@@ -1027,15 +1022,16 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
1027
1022
|
/** @type {?} */
|
|
1028
1023
|
var widgetConfigFilter = (/** @type {?} */ ({
|
|
1029
1024
|
config: widgetInfo.widgetConfigInfo.config,
|
|
1030
|
-
globalFilter: this.globalFilter
|
|
1025
|
+
globalFilter: this.globalFilter,
|
|
1026
|
+
appConfig: this.appConfig
|
|
1031
1027
|
}));
|
|
1032
|
-
this.widgetElement.loadContent(widgetConfigFilter
|
|
1028
|
+
this.widgetElement.loadContent(widgetConfigFilter);
|
|
1033
1029
|
};
|
|
1034
1030
|
RAWidgetContainer.decorators = [
|
|
1035
1031
|
{ type: Component, args: [{
|
|
1036
1032
|
selector: 'ra-widget-container',
|
|
1037
|
-
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(
|
|
1038
|
-
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)}"]
|
|
1033
|
+
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",
|
|
1034
|
+
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)}"]
|
|
1039
1035
|
}] }
|
|
1040
1036
|
];
|
|
1041
1037
|
/** @nocollapse */
|