@schneideress/dashboardframework 0.0.27 → 0.0.29
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 +53 -24
- 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 +36 -9
- package/esm2015/lib/ra-widget-container/ra.widget.container.component.js +4 -12
- package/esm2015/lib/ra.dashboard.module.js +3 -2
- package/esm2015/lib/ra.dashboard.service.js +1 -1
- package/esm5/lib/ra-dashboard-area/ra.dashboard.area.js +49 -9
- package/esm5/lib/ra-widget-container/ra.widget.container.component.js +4 -16
- package/esm5/lib/ra.dashboard.module.js +3 -2
- package/esm5/lib/ra.dashboard.service.js +1 -1
- package/fesm2015/schneideress-dashboardframework.js +40 -30
- package/fesm2015/schneideress-dashboardframework.js.map +1 -1
- package/fesm5/schneideress-dashboardframework.js +53 -34
- package/fesm5/schneideress-dashboardframework.js.map +1 -1
- package/lib/ra-dashboard-area/ra.dashboard.area.d.ts +7 -0
- package/lib/ra-widget-container/ra.widget.container.component.d.ts +2 -3
- package/lib/ra.dashboard.service.d.ts +1 -1
- package/package.json +1 -1
- package/schneideress-dashboardframework.metadata.json +1 -1
|
@@ -626,17 +626,57 @@
|
|
|
626
626
|
*/
|
|
627
627
|
function () {
|
|
628
628
|
if (widgetList) {
|
|
629
|
-
widgetList.forEach(
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
function (widgetInfo) {
|
|
634
|
-
_this.addWidget(widgetInfo);
|
|
635
|
-
}));
|
|
629
|
+
// widgetList.forEach(widgetInfo => {
|
|
630
|
+
// this.addWidget(widgetInfo);
|
|
631
|
+
// });
|
|
632
|
+
_this.addWidgetListToGridster(widgetList, 0);
|
|
636
633
|
}
|
|
637
634
|
}));
|
|
638
635
|
}));
|
|
639
636
|
};
|
|
637
|
+
/**
|
|
638
|
+
* temp fix- recursive method to iterate over the list of items
|
|
639
|
+
* and add them to gridster in the given order
|
|
640
|
+
* @param widgetList -list of widgets
|
|
641
|
+
* @param index -index of the current value to be added
|
|
642
|
+
*/
|
|
643
|
+
/**
|
|
644
|
+
* temp fix- recursive method to iterate over the list of items
|
|
645
|
+
* and add them to gridster in the given order
|
|
646
|
+
* @param {?} widgetList -list of widgets
|
|
647
|
+
* @param {?} index -index of the current value to be added
|
|
648
|
+
* @return {?}
|
|
649
|
+
*/
|
|
650
|
+
RADashboardArea.prototype.addWidgetListToGridster = /**
|
|
651
|
+
* temp fix- recursive method to iterate over the list of items
|
|
652
|
+
* and add them to gridster in the given order
|
|
653
|
+
* @param {?} widgetList -list of widgets
|
|
654
|
+
* @param {?} index -index of the current value to be added
|
|
655
|
+
* @return {?}
|
|
656
|
+
*/
|
|
657
|
+
function (widgetList, index) {
|
|
658
|
+
/** @type {?} */
|
|
659
|
+
var areaContext = this;
|
|
660
|
+
/** @type {?} */
|
|
661
|
+
var indexVal = index + 1;
|
|
662
|
+
if (index > widgetList.length - 1)
|
|
663
|
+
return;
|
|
664
|
+
else {
|
|
665
|
+
if (index == 0) {
|
|
666
|
+
areaContext.addWidget(widgetList[index]);
|
|
667
|
+
areaContext.addWidgetListToGridster(widgetList, indexVal);
|
|
668
|
+
}
|
|
669
|
+
else {
|
|
670
|
+
setTimeout((/**
|
|
671
|
+
* @return {?}
|
|
672
|
+
*/
|
|
673
|
+
function () {
|
|
674
|
+
areaContext.addWidget(widgetList[index]);
|
|
675
|
+
areaContext.addWidgetListToGridster(widgetList, indexVal);
|
|
676
|
+
}), 1000);
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
};
|
|
640
680
|
/**
|
|
641
681
|
* @return {?}
|
|
642
682
|
*/
|
|
@@ -764,7 +804,7 @@
|
|
|
764
804
|
this.widgetList.splice(this.widgetList.indexOf(widget[0]), 1);
|
|
765
805
|
this.setAreaHeight();
|
|
766
806
|
if (!isalertDisabled) {
|
|
767
|
-
this.notifier.notify('success', " " + this.translateService.translate('
|
|
807
|
+
this.notifier.notify('success', " " + this.translateService.translate('Widget') + " [" + widget[0].widgetInfo.widgetTitle + "] " + this.translateService.translate('DeletedSuccesfully') + " ");
|
|
768
808
|
}
|
|
769
809
|
}
|
|
770
810
|
};
|
|
@@ -974,7 +1014,6 @@
|
|
|
974
1014
|
* @return {?}
|
|
975
1015
|
*/
|
|
976
1016
|
function (e) {
|
|
977
|
-
console.log('in config changed subscription');
|
|
978
1017
|
_this.ngZone.run((/**
|
|
979
1018
|
* @return {?}
|
|
980
1019
|
*/
|
|
@@ -1088,20 +1127,8 @@
|
|
|
1088
1127
|
*/
|
|
1089
1128
|
function (widgetInfo) {
|
|
1090
1129
|
this.data.widgetInfo = widgetInfo;
|
|
1091
|
-
// this.data.widgetInfo.widgetConfigInfo.config = config;
|
|
1092
1130
|
this.refreshWidget(this.data.widgetInfo);
|
|
1093
|
-
this.updateWidget(
|
|
1094
|
-
};
|
|
1095
|
-
/**
|
|
1096
|
-
* @param {?} widgetInfo
|
|
1097
|
-
* @return {?}
|
|
1098
|
-
*/
|
|
1099
|
-
RAWidgetContainer.prototype.updateWidget = /**
|
|
1100
|
-
* @param {?} widgetInfo
|
|
1101
|
-
* @return {?}
|
|
1102
|
-
*/
|
|
1103
|
-
function (widgetInfo) {
|
|
1104
|
-
this.dashboardService.updateWidget(widgetInfo, this.appConfig);
|
|
1131
|
+
// this.updateWidget(widgetInfo);
|
|
1105
1132
|
};
|
|
1106
1133
|
/** To load external custom element to the widget container*/
|
|
1107
1134
|
/**
|
|
@@ -1133,6 +1160,7 @@
|
|
|
1133
1160
|
* @return {?}
|
|
1134
1161
|
*/
|
|
1135
1162
|
function () {
|
|
1163
|
+
console.log('widget initialized ' + widgetInfo.widgetInstanceId);
|
|
1136
1164
|
widgetConfigFilter.appConfig = _this.appConfig;
|
|
1137
1165
|
widgetConfigFilter.widgetInfo = (/** @type {?} */ ({}));
|
|
1138
1166
|
widgetConfigFilter.widgetInfo.widgetName = widgetInfo.widgetName;
|
|
@@ -1167,7 +1195,7 @@
|
|
|
1167
1195
|
RAWidgetContainer.decorators = [
|
|
1168
1196
|
{ type: core.Component, args: [{
|
|
1169
1197
|
selector: 'ra-widget-container',
|
|
1170
|
-
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.widgetTitle}}\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 gearIcon\"> <i class=\"fal fa-cog\"></i></div>\r\n <div class=\"dropdown-content widget-config-item\">\r\n <a (click)=\"editWidget()\">\r\n <i class=\"fal fa-edit\"></i>\r\n <span>Edit</span>\r\n </a>\r\n <a (click)=\"copyWidget()\">\r\n <i class=\"fal fa-copy\"></i>\r\n <span>Copy</span>\r\n </a>\r\n <a (click)=\"moveWidget()\">\r\n <i class=\"fal fa-arrows-alt\"></i>\r\n <span>Move</span>\r\n </a>\r\n <hr class=\"hr\">\r\n <a (click)=\"deleteWidget()\">\r\n <i class=\"fal fa-times\" style=\"padding-left: 3px;\"></i>\r\n <span>Delete</span>\r\n </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>",
|
|
1198
|
+
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.widgetTitle}}\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 gearIcon\"> <i class=\"fal fa-cog\"></i></div>\r\n <div class=\"dropdown-content widget-config-item\">\r\n <a (click)=\"editWidget()\">\r\n <i class=\"fal fa-edit\"></i>\r\n <span>{{'Edit'|translate}}</span>\r\n </a>\r\n <a (click)=\"copyWidget()\">\r\n <i class=\"fal fa-copy\"></i>\r\n <span>{{'Copy'|translate}}</span>\r\n </a>\r\n <a (click)=\"moveWidget()\">\r\n <i class=\"fal fa-arrows-alt\"></i>\r\n <span>{{'Move'|translate}}</span>\r\n </a>\r\n <hr class=\"hr\">\r\n <a (click)=\"deleteWidget()\">\r\n <i class=\"fal fa-times\" style=\"padding-left: 3px;\"></i>\r\n <span>{{'Delete'|translate}}</span>\r\n </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>",
|
|
1171
1199
|
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{visibility:hidden;opacity:0;transition:visibility,opacity .5s linear;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{display:block;-webkit-animation:.3s ease-out slide-down;animation:.3s ease-out slide-down}.wc-wrapper:hover .dropdown{visibility:visible;opacity:1}.dropdown:hover .dropbtn{color:#2b7797}.gearIcon{color:#42b4e6}.hr{border:0;border-top:1px solid rgba(0,0,0,.1)}@keyframes slide-down{0%{opacity:0;-webkit-transform:translateY(-20%);transform:translateY(-20%)}100%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@-webkit-keyframes slide-down{0%{opacity:0;-webkit-transform:translateY(-20%)}100%{opacity:1;-webkit-transform:translateY(0)}}.widget-config-item i{font-size:17px;color:#42b4e6}.widget-config-item span{font-size:12px;font:inherit;padding-left:12px;color:#42b4e6}"]
|
|
1172
1200
|
}] }
|
|
1173
1201
|
];
|
|
@@ -5751,7 +5779,8 @@
|
|
|
5751
5779
|
angularNotifier.NotifierModule.withConfig(customNotifierOptions)
|
|
5752
5780
|
],
|
|
5753
5781
|
exports: [
|
|
5754
|
-
RADashboardArea
|
|
5782
|
+
RADashboardArea,
|
|
5783
|
+
essBase.TranslateModule
|
|
5755
5784
|
],
|
|
5756
5785
|
providers: [],
|
|
5757
5786
|
bootstrap: [RADashboardArea]
|