@schneideress/dashboardframework 0.0.272 → 0.0.273
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 +19 -4
- 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 +9 -4
- package/esm2015/lib/ra-widget-container/ra.widget.container.component.js +11 -2
- package/esm5/lib/ra-dashboard-area/ra.dashboard.area.js +10 -4
- package/esm5/lib/ra-widget-container/ra.widget.container.component.js +11 -2
- package/fesm2015/schneideress-dashboardframework.js +18 -4
- package/fesm2015/schneideress-dashboardframework.js.map +1 -1
- package/fesm5/schneideress-dashboardframework.js +19 -4
- package/fesm5/schneideress-dashboardframework.js.map +1 -1
- package/lib/ra-dashboard-area/ra.dashboard.area.d.ts +1 -0
- package/lib/ra-widget-container/ra.widget.container.component.d.ts +1 -0
- package/package.json +1 -1
- package/schneideress-dashboardframework.metadata.json +1 -1
|
@@ -886,6 +886,9 @@
|
|
|
886
886
|
};
|
|
887
887
|
}
|
|
888
888
|
};
|
|
889
|
+
RADashboardArea.prototype.widgetLoaded = function (widget) {
|
|
890
|
+
widget.canLoadData = true;
|
|
891
|
+
};
|
|
889
892
|
/** To initiate eventbus subsctiptions */
|
|
890
893
|
RADashboardArea.prototype.inititateEventBusSubscritions = function () {
|
|
891
894
|
var _this = this;
|
|
@@ -999,7 +1002,7 @@
|
|
|
999
1002
|
var _this = this;
|
|
1000
1003
|
if (this.templateConfig && this.templateConfig.initialWidgetCount)
|
|
1001
1004
|
this.initialWidgetCount = this.templateConfig.initialWidgetCount;
|
|
1002
|
-
if (location.href.indexOf('
|
|
1005
|
+
if (location.href.indexOf('/kiosk/') > -1)
|
|
1003
1006
|
this.initialWidgetCount = 1000;
|
|
1004
1007
|
this.currentLoadedIndex = 0;
|
|
1005
1008
|
this.loading = false;
|
|
@@ -1032,6 +1035,7 @@
|
|
|
1032
1035
|
});
|
|
1033
1036
|
};
|
|
1034
1037
|
RADashboardArea.prototype.loadWidgetsDelta = function () {
|
|
1038
|
+
var _this = this;
|
|
1035
1039
|
var _a;
|
|
1036
1040
|
if (!this.loading) {
|
|
1037
1041
|
this.loading = true;
|
|
@@ -1039,7 +1043,9 @@
|
|
|
1039
1043
|
this.currentLoadedIndex += this.initialWidgetCount;
|
|
1040
1044
|
(_a = this.widgetList).push.apply(_a, __spread(widgets));
|
|
1041
1045
|
this.setAreaHeight();
|
|
1042
|
-
|
|
1046
|
+
setTimeout(function () {
|
|
1047
|
+
_this.loading = false;
|
|
1048
|
+
});
|
|
1043
1049
|
}
|
|
1044
1050
|
};
|
|
1045
1051
|
RADashboardArea.prototype.dataLoaded = function (widgetElement) {
|
|
@@ -1348,7 +1354,7 @@
|
|
|
1348
1354
|
RADashboardArea = __decorate([
|
|
1349
1355
|
core.Component({
|
|
1350
1356
|
selector: 'ra-dashboard-area',
|
|
1351
|
-
template: "<div #gridWrapper class=\"wrap gridster gridster-mobile\"\r\n [ngStyle]=\"{'height': userWidgets.length > 0 ? (gridheight + 'px') : 'unset'}\">\r\n <!-- <div #gridWrapper class=\"wrap gridster\"> -->\r\n <gridster [options]=\"options\" style=\"height:100%;\" *ngIf=\"userWidgets.length > 0\">\r\n <gridster-item [item]=\"item\" *ngFor=\"let item of widgetList\">\r\n <ra-widget-container (dataLoaded)=\"dataLoaded($event)\"\r\n [bulk-action-data]=\"bulkActionData\" [dashboard-info]=\"dashboardInfo\" [app-config]=\"appConfig\"\r\n [event-bus]=\"raDashboardEventBus\" (widgetDeleted)=\"deleteWidget($event)\" [data]=\"item\"\r\n [global-filter]=\"globalFilter\" [grid-cell-height]=\"gridcellHeight\" *ngIf=\"gridcellHeight && gridcellHeight > 0\"\r\n [widget-width]=\"item.cols\" [widget-height]=\"item.rows\" [widget-instance-id]=\"item.widgetInstanceId\"\r\n [dom-resized]=\"domResized\" (updateAppliedFilters)=\"updateAppliedFilters($event)\">\r\n </ra-widget-container>\r\n </gridster-item>\r\n </gridster>\r\n\r\n <div class=\"empty-padding kiosk-hide\" *ngIf=\"showEmptyDashboard\">\r\n <div class=\"empty-wrapper\">\r\n <div></div>\r\n <div class=\"empty-prefix\">\r\n <!-- <i class=\"fal fa-edit edit-icon\"></i> -->\r\n <span>{{emptyDashboardTitle}}</span>\r\n </div>\r\n <hr class=\"horizontalLine-solid\" />\r\n <div class=\"empty-content light\">\r\n <div>\r\n <div class=\"col-sm-12 empty-msg\">\r\n {{emptyDashboardMsg1}} <br />\r\n {{emptyDashboardMsg2}}\r\n </div>\r\n <button *ngIf=\"isWidgetMgmnt\" class=\"btn btnLib btn-sm dashboard-button light\" (click)=\"buttonClick()\">\r\n <i class=\"{{emptyDashboardButtonIcon}}\"></i>{{emptyDashboardButtonText}}</button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <notifier-container></notifier-container>\r\n</div>\r\n<div #divBottom></div>",
|
|
1357
|
+
template: "<div #gridWrapper class=\"wrap gridster gridster-mobile\"\r\n [ngStyle]=\"{'height': userWidgets.length > 0 ? (gridheight + 'px') : 'unset'}\">\r\n <!-- <div #gridWrapper class=\"wrap gridster\"> -->\r\n <gridster [options]=\"options\" style=\"height:100%;\" *ngIf=\"userWidgets.length > 0\">\r\n <gridster-item [item]=\"item\" *ngFor=\"let item of widgetList\">\r\n <ra-widget-container (widgetLoaded)=\"widgetLoaded(item)\" [canLoadData]=\"item.canLoadData\" (dataLoaded)=\"dataLoaded($event)\"\r\n [bulk-action-data]=\"bulkActionData\" [dashboard-info]=\"dashboardInfo\" [app-config]=\"appConfig\"\r\n [event-bus]=\"raDashboardEventBus\" (widgetDeleted)=\"deleteWidget($event)\" [data]=\"item\"\r\n [global-filter]=\"globalFilter\" [grid-cell-height]=\"gridcellHeight\" *ngIf=\"gridcellHeight && gridcellHeight > 0\"\r\n [widget-width]=\"item.cols\" [widget-height]=\"item.rows\" [widget-instance-id]=\"item.widgetInstanceId\"\r\n [dom-resized]=\"domResized\" (updateAppliedFilters)=\"updateAppliedFilters($event)\">\r\n </ra-widget-container>\r\n </gridster-item>\r\n </gridster>\r\n\r\n <div class=\"empty-padding kiosk-hide\" *ngIf=\"showEmptyDashboard\">\r\n <div class=\"empty-wrapper\">\r\n <div></div>\r\n <div class=\"empty-prefix\">\r\n <!-- <i class=\"fal fa-edit edit-icon\"></i> -->\r\n <span>{{emptyDashboardTitle}}</span>\r\n </div>\r\n <hr class=\"horizontalLine-solid\" />\r\n <div class=\"empty-content light\">\r\n <div>\r\n <div class=\"col-sm-12 empty-msg\">\r\n {{emptyDashboardMsg1}} <br />\r\n {{emptyDashboardMsg2}}\r\n </div>\r\n <button *ngIf=\"isWidgetMgmnt\" class=\"btn btnLib btn-sm dashboard-button light\" (click)=\"buttonClick()\">\r\n <i class=\"{{emptyDashboardButtonIcon}}\"></i>{{emptyDashboardButtonText}}</button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <notifier-container></notifier-container>\r\n</div>\r\n<div #divBottom></div>",
|
|
1352
1358
|
styles: ["gridster{width:inherit;resize:height;display:flex;background-color:#fff;overflow-y:hidden!important}.dvheader{width:100%;height:35px;background:#000;color:#fff;padding:7px 3px 5px 6px;text-transform:uppercase}gridster-item{box-sizing:border-box;z-index:1;position:absolute;overflow:hidden;transition:.3s;display:none;background:#fff;-webkit-user-select:text;-moz-user-select:text;user-select:text;box-shadow:none}gridster-item:hover{box-shadow:0 1px 10px rgba(0,0,0,.15)!important}@media screen and (max-width:685px){.gridster-mobile{height:auto!important;margin-bottom:50px!important}}@media screen and (max-width:350px){.gridster-mobile{min-height:330px!important;margin-bottom:0!important}}.empty-padding{padding:15px 0;background-color:#fff;display:flex}.empty-wrapper{background-color:#fff;border:1px solid #9fa0a4;min-height:125px;width:100%}.empty-prefix{color:#32ad3c;font-size:18px;padding:15px}.empty-content{color:#626469;width:100%;padding:15px}.empty-msg{padding:0 0 15px;font-size:16px}.horizontalLine-solid{border-top:1px solid #cbcbcb;margin:0 15px}.dashboard-button{padding:5px 10px 5px 5px!important}.btnLib{background-color:#ededed;color:#333!important}.btn-group-sm>.btn,.btn-sm{padding:5px 20px 5px 5px}.edit-icon{color:#32ad3c;font-size:24px;margin-right:15px}.empty-title{margin-top:10px}@media screen and (max-width:600px){.empty-padding{padding:15px 0;background-color:#fff;width:100%;display:block}.empty-wrapper{display:flex;background-color:#fff;border:1px solid #9fa0a4;min-height:125px;width:100%}.empty-prefix{color:#32ad3c;font-size:16px;display:flex;height:40px;padding:15px}.empty-content{color:#333;display:flex;padding:15px}.empty-msg{padding:0 0 15px;font-size:14px}.edit-icon{color:#32ad3c;font-size:20px;margin-right:6px}.empty-title{margin-top:6px}}"]
|
|
1353
1359
|
}),
|
|
1354
1360
|
__metadata("design:paramtypes", [RaDashboardService,
|
|
@@ -1452,6 +1458,7 @@
|
|
|
1452
1458
|
this.showExcell = true;
|
|
1453
1459
|
this.hideTitle = false;
|
|
1454
1460
|
this.inapplicableFilters = [];
|
|
1461
|
+
this.canLoadData = false;
|
|
1455
1462
|
this.widgetDeleted = new core.EventEmitter();
|
|
1456
1463
|
this.updateAppliedFilters = new core.EventEmitter();
|
|
1457
1464
|
this.dataLoaded = new core.EventEmitter();
|
|
@@ -1524,6 +1531,10 @@
|
|
|
1524
1531
|
this.invokeWidgetResizedEvent();
|
|
1525
1532
|
}
|
|
1526
1533
|
}
|
|
1534
|
+
if (changes.canLoadData && changes.canLoadData.currentValue != changes.canLoadData.previousValue) {
|
|
1535
|
+
if (this.canLoadData)
|
|
1536
|
+
this.refreshWidget(this.data.widgetInfo);
|
|
1537
|
+
}
|
|
1527
1538
|
};
|
|
1528
1539
|
RAWidgetContainer.prototype.invokeWidgetResizedEvent = function () {
|
|
1529
1540
|
if (this.widgetElement) {
|
|
@@ -1791,7 +1802,7 @@
|
|
|
1791
1802
|
widgetConfigFilter.widgetInfo.widgetName = widgetInfo.widgetName;
|
|
1792
1803
|
widgetConfigFilter.globalFilter = this.globalFilter;
|
|
1793
1804
|
widgetConfigFilter.dashboardInfo = me.dashboardInfo;
|
|
1794
|
-
this.widgetElement.loadContent(widgetConfigFilter);
|
|
1805
|
+
//this.widgetElement.loadContent(widgetConfigFilter);
|
|
1795
1806
|
this.widgetLoaded.emit();
|
|
1796
1807
|
return [4 /*yield*/, this.setLock(widgetConfigFilter.config)];
|
|
1797
1808
|
case 1:
|
|
@@ -2270,6 +2281,10 @@
|
|
|
2270
2281
|
core.Input('bulk-action-data'),
|
|
2271
2282
|
__metadata("design:type", Object)
|
|
2272
2283
|
], RAWidgetContainer.prototype, "bulkActionData", void 0);
|
|
2284
|
+
__decorate([
|
|
2285
|
+
core.Input(),
|
|
2286
|
+
__metadata("design:type", Boolean)
|
|
2287
|
+
], RAWidgetContainer.prototype, "canLoadData", void 0);
|
|
2273
2288
|
__decorate([
|
|
2274
2289
|
core.Output(),
|
|
2275
2290
|
__metadata("design:type", Object)
|