@schneideress/dashboardframework 0.0.204 → 0.0.206

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.
@@ -1585,6 +1585,7 @@ var RAWidgetContainer = /** @class */ (function () {
1585
1585
  this.deleteToolTipWidth = '0px';
1586
1586
  this.noPadding = false;
1587
1587
  this.isMouseHover = false;
1588
+ this.showSettingsLink = true;
1588
1589
  this.widgetDeleted = new EventEmitter();
1589
1590
  this.isWidgetStateApplicable = false;
1590
1591
  this.widgetEmptyState = '';
@@ -2262,6 +2263,11 @@ var RAWidgetContainer = /** @class */ (function () {
2262
2263
  if (downloadType != RADownloadType.None) {
2263
2264
  this.isDownloadIconVisible = true;
2264
2265
  }
2266
+ else {
2267
+ if (!this.isWidgetMgmnt && !this.detailPageUrl) {
2268
+ this.showSettingsLink = false;
2269
+ }
2270
+ }
2265
2271
  if (downloadType == RADownloadType.Chart) {
2266
2272
  this.isChartDownloadVisible = true;
2267
2273
  }
@@ -2417,24 +2423,31 @@ var RAWidgetContainer = /** @class */ (function () {
2417
2423
  function (style) {
2418
2424
  /** @type {?} */
2419
2425
  var html = '<div id="ra-db-widget-menu"' + 'style="' + style + '" class="download-content dropdown-content widget-config-item dropdown-click" style="z-index: 1002;">';
2420
- html += '<div style="color: #9FA0A4;font-size: 12px;padding-top: 8px;padding-left: 12px;">';
2421
- html += this.translateService.translate('Common.settings') + '</div>';
2426
+ /** @type {?} */
2427
+ var settings = '';
2422
2428
  if (this.isWidgetMgmnt) {
2423
- html += this.getHtmlForButton('wcEditWidget', 'fal fa-edit', this.editText);
2424
- html += this.getHtmlForButton('wcCopyWidget', 'fal fa-copy', this.copyText);
2425
- html += this.getHtmlForButton('wcMoveWidget', 'fal fa-arrows-alt', this.moveText);
2429
+ settings += this.getHtmlForButton('wcEditWidget', 'fal fa-edit', this.editText);
2430
+ settings += this.getHtmlForButton('wcCopyWidget', 'fal fa-copy', this.copyText);
2431
+ settings += this.getHtmlForButton('wcMoveWidget', 'fal fa-arrows-alt', this.moveText);
2426
2432
  }
2427
2433
  if (this.detailPageUrl) {
2428
- html += '<a style="max-height: 30px;align-items: center;align-content: center; display: flex;" id="wcVisitWidget">';
2429
- html += '<i style="padding-left: 4px;font-size: 27px !important;" class="fal fa-angle-right"></i> ';
2430
- html += '<span style="padding-left: 11px;margin-top: 2px;" style="padding-left: 6px;">';
2431
- html += this.translateService.translate('Common.visitpage');
2432
- html += '</span></a>';
2434
+ settings += '<a style="max-height: 30px;align-items: center;align-content: center; display: flex;" id="wcVisitWidget">';
2435
+ settings += '<i style="padding-left: 4px;font-size: 27px !important;" class="fal fa-angle-right"></i> ';
2436
+ settings += '<span style="padding-left: 11px;margin-top: 2px;" style="padding-left: 6px;">';
2437
+ settings += this.translateService.translate('Common.visitpage');
2438
+ settings += '</span></a>';
2439
+ }
2440
+ if (this.detailPageUrl || this.isWidgetMgmnt) {
2441
+ html += '<div style="color: #9FA0A4;font-size: 12px;padding-top: 8px;padding-left: 12px;">';
2442
+ html += this.translateService.translate('Common.settings') + '</div>';
2443
+ html += settings;
2444
+ html += this.getHr();
2433
2445
  }
2434
- html += this.getHr();
2435
- ;
2436
2446
  if (this.isDownloadIconVisible) {
2437
- html += '<span style="color: #9FA0A4;font-size: 12px;">';
2447
+ if (this.detailPageUrl || this.isWidgetMgmnt)
2448
+ html += '<span style="color: #9FA0A4;font-size: 12px;">';
2449
+ else
2450
+ html += '<span style="color: #9FA0A4;font-size: 12px;padding-top:5px;display:block;">';
2438
2451
  html += this.translateService.translate('Common.downloads');
2439
2452
  html += '</span>';
2440
2453
  if (this.isChartDownloadVisible) {
@@ -2539,7 +2552,7 @@ var RAWidgetContainer = /** @class */ (function () {
2539
2552
  RAWidgetContainer.decorators = [
2540
2553
  { type: Component, args: [{
2541
2554
  selector: 'ra-widget-container',
2542
- 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;\" [ngClass]=\"{'widget-menu-show': isMouseHover}\">\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%;\" [isWidgetStateApplicable]=\"isWidgetStateApplicable\" [isGlobalFilterApplied]=\"isGlobalFilterApplied\"\r\n [widgetEmptyState]=\"widgetEmptyState\" (editWidgetClicked)=editWidget()>\r\n </ra-widget-state>\r\n </div>\r\n <div>\r\n </div>\r\n </div>\r\n</div>"
2555
+ 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;\" [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%;\" [isWidgetStateApplicable]=\"isWidgetStateApplicable\" [isGlobalFilterApplied]=\"isGlobalFilterApplied\"\r\n [widgetEmptyState]=\"widgetEmptyState\" (editWidgetClicked)=editWidget()>\r\n </ra-widget-state>\r\n </div>\r\n <div>\r\n </div>\r\n </div>\r\n</div>"
2543
2556
  }] }
2544
2557
  ];
2545
2558
  /** @nocollapse */
@@ -2651,6 +2664,8 @@ if (false) {
2651
2664
  /** @type {?} */
2652
2665
  RAWidgetContainer.prototype.isMouseHover;
2653
2666
  /** @type {?} */
2667
+ RAWidgetContainer.prototype.showSettingsLink;
2668
+ /** @type {?} */
2654
2669
  RAWidgetContainer.prototype.ctlWidget;
2655
2670
  /** @type {?} */
2656
2671
  RAWidgetContainer.prototype.widgetDropdown;