@schneideress/dashboardframework 0.0.210 → 0.0.212
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 +18 -5
- 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-widget-container/ra.widget.container.component.js +19 -6
- package/esm5/lib/ra-widget-container/ra.widget.container.component.js +19 -6
- package/fesm2015/schneideress-dashboardframework.js +18 -5
- package/fesm2015/schneideress-dashboardframework.js.map +1 -1
- package/fesm5/schneideress-dashboardframework.js +18 -5
- package/fesm5/schneideress-dashboardframework.js.map +1 -1
- 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
|
@@ -1797,6 +1797,7 @@
|
|
|
1797
1797
|
this.noPadding = false;
|
|
1798
1798
|
this.isMouseHover = false;
|
|
1799
1799
|
this.showSettingsLink = true;
|
|
1800
|
+
this.isKpiView = false;
|
|
1800
1801
|
this.widgetDeleted = new core.EventEmitter();
|
|
1801
1802
|
this.isWidgetStateApplicable = false;
|
|
1802
1803
|
this.widgetEmptyState = '';
|
|
@@ -1901,6 +1902,10 @@
|
|
|
1901
1902
|
size.width = this.width;
|
|
1902
1903
|
size.cellHeight = this.gridCellHeight;
|
|
1903
1904
|
this.widgetElement.widgetResized(size);
|
|
1905
|
+
if (this.height == 1 || this.width == 1)
|
|
1906
|
+
this.isKpiView = true;
|
|
1907
|
+
else
|
|
1908
|
+
this.isKpiView = false;
|
|
1904
1909
|
}
|
|
1905
1910
|
};
|
|
1906
1911
|
/**
|
|
@@ -2169,7 +2174,12 @@
|
|
|
2169
2174
|
*/
|
|
2170
2175
|
function () {
|
|
2171
2176
|
_this.setNotConfiguredState(widgetInfo);
|
|
2172
|
-
|
|
2177
|
+
/** @type {?} */
|
|
2178
|
+
var appModule = _this.data.widgetInfo.widgetName;
|
|
2179
|
+
if (_this.data.widgetInfo.applicationModule && _this.data.widgetInfo.applicationModule.length > 0) {
|
|
2180
|
+
appModule = _this.data.widgetInfo.applicationModule;
|
|
2181
|
+
}
|
|
2182
|
+
_this.translateService.loadTranslations(_this.appConfig.appManagementBaseUrl, appModule, false).then((/**
|
|
2173
2183
|
* @return {?}
|
|
2174
2184
|
*/
|
|
2175
2185
|
function () {
|
|
@@ -2219,9 +2229,6 @@
|
|
|
2219
2229
|
* @return {?}
|
|
2220
2230
|
*/
|
|
2221
2231
|
function (e) {
|
|
2222
|
-
console.log("++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++");
|
|
2223
|
-
console.log(e);
|
|
2224
|
-
console.log(e.details);
|
|
2225
2232
|
if (e.detail == true)
|
|
2226
2233
|
_this.enableTitleLine = true;
|
|
2227
2234
|
else
|
|
@@ -2324,6 +2331,10 @@
|
|
|
2324
2331
|
* @return {?}
|
|
2325
2332
|
*/
|
|
2326
2333
|
function (widgetState) {
|
|
2334
|
+
if (this.height == 1 || this.width == 1)
|
|
2335
|
+
this.isKpiView = true;
|
|
2336
|
+
else
|
|
2337
|
+
this.isKpiView = false;
|
|
2327
2338
|
this.widgetEmptyState = widgetState.widgetViewState;
|
|
2328
2339
|
this.isGlobalFilterApplied = widgetState.isGlobalFilterApplied;
|
|
2329
2340
|
if (widgetState != widgetframework.WidgetViewState.normal) {
|
|
@@ -2779,7 +2790,7 @@
|
|
|
2779
2790
|
RAWidgetContainer.decorators = [
|
|
2780
2791
|
{ type: core.Component, args: [{
|
|
2781
2792
|
selector: 'ra-widget-container',
|
|
2782
|
-
template: "<div #wcWrapper class=\"wc-wrapper\" (mouseenter)=\"mouseHover(true)\" (mouseleave)=\"mouseHover(false)\"\r\n [ngStyle]=\"{'margin-left': noPadding?'0px':'15px','margin-right': noPadding?'0px':'15px'}\">\r\n <div class=\"wcheader widget-move\" [ngClass]=\"{'underLine': enableTitleLine || isWidgetStateApplicable}\">\r\n <div class=\"col-md-12 wc-mover\" style=\"padding-left: 0px;height:inherit;padding-right: 0px;\">\r\n <div style=\"display:flex;margin-top:10px;\"\r\n [ngStyle]=\"{'margin-left': noPadding?'15px':'0px','margin-right': noPadding?'15px':'0px'}\">\r\n <div class=\"col-md-10 float-left title-label\">\r\n <ra-tooltip [value]=\"toolTipValue\" [width]=\"toolTipWidth\">\r\n <div style=\"text-overflow: ellipsis;white-space: nowrap;overflow: hidden;\" (mouseover)=\"mouseOver($event)\"\r\n #searchInput>{{WidgetDisplayName}}</div>\r\n </ra-tooltip>\r\n </div>\r\n <div class=\"col-md-2\" style=\"cursor:default;padding-right: 0px;\">\r\n <div class=\"float-right\" style=\"display: flex;\">\r\n <div class=\"title-bar-lock-icon lock-dropdown\" [hidden]=\"!lockDetails && !lockTemplateInfo\">\r\n <i class=\"fal fa-lock lock\"></i>\r\n <div class=\"lock-dropdown-content light widget-config-item\">\r\n <div *ngIf=\"lockDetails && !lockTemplateInfo\">\r\n <label style=\"color: #D9F0FA;\">\r\n {{'Common.lockedfields'|translate}}\r\n </label>\r\n <div style=\"color: white;\">\r\n <label class=\"bold\" style=\"margin-bottom: 0px;width: 100%;\" *ngFor=\"let item of lockDetails\">\r\n {{item}}\r\n </label>\r\n </div>\r\n <hr>\r\n <div style=\"color: #D9F0FA;\">\r\n <label>{{'Common.lockedfieldseditinfo'|translate}}</label>\r\n </div>\r\n </div>\r\n <div *ngIf=\"!lockDetails && lockTemplateInfo\">\r\n <ng-container *ngTemplateOutlet=\"lockTemplateInfo\">\r\n </ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"widget-menu\" style=\"width:10px;\"
|
|
2793
|
+
template: "<div #wcWrapper class=\"wc-wrapper\" (mouseenter)=\"mouseHover(true)\" (mouseleave)=\"mouseHover(false)\"\r\n [ngStyle]=\"{'margin-left': noPadding?'0px':'15px','margin-right': noPadding?'0px':'15px'}\">\r\n <div class=\"wcheader widget-move\" [ngClass]=\"{'underLine': enableTitleLine || isWidgetStateApplicable}\">\r\n <div class=\"col-md-12 wc-mover\" style=\"padding-left: 0px;height:inherit;padding-right: 0px;\">\r\n <div style=\"display:flex;margin-top:10px;\"\r\n [ngStyle]=\"{'margin-left': noPadding?'15px':'0px','margin-right': noPadding?'15px':'0px'}\">\r\n <div class=\"col-md-10 float-left title-label\">\r\n <ra-tooltip [value]=\"toolTipValue\" [width]=\"toolTipWidth\">\r\n <div style=\"text-overflow: ellipsis;white-space: nowrap;overflow: hidden;\" (mouseover)=\"mouseOver($event)\"\r\n #searchInput>{{WidgetDisplayName}}</div>\r\n </ra-tooltip>\r\n </div>\r\n <div class=\"col-md-2\" style=\"cursor:default;padding-right: 0px;\">\r\n <div class=\"float-right\" style=\"display: flex;\">\r\n <div class=\"title-bar-lock-icon lock-dropdown\" [hidden]=\"!lockDetails && !lockTemplateInfo\">\r\n <i class=\"fal fa-lock lock\"></i>\r\n <div class=\"lock-dropdown-content light widget-config-item\">\r\n <div *ngIf=\"lockDetails && !lockTemplateInfo\">\r\n <label style=\"color: #D9F0FA;\">\r\n {{'Common.lockedfields'|translate}}\r\n </label>\r\n <div style=\"color: white;\">\r\n <label class=\"bold\" style=\"margin-bottom: 0px;width: 100%;\" *ngFor=\"let item of lockDetails\">\r\n {{item}}\r\n </label>\r\n </div>\r\n <hr>\r\n <div style=\"color: #D9F0FA;\">\r\n <label>{{'Common.lockedfieldseditinfo'|translate}}</label>\r\n </div>\r\n </div>\r\n <div *ngIf=\"!lockDetails && lockTemplateInfo\">\r\n <ng-container *ngTemplateOutlet=\"lockTemplateInfo\">\r\n </ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"widget-menu\" style=\"width:10px;\"\r\n [ngClass]=\"{'widget-menu-show': isMouseHover && showSettingsLink}\">\r\n <div class=\"dropbtn title-bar-icon\">\r\n <i (click)=\"showDropDown($event)\" #widgetDropdown class=\"fal fa-ellipsis-v widget-menu-ellipse\"></i>\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\" [ngStyle]=\"{'bottom': noPadding?'0px':'10px'}\">\r\n <div [hidden]=\"isWidgetStateApplicable\" class=\"m-fadeOut widget-overlay\" [ngClass]=\"{'m-fadeIn': showPanel}\">\r\n <div class=\"lds-roller\">\r\n <div></div>\r\n <div></div>\r\n <div></div>\r\n <div></div>\r\n <div></div>\r\n <div></div>\r\n <div></div>\r\n <div></div>\r\n </div>\r\n </div>\r\n <div class=\"wc\" [hidden]=\"isWidgetStateApplicable\">\r\n <div #ctlWidget></div>\r\n </div>\r\n <div *ngIf=\"isWidgetStateApplicable\" class=\"defaultConfig\">\r\n <ra-widget-state style=\"width: 100%;height: 100%;\" [isWidgetStateApplicable]=\"isWidgetStateApplicable\"\r\n [isGlobalFilterApplied]=\"isGlobalFilterApplied\" [widgetEmptyState]=\"widgetEmptyState\"\r\n (editWidgetClicked)=editWidget() [widthCol]=\"width\" [heightCol]=\"height\">\r\n </ra-widget-state>\r\n </div>\r\n <div>\r\n </div>\r\n </div>\r\n</div>"
|
|
2783
2794
|
}] }
|
|
2784
2795
|
];
|
|
2785
2796
|
/** @nocollapse */
|
|
@@ -2893,6 +2904,8 @@
|
|
|
2893
2904
|
/** @type {?} */
|
|
2894
2905
|
RAWidgetContainer.prototype.showSettingsLink;
|
|
2895
2906
|
/** @type {?} */
|
|
2907
|
+
RAWidgetContainer.prototype.isKpiView;
|
|
2908
|
+
/** @type {?} */
|
|
2896
2909
|
RAWidgetContainer.prototype.ctlWidget;
|
|
2897
2910
|
/** @type {?} */
|
|
2898
2911
|
RAWidgetContainer.prototype.widgetDropdown;
|