@schneideress/dashboardframework 0.0.192 → 0.0.194
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 +10 -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 +10 -7
- package/esm2015/lib/ra.event.enum.js +2 -2
- package/esm5/lib/ra-dashboard-area/ra.dashboard.area.js +10 -7
- package/esm5/lib/ra.event.enum.js +2 -2
- package/fesm2015/schneideress-dashboardframework.js +10 -7
- package/fesm2015/schneideress-dashboardframework.js.map +1 -1
- package/fesm5/schneideress-dashboardframework.js +10 -7
- package/fesm5/schneideress-dashboardframework.js.map +1 -1
- package/lib/ra-dashboard-area/ra.dashboard.area.d.ts +2 -1
- package/lib/ra.event.enum.d.ts +1 -1
- package/package.json +1 -1
- package/schneideress-dashboardframework.metadata.json +1 -1
|
@@ -604,7 +604,7 @@
|
|
|
604
604
|
UpdateGlobalFilterFromMapWidget: "UpdateGlobalFilterFromMapWidget",
|
|
605
605
|
/**To add widget on empty dashboard */
|
|
606
606
|
AddWidgetEmptyDashboard: "AddWidgetEmptyDashboard",
|
|
607
|
-
/**To raise widget
|
|
607
|
+
/**To raise new widget add click event */
|
|
608
608
|
AddNewWidgetToDashboard: "AddNewWidgetToDashboard",
|
|
609
609
|
};
|
|
610
610
|
/** @enum {string} */
|
|
@@ -934,8 +934,10 @@
|
|
|
934
934
|
this.widgetList = Array();
|
|
935
935
|
this.gridheight = 300;
|
|
936
936
|
this.gridcellHeight = 0;
|
|
937
|
+
this.userWidgets = [];
|
|
937
938
|
this.isWidgetLoaded = false;
|
|
938
939
|
this.domResized = false;
|
|
940
|
+
this.hasWidgets = false;
|
|
939
941
|
this.widgetHeight = 2;
|
|
940
942
|
this.widgetWidth = 4;
|
|
941
943
|
}
|
|
@@ -1271,6 +1273,7 @@
|
|
|
1271
1273
|
function (widgets) {
|
|
1272
1274
|
_this.userWidgets = widgets;
|
|
1273
1275
|
if (widgets && widgets.length > 0) {
|
|
1276
|
+
_this.hasWidgets = true;
|
|
1274
1277
|
_this.widgetList = _this.mapObjectListToGridsterItemList(widgets);
|
|
1275
1278
|
_this.setAreaHeight();
|
|
1276
1279
|
}
|
|
@@ -1351,6 +1354,7 @@
|
|
|
1351
1354
|
*/
|
|
1352
1355
|
function (widgetInstanceId, isalertDisabled) {
|
|
1353
1356
|
if (isalertDisabled === void 0) { isalertDisabled = false; }
|
|
1357
|
+
this.hasWidgets = this.widgetList && this.widgetList.length > 0 ? true : false;
|
|
1354
1358
|
/** @type {?} */
|
|
1355
1359
|
var gridsterItem = this.widgetList.filter((/**
|
|
1356
1360
|
* @param {?} item
|
|
@@ -1599,8 +1603,8 @@
|
|
|
1599
1603
|
RADashboardArea.decorators = [
|
|
1600
1604
|
{ type: core.Component, args: [{
|
|
1601
1605
|
selector: 'ra-dashboard-area',
|
|
1602
|
-
template: "<div #gridWrapper class=\"wrap gridster gridster-mobile\" [style.height.px]=\"
|
|
1603
|
-
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}.btn-group-sm>.btn,.btn-sm{padding:5px 20px 5px 5px}@media screen and (max-width:500px){.empty-padding{padding:20px;background-color:#ededed;width:480px;display:block}.empty-prefix{color:#32ad3c;font-size:18px;display:flex;height:39px;padding:6px 120px 10px 33px}.empty-content{color:#333;border-top:1px solid #a9afb1;display:flex;padding:10px 30px;margin-top:44px;margin-left:-366px;border-left:none}.empty-msg{padding:4px 4px 10px;font-size:16px}}"]
|
|
1606
|
+
template: "<div #gridWrapper class=\"wrap gridster gridster-mobile\" [style.height.px]=\"userWidgets.length > 0 ? (hasWidgets ? gridheight : '') : ''\">\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\" style=\"color:#32AD3C; font-size: 24px; margin-right: 15px;\"></i>\r\n <span style=\"margin-top: 10px;\">{{'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 {{'emptydashboardmessage'|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>{{'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>",
|
|
1607
|
+
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:500px){.empty-padding{padding:20px;background-color:#ededed;width:480px;display:block}.empty-prefix{color:#32ad3c;font-size:18px;display:flex;height:39px;padding:6px 120px 10px 33px}.empty-content{color:#333;border-top:1px solid #a9afb1;display:flex;padding:10px 30px;margin-top:44px;margin-left:-366px;border-left:none}.empty-msg{padding:4px 4px 10px;font-size:16px}}"]
|
|
1604
1608
|
}] }
|
|
1605
1609
|
];
|
|
1606
1610
|
/** @nocollapse */
|
|
@@ -1633,10 +1637,7 @@
|
|
|
1633
1637
|
RADashboardArea.prototype.gridheight;
|
|
1634
1638
|
/** @type {?} */
|
|
1635
1639
|
RADashboardArea.prototype.gridcellHeight;
|
|
1636
|
-
/**
|
|
1637
|
-
* @type {?}
|
|
1638
|
-
* @private
|
|
1639
|
-
*/
|
|
1640
|
+
/** @type {?} */
|
|
1640
1641
|
RADashboardArea.prototype.userWidgets;
|
|
1641
1642
|
/**
|
|
1642
1643
|
* @type {?}
|
|
@@ -1671,6 +1672,8 @@
|
|
|
1671
1672
|
/** @type {?} */
|
|
1672
1673
|
RADashboardArea.prototype.domResized;
|
|
1673
1674
|
/** @type {?} */
|
|
1675
|
+
RADashboardArea.prototype.hasWidgets;
|
|
1676
|
+
/** @type {?} */
|
|
1674
1677
|
RADashboardArea.prototype.userDashboardId;
|
|
1675
1678
|
/** @type {?} */
|
|
1676
1679
|
RADashboardArea.prototype.areaKey;
|