@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
|
@@ -1586,6 +1586,7 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
1586
1586
|
this.noPadding = false;
|
|
1587
1587
|
this.isMouseHover = false;
|
|
1588
1588
|
this.showSettingsLink = true;
|
|
1589
|
+
this.isKpiView = false;
|
|
1589
1590
|
this.widgetDeleted = new EventEmitter();
|
|
1590
1591
|
this.isWidgetStateApplicable = false;
|
|
1591
1592
|
this.widgetEmptyState = '';
|
|
@@ -1690,6 +1691,10 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
1690
1691
|
size.width = this.width;
|
|
1691
1692
|
size.cellHeight = this.gridCellHeight;
|
|
1692
1693
|
this.widgetElement.widgetResized(size);
|
|
1694
|
+
if (this.height == 1 || this.width == 1)
|
|
1695
|
+
this.isKpiView = true;
|
|
1696
|
+
else
|
|
1697
|
+
this.isKpiView = false;
|
|
1693
1698
|
}
|
|
1694
1699
|
};
|
|
1695
1700
|
/**
|
|
@@ -1958,7 +1963,12 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
1958
1963
|
*/
|
|
1959
1964
|
function () {
|
|
1960
1965
|
_this.setNotConfiguredState(widgetInfo);
|
|
1961
|
-
|
|
1966
|
+
/** @type {?} */
|
|
1967
|
+
var appModule = _this.data.widgetInfo.widgetName;
|
|
1968
|
+
if (_this.data.widgetInfo.applicationModule && _this.data.widgetInfo.applicationModule.length > 0) {
|
|
1969
|
+
appModule = _this.data.widgetInfo.applicationModule;
|
|
1970
|
+
}
|
|
1971
|
+
_this.translateService.loadTranslations(_this.appConfig.appManagementBaseUrl, appModule, false).then((/**
|
|
1962
1972
|
* @return {?}
|
|
1963
1973
|
*/
|
|
1964
1974
|
function () {
|
|
@@ -2008,9 +2018,6 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
2008
2018
|
* @return {?}
|
|
2009
2019
|
*/
|
|
2010
2020
|
function (e) {
|
|
2011
|
-
console.log("++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++");
|
|
2012
|
-
console.log(e);
|
|
2013
|
-
console.log(e.details);
|
|
2014
2021
|
if (e.detail == true)
|
|
2015
2022
|
_this.enableTitleLine = true;
|
|
2016
2023
|
else
|
|
@@ -2113,6 +2120,10 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
2113
2120
|
* @return {?}
|
|
2114
2121
|
*/
|
|
2115
2122
|
function (widgetState) {
|
|
2123
|
+
if (this.height == 1 || this.width == 1)
|
|
2124
|
+
this.isKpiView = true;
|
|
2125
|
+
else
|
|
2126
|
+
this.isKpiView = false;
|
|
2116
2127
|
this.widgetEmptyState = widgetState.widgetViewState;
|
|
2117
2128
|
this.isGlobalFilterApplied = widgetState.isGlobalFilterApplied;
|
|
2118
2129
|
if (widgetState != WidgetViewState.normal) {
|
|
@@ -2568,7 +2579,7 @@ var RAWidgetContainer = /** @class */ (function () {
|
|
|
2568
2579
|
RAWidgetContainer.decorators = [
|
|
2569
2580
|
{ type: Component, args: [{
|
|
2570
2581
|
selector: 'ra-widget-container',
|
|
2571
|
-
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;\"
|
|
2582
|
+
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>"
|
|
2572
2583
|
}] }
|
|
2573
2584
|
];
|
|
2574
2585
|
/** @nocollapse */
|
|
@@ -2682,6 +2693,8 @@ if (false) {
|
|
|
2682
2693
|
/** @type {?} */
|
|
2683
2694
|
RAWidgetContainer.prototype.showSettingsLink;
|
|
2684
2695
|
/** @type {?} */
|
|
2696
|
+
RAWidgetContainer.prototype.isKpiView;
|
|
2697
|
+
/** @type {?} */
|
|
2685
2698
|
RAWidgetContainer.prototype.ctlWidget;
|
|
2686
2699
|
/** @type {?} */
|
|
2687
2700
|
RAWidgetContainer.prototype.widgetDropdown;
|