@schneideress/dashboardframework 0.0.259 → 0.0.261
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 +16 -14
- 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/gridster/lib/gridsterItem.component.js +3 -3
- package/esm2015/gridster/lib/gridsterRenderer.service.js +2 -2
- package/esm2015/lib/ra-dashboard-area/ra.dashboard.area.js +7 -5
- package/esm2015/lib/ra-widget-container/ra.widget.container.component.js +7 -7
- package/esm2015/lib/ra.gridster.config.js +2 -2
- package/esm5/gridster/lib/gridsterItem.component.js +3 -3
- package/esm5/gridster/lib/gridsterRenderer.service.js +2 -2
- package/esm5/lib/ra-dashboard-area/ra.dashboard.area.js +7 -5
- package/esm5/lib/ra-widget-container/ra.widget.container.component.js +7 -7
- package/esm5/lib/ra.gridster.config.js +2 -2
- package/fesm2015/schneideress-dashboardframework.js +16 -14
- package/fesm2015/schneideress-dashboardframework.js.map +1 -1
- package/fesm5/schneideress-dashboardframework.js +16 -14
- package/fesm5/schneideress-dashboardframework.js.map +1 -1
- package/package.json +1 -1
- package/schneideress-dashboardframework.metadata.json +1 -1
|
@@ -413,7 +413,7 @@
|
|
|
413
413
|
var GridsterConfigDefaultSettings = {
|
|
414
414
|
gridType: 'scrollVertical',
|
|
415
415
|
compactType: 'none',
|
|
416
|
-
margin:
|
|
416
|
+
margin: 0,
|
|
417
417
|
outerMargin: true,
|
|
418
418
|
outerMarginTop: 10,
|
|
419
419
|
outerMarginRight: 0,
|
|
@@ -669,15 +669,17 @@
|
|
|
669
669
|
}
|
|
670
670
|
else {
|
|
671
671
|
setTimeout(function () {
|
|
672
|
-
_this.raDashboardEventBus.subscribe(exports.RAEvent.BulkActionClick).subscribe(function (data) {
|
|
673
|
-
_this.bulkActionData = JSON.parse(JSON.stringify(data)); // To create a new reference;
|
|
674
|
-
});
|
|
675
672
|
_this.gridcellHeight = _this.options.api.getCurrentRowHeight();
|
|
676
673
|
_this.domResized = !_this.domResized;
|
|
677
674
|
_this.setAreaHeight();
|
|
678
675
|
}, 100);
|
|
679
676
|
}
|
|
680
677
|
});
|
|
678
|
+
setTimeout(function () {
|
|
679
|
+
_this.raDashboardEventBus.subscribe(exports.RAEvent.BulkActionClick).subscribe(function (data) {
|
|
680
|
+
_this.bulkActionData = JSON.parse(JSON.stringify(data)); // To create a new reference;
|
|
681
|
+
});
|
|
682
|
+
});
|
|
681
683
|
};
|
|
682
684
|
RADashboardArea.prototype.ngOnChanges = function (changes) {
|
|
683
685
|
this.isWidgetMgmnt = this.permissionService.hasPermission('ra.widgetmanagement');
|
|
@@ -1103,7 +1105,7 @@
|
|
|
1103
1105
|
RADashboardArea = __decorate([
|
|
1104
1106
|
core.Component({
|
|
1105
1107
|
selector: 'ra-dashboard-area',
|
|
1106
|
-
template: "<div #gridWrapper class=\"wrap gridster gridster-mobile\" [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 [dashboard-info]=\"dashboardInfo\" [app-config]=\"appConfig\" [event-bus]=\"raDashboardEventBus\"\r\n (widgetDeleted)=\"deleteWidget($event)\" [data]=\"item\" [global-filter]=\"globalFilter\"\r\n [grid-cell-height]=\"gridcellHeight\" *ngIf=\"gridcellHeight && gridcellHeight > 0\" [widget-width]=\"item.cols\"\r\n [widget-height]=\"item.rows\" [widget-instance-id]=\"item.widgetInstanceId\" [dom-resized]=\"domResized\"\r\n (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=\"m-1 empty-prefix\">\r\n <i class=\"fal fa-edit edit-icon\"></i>\r\n <span class=\"empty-title\">{{'dashboard.emptydashboard'|translate}}</span>\r\n </div>\r\n <div class=\"empty-content light\">\r\n <div>\r\n <div class=\"col-sm-12 empty-msg\">\r\n {{'dashboard.emptydashboardmessage'|translate}} <br />\r\n {{'dashboard.emptydashboardmessage2'|translate}}\r\n </div>\r\n <button *ngIf=\"isWidgetMgmnt\" class=\"btn btnLib btn-sm m-1 dashboard-button light\" (click)=\"addNewWidget()\">\r\n <i class=\"fal fa-plus m-1\"></i>{{'dashboard.addawidgets'|translate}}</button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <notifier-container></notifier-container>\r\n</div>",
|
|
1108
|
+
template: "<div #gridWrapper class=\"wrap gridster gridster-mobile\" [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 [bulk-action-data]=\"bulkActionData\" [dashboard-info]=\"dashboardInfo\" [app-config]=\"appConfig\" [event-bus]=\"raDashboardEventBus\"\r\n (widgetDeleted)=\"deleteWidget($event)\" [data]=\"item\" [global-filter]=\"globalFilter\"\r\n [grid-cell-height]=\"gridcellHeight\" *ngIf=\"gridcellHeight && gridcellHeight > 0\" [widget-width]=\"item.cols\"\r\n [widget-height]=\"item.rows\" [widget-instance-id]=\"item.widgetInstanceId\" [dom-resized]=\"domResized\"\r\n (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=\"m-1 empty-prefix\">\r\n <i class=\"fal fa-edit edit-icon\"></i>\r\n <span class=\"empty-title\">{{'dashboard.emptydashboard'|translate}}</span>\r\n </div>\r\n <div class=\"empty-content light\">\r\n <div>\r\n <div class=\"col-sm-12 empty-msg\">\r\n {{'dashboard.emptydashboardmessage'|translate}} <br />\r\n {{'dashboard.emptydashboardmessage2'|translate}}\r\n </div>\r\n <button *ngIf=\"isWidgetMgmnt\" class=\"btn btnLib btn-sm m-1 dashboard-button light\" (click)=\"addNewWidget()\">\r\n <i class=\"fal fa-plus m-1\"></i>{{'dashboard.addawidgets'|translate}}</button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <notifier-container></notifier-container>\r\n</div>",
|
|
1107
1109
|
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:40px 20px 20px;background-color:#fff;display:flex;justify-content:center;align-content:center}.empty-wrapper{display:flex;background-color:#fff;border-radius:8px;min-height:125px;width:72%}.empty-prefix{color:#32ad3c;font-size:18px;display:flex;align-items:center;padding:10px 30px;min-width:-webkit-max-content;min-width:max-content;min-width:-moz-max-content}.empty-content{color:#333;border-left:1px solid #a9afb1;width:100%;display:flex;align-items:center;padding:15px 30px 10px 40px}.empty-msg{padding:0 0 5px;font-size:16px}.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:10px;background-color:#fff;width:100%;display:block}.empty-wrapper{display:flex;background-color:#fff;border-radius:8px;min-height:125px;width:100%}.empty-prefix{color:#32ad3c;font-size:16px;display:flex;height:40px;padding:6px 10px 8px}.empty-content{color:#333;display:flex;padding:5px 10px 10px;margin-top:44px;margin-left:-185px;border-left:none}.empty-msg{padding:12px 10px 10px 5px;font-size:14px;border-top:1px solid #a9afb1}.edit-icon{color:#32ad3c;font-size:20px;margin-right:6px}.empty-title{margin-top:6px}}"]
|
|
1108
1110
|
}),
|
|
1109
1111
|
__metadata("design:paramtypes", [RaDashboardService,
|
|
@@ -1808,11 +1810,11 @@
|
|
|
1808
1810
|
var html = '<div id="ra-db-widget-menu"' + 'style="' + style + '" class="download-content dropdown-content widget-config-item dropdown-click" style="z-index: 1002;">';
|
|
1809
1811
|
var settings = '';
|
|
1810
1812
|
if (this.isWidgetMgmnt) {
|
|
1811
|
-
if (!this.data.widgetInfo.templateWidgetSettings.hideEdit)
|
|
1813
|
+
if (!this.data.widgetInfo.templateWidgetSettings || !this.data.widgetInfo.templateWidgetSettings.hideEdit)
|
|
1812
1814
|
settings += this.getHtmlForButton('wcEditWidget', 'fal fa-edit', this.editText);
|
|
1813
|
-
if (!this.data.widgetInfo.templateWidgetSettings.hideCopy)
|
|
1815
|
+
if (!this.data.widgetInfo.templateWidgetSettings || !this.data.widgetInfo.templateWidgetSettings.hideCopy)
|
|
1814
1816
|
settings += this.getHtmlForButton('wcCopyWidget', 'fal fa-copy', this.copyText);
|
|
1815
|
-
if (!this.data.widgetInfo.templateWidgetSettings.hideMove)
|
|
1817
|
+
if (!this.data.widgetInfo.templateWidgetSettings || !this.data.widgetInfo.templateWidgetSettings.hideMove)
|
|
1816
1818
|
settings += this.getHtmlForButton('wcMoveWidget', 'fal fa-arrows-alt', this.moveText);
|
|
1817
1819
|
}
|
|
1818
1820
|
var customPageParams = false;
|
|
@@ -1822,14 +1824,14 @@
|
|
|
1822
1824
|
customPageParams = true;
|
|
1823
1825
|
}
|
|
1824
1826
|
}
|
|
1825
|
-
if (!this.data.widgetInfo.templateWidgetSettings.hideVisitPage && (this.detailPageUrl || customPageParams) && this.checkVisitLinkVisiblity()) {
|
|
1827
|
+
if (!this.data.widgetInfo.templateWidgetSettings || !this.data.widgetInfo.templateWidgetSettings.hideVisitPage && (this.detailPageUrl || customPageParams) && this.checkVisitLinkVisiblity()) {
|
|
1826
1828
|
settings += '<a style="max-height: 30px;align-items: center;align-content: center; display: flex;" id="wcVisitWidget">';
|
|
1827
1829
|
settings += '<i style="padding-left: 4px;font-size: 27px !important;" class="fal fa-angle-right"></i> ';
|
|
1828
1830
|
settings += '<span style="padding-left: 11px;margin-top: 2px;" style="padding-left: 6px;">';
|
|
1829
1831
|
settings += this.translateService.translate('Common.visitpage');
|
|
1830
1832
|
settings += '</span></a>';
|
|
1831
1833
|
}
|
|
1832
|
-
if (!this.data.widgetInfo.templateWidgetSettings.hideVisitPage && (this.detailPageUrl && this.checkVisitLinkVisiblity()) || this.isWidgetMgmnt) {
|
|
1834
|
+
if (!this.data.widgetInfo.templateWidgetSettings || !this.data.widgetInfo.templateWidgetSettings.hideVisitPage && (this.detailPageUrl && this.checkVisitLinkVisiblity()) || this.isWidgetMgmnt) {
|
|
1833
1835
|
html += '<div style="color: #9FA0A4;font-size: 12px;padding-top: 8px;padding-left: 12px;">';
|
|
1834
1836
|
html += this.translateService.translate('Common.settings') + '</div>';
|
|
1835
1837
|
html += settings;
|
|
@@ -1861,7 +1863,7 @@
|
|
|
1861
1863
|
if (this.isDownloadIconVisible && this.isWidgetMgmnt && this.showExcell) {
|
|
1862
1864
|
html += this.getHr();
|
|
1863
1865
|
}
|
|
1864
|
-
if (this.isWidgetMgmnt && !this.data.widgetInfo.templateWidgetSettings.hideDelete) {
|
|
1866
|
+
if (this.isWidgetMgmnt && !this.data.widgetInfo.templateWidgetSettings || !this.data.widgetInfo.templateWidgetSettings.hideDelete) {
|
|
1865
1867
|
html += '<a id="wcWidgetDelete"><i class="fal fa-times" style="padding-left: 3px;color: red;"></i><span>';
|
|
1866
1868
|
html += this.deleteText;
|
|
1867
1869
|
html += '</span></a>';
|
|
@@ -2714,7 +2716,7 @@
|
|
|
2714
2716
|
else {
|
|
2715
2717
|
var x = Math.round(this.gridster.curColWidth * item.x);
|
|
2716
2718
|
var y = Math.round(this.gridster.curRowHeight * item.y);
|
|
2717
|
-
var width = this.gridster.curColWidth * item.cols - this.gridster.$options.margin
|
|
2719
|
+
var width = this.gridster.curColWidth * item.cols - this.gridster.$options.margin;
|
|
2718
2720
|
var height = (this.gridster.curRowHeight * item.rows - this.gridster.$options.margin);
|
|
2719
2721
|
// set the cell style
|
|
2720
2722
|
this.setCellPosition(renderer, el, x, y);
|
|
@@ -4841,8 +4843,8 @@
|
|
|
4841
4843
|
GridsterItemComponent.prototype.updateItemSize = function () {
|
|
4842
4844
|
var top = this.$item.y * this.gridster.curRowHeight;
|
|
4843
4845
|
var left = this.$item.x * this.gridster.curColWidth;
|
|
4844
|
-
var width = this.$item.cols * this.gridster.curColWidth - this.gridster.$options.margin
|
|
4845
|
-
var height = this.$item.rows * this.gridster.curRowHeight - this.gridster.$options.margin
|
|
4846
|
+
var width = this.$item.cols * this.gridster.curColWidth - this.gridster.$options.margin;
|
|
4847
|
+
var height = this.$item.rows * this.gridster.curRowHeight - this.gridster.$options.margin;
|
|
4846
4848
|
if (!this.init && width > 0 && height > 0) {
|
|
4847
4849
|
this.init = true;
|
|
4848
4850
|
if (this.item.initCallback) {
|