@schneideress/dashboardframework 0.0.195 → 0.0.197
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 +2 -7
- 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 +3 -8
- package/esm5/lib/ra-dashboard-area/ra.dashboard.area.js +3 -8
- package/fesm2015/schneideress-dashboardframework.js +2 -7
- package/fesm2015/schneideress-dashboardframework.js.map +1 -1
- package/fesm5/schneideress-dashboardframework.js +2 -7
- package/fesm5/schneideress-dashboardframework.js.map +1 -1
- package/lib/ra-dashboard-area/ra.dashboard.area.d.ts +0 -1
- package/package.json +1 -1
- package/schneideress-dashboardframework.metadata.json +1 -1
|
@@ -731,7 +731,6 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
731
731
|
this.userWidgets = [];
|
|
732
732
|
this.isWidgetLoaded = false;
|
|
733
733
|
this.domResized = false;
|
|
734
|
-
this.hasWidgets = false;
|
|
735
734
|
this.widgetHeight = 2;
|
|
736
735
|
this.widgetWidth = 4;
|
|
737
736
|
}
|
|
@@ -1067,7 +1066,6 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
1067
1066
|
function (widgets) {
|
|
1068
1067
|
_this.userWidgets = widgets;
|
|
1069
1068
|
if (widgets && widgets.length > 0) {
|
|
1070
|
-
_this.hasWidgets = true;
|
|
1071
1069
|
_this.widgetList = _this.mapObjectListToGridsterItemList(widgets);
|
|
1072
1070
|
_this.setAreaHeight();
|
|
1073
1071
|
}
|
|
@@ -1148,7 +1146,6 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
1148
1146
|
*/
|
|
1149
1147
|
function (widgetInstanceId, isalertDisabled) {
|
|
1150
1148
|
if (isalertDisabled === void 0) { isalertDisabled = false; }
|
|
1151
|
-
this.hasWidgets = this.widgetList && this.widgetList.length > 0 ? true : false;
|
|
1152
1149
|
/** @type {?} */
|
|
1153
1150
|
var gridsterItem = this.widgetList.filter((/**
|
|
1154
1151
|
* @param {?} item
|
|
@@ -1397,8 +1394,8 @@ var RADashboardArea = /** @class */ (function () {
|
|
|
1397
1394
|
RADashboardArea.decorators = [
|
|
1398
1395
|
{ type: Component, args: [{
|
|
1399
1396
|
selector: 'ra-dashboard-area',
|
|
1400
|
-
template: "<div #gridWrapper class=\"wrap gridster gridster-mobile\" [
|
|
1401
|
-
styles: ["gridster{width:inherit;resize:height;display:flex;background-color:#ededed;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;-ms-user-select:text;user-select:text;box-shadow:0 1px 10px rgba(0,0,0,.05)}gridster-item:hover{box-shadow:0 1px 10px rgba(0,0,0,.15)}@media screen and (max-width:685px){.gridster-mobile{height:auto!important}}.empty-padding{padding:40px 20px 20px;background-color:#ededed;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}.btn-group-sm>.btn,.btn-sm{padding:5px 20px 5px 5px}@media screen and (max-width:
|
|
1397
|
+
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 [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 </ra-widget-container>\r\n </gridster-item>\r\n </gridster>\r\n\r\n <div class=\"empty-padding kiosk-hide\" *ngIf=\"userWidgets.length == 0\">\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 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>",
|
|
1398
|
+
styles: ["gridster{width:inherit;resize:height;display:flex;background-color:#ededed;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;-ms-user-select:text;user-select:text;box-shadow:0 1px 10px rgba(0,0,0,.05)}gridster-item:hover{box-shadow:0 1px 10px rgba(0,0,0,.15)}@media screen and (max-width:685px){.gridster-mobile{height:auto!important}}@media screen and (max-width:350px){.gridster-mobile{min-height:330px!important}}.empty-padding{padding:40px 20px 20px;background-color:#ededed;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:#ededed;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}}"]
|
|
1402
1399
|
}] }
|
|
1403
1400
|
];
|
|
1404
1401
|
/** @nocollapse */
|
|
@@ -1466,8 +1463,6 @@ if (false) {
|
|
|
1466
1463
|
/** @type {?} */
|
|
1467
1464
|
RADashboardArea.prototype.domResized;
|
|
1468
1465
|
/** @type {?} */
|
|
1469
|
-
RADashboardArea.prototype.hasWidgets;
|
|
1470
|
-
/** @type {?} */
|
|
1471
1466
|
RADashboardArea.prototype.userDashboardId;
|
|
1472
1467
|
/** @type {?} */
|
|
1473
1468
|
RADashboardArea.prototype.areaKey;
|