@schneideress/dashboardframework 0.0.187 → 0.0.189

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.
@@ -1513,14 +1513,11 @@ var RAWidgetContainer = /** @class */ (function () {
1513
1513
  this.raPermissionService = raPermissionService;
1514
1514
  this.showPanel = true;
1515
1515
  this.isWidgetLoaded = false;
1516
- this.isIEOrEdge = /msie\s|trident\/|edge\//i.test(window.navigator.userAgent);
1517
1516
  this.lockClass = "unlocked";
1518
1517
  this.lockStatus = RaWidgetlockStatus.Unlocked;
1519
1518
  this.isDownloadIconVisible = false;
1520
1519
  this.isChartDownloadVisible = false;
1521
1520
  this.isGridDownloadVisible = false;
1522
- this.dropDownShown = false;
1523
- this.isDownloadChartVisible = false;
1524
1521
  this.enableTitleLine = false;
1525
1522
  this.isGlobalFilterApplied = false;
1526
1523
  this.toolTipValue = ' ';
@@ -1541,6 +1538,7 @@ var RAWidgetContainer = /** @class */ (function () {
1541
1538
  this.excelToolTipWidth = '0px';
1542
1539
  this.deleteToolTipWidth = '0px';
1543
1540
  this.noPadding = false;
1541
+ this.isMouseHover = false;
1544
1542
  this.widgetDeleted = new EventEmitter();
1545
1543
  this.isWidgetStateApplicable = false;
1546
1544
  this.widgetEmptyState = '';
@@ -1551,11 +1549,13 @@ var RAWidgetContainer = /** @class */ (function () {
1551
1549
  * @return {?}
1552
1550
  */
1553
1551
  function (e) {
1554
- if (e.target !== _this.widgetDropdown.nativeElement) {
1555
- _this.dropDownShown = false;
1552
+ if (e.target.className) {
1553
+ if (e.target.className != 'fal fa-ellipsis-v widget-menu-ellipse') {
1554
+ _this.removeMenu();
1555
+ }
1556
1556
  }
1557
- if (_this.widgetDownload && e.target !== _this.widgetDownload.nativeElement) {
1558
- _this.isDownloadChartVisible = false;
1557
+ else {
1558
+ _this.removeMenu();
1559
1559
  }
1560
1560
  }));
1561
1561
  }
@@ -1645,6 +1645,7 @@ var RAWidgetContainer = /** @class */ (function () {
1645
1645
  */
1646
1646
  function (isHover) {
1647
1647
  if (isHover === void 0) { isHover = true; }
1648
+ this.isMouseHover = isHover;
1648
1649
  if (this.widgetElement) {
1649
1650
  if (typeof this.widgetElement.hoverStatus === "function") {
1650
1651
  this.widgetElement.hoverStatus(isHover);
@@ -1653,9 +1654,6 @@ var RAWidgetContainer = /** @class */ (function () {
1653
1654
  console.warn('widget framework outdated, please update to version 0.0.96');
1654
1655
  }
1655
1656
  }
1656
- if (!isHover) {
1657
- this.hideDropDown();
1658
- }
1659
1657
  };
1660
1658
  /**
1661
1659
  * @return {?}
@@ -1671,6 +1669,39 @@ var RAWidgetContainer = /** @class */ (function () {
1671
1669
  function () {
1672
1670
  _this.loadWidget(_this.data.widgetInfo);
1673
1671
  }));
1672
+ document.addEventListener("scroll", (/**
1673
+ * @return {?}
1674
+ */
1675
+ function () {
1676
+ _this.removeMenu();
1677
+ }));
1678
+ setTimeout((/**
1679
+ * @return {?}
1680
+ */
1681
+ function () {
1682
+ /** @type {?} */
1683
+ var item = jQuery(_this.wcWrapper.nativeElement).closest('gridster-item');
1684
+ item.bind('mouseenter', (/**
1685
+ * @return {?}
1686
+ */
1687
+ function () {
1688
+ window.gridsterItemEnter = true;
1689
+ }));
1690
+ item.bind('mouseleave', (/**
1691
+ * @return {?}
1692
+ */
1693
+ function () {
1694
+ window.gridsterItemEnter = false;
1695
+ setTimeout((/**
1696
+ * @return {?}
1697
+ */
1698
+ function () {
1699
+ if (!window.mouseOverWidgetMenu) {
1700
+ _this.removeMenu();
1701
+ }
1702
+ }));
1703
+ }));
1704
+ }));
1674
1705
  };
1675
1706
  /**
1676
1707
  * @return {?}
@@ -2076,8 +2107,6 @@ var RAWidgetContainer = /** @class */ (function () {
2076
2107
  widgetInfo: widgetInfo,
2077
2108
  configChanges: this.getConfigChanges(configChanged)
2078
2109
  }));
2079
- console.log('wiget container filter data is');
2080
- console.log(widgetConfigFilter);
2081
2110
  if (!widgetContainerContext.isWidgetLoaded) return [3 /*break*/, 3];
2082
2111
  if (this.widgetElement && typeof (this.widgetElement.setConfigFilter) == 'function') {
2083
2112
  widgetContainerContext.widgetElement.setConfigFilter(widgetConfigFilter);
@@ -2188,48 +2217,11 @@ var RAWidgetContainer = /** @class */ (function () {
2188
2217
  });
2189
2218
  });
2190
2219
  };
2191
- // public downloadClicked() {
2192
- // switch (this.downloadIconType) {
2193
- // case RADownloadType.Grid:
2194
- // this.downloadIconClicked('CSV');
2195
- // break;
2196
- // case RADownloadType.Chart:
2197
- // this.isDownloadChartVisible = true;
2198
- // break;
2199
- // case RADownloadType.Custom:
2200
- // break;
2201
- // }
2202
- // }
2203
- // public downloadClicked() {
2204
- // switch (this.downloadIconType) {
2205
- // case RADownloadType.Grid:
2206
- // this.downloadIconClicked('CSV');
2207
- // break;
2208
- // case RADownloadType.Chart:
2209
- // this.isDownloadChartVisible = true;
2210
- // break;
2211
- // case RADownloadType.Custom:
2212
- // break;
2213
- // }
2214
- // }
2215
2220
  /**
2216
2221
  * @param {?} type
2217
2222
  * @return {?}
2218
2223
  */
2219
- RAWidgetContainer.prototype.downloadIconClicked =
2220
- // public downloadClicked() {
2221
- // switch (this.downloadIconType) {
2222
- // case RADownloadType.Grid:
2223
- // this.downloadIconClicked('CSV');
2224
- // break;
2225
- // case RADownloadType.Chart:
2226
- // this.isDownloadChartVisible = true;
2227
- // break;
2228
- // case RADownloadType.Custom:
2229
- // break;
2230
- // }
2231
- // }
2232
- /**
2224
+ RAWidgetContainer.prototype.downloadIconClicked = /**
2233
2225
  * @param {?} type
2234
2226
  * @return {?}
2235
2227
  */
@@ -2252,33 +2244,199 @@ var RAWidgetContainer = /** @class */ (function () {
2252
2244
  break;
2253
2245
  }
2254
2246
  };
2247
+ /**
2248
+ * @private
2249
+ * @return {?}
2250
+ */
2251
+ RAWidgetContainer.prototype.removeMenu = /**
2252
+ * @private
2253
+ * @return {?}
2254
+ */
2255
+ function () {
2256
+ jQuery('#ra-db-widget-menu').remove();
2257
+ };
2255
2258
  /**Show dropdown on gear icon click */
2256
2259
  /**
2257
2260
  * Show dropdown on gear icon click
2261
+ * @param {?} e
2258
2262
  * @return {?}
2259
2263
  */
2260
2264
  RAWidgetContainer.prototype.showDropDown = /**
2261
2265
  * Show dropdown on gear icon click
2266
+ * @param {?} e
2262
2267
  * @return {?}
2263
2268
  */
2264
- function () {
2269
+ function (e) {
2270
+ var _this = this;
2265
2271
  this.setDownloadIcon();
2266
- this.dropDownShown = !this.dropDownShown;
2272
+ this.removeMenu();
2273
+ setTimeout((/**
2274
+ * @return {?}
2275
+ */
2276
+ function () {
2277
+ /** @type {?} */
2278
+ var targetPos = e.target.getBoundingClientRect();
2279
+ /** @type {?} */
2280
+ var style = "position:fixed;top:" + (targetPos.y + 15) + 'px' + ';left:' + (e.pageX - 122) + 'px;z-index:1000;';
2281
+ /** @type {?} */
2282
+ var html = _this.getContenxtHtml(style);
2283
+ jQuery(html).appendTo('body');
2284
+ if (_this.isWidgetMgmnt) {
2285
+ _this.addEventListener('wcEditWidget', _this.editWidget);
2286
+ _this.addEventListener('wcCopyWidget', _this.copyWidget);
2287
+ _this.addEventListener('wcMoveWidget', _this.moveWidget);
2288
+ _this.addEventListener('wcWidgetDelete', _this.deleteWidget);
2289
+ }
2290
+ if (_this.detailPageUrl) {
2291
+ _this.addEventListener('wcVisitWidget', _this.visitPage);
2292
+ }
2293
+ if (_this.isChartDownloadVisible) {
2294
+ _this.addEventListener('wcDownloadPng', _this.downloadIconClicked, 'PNG');
2295
+ _this.addEventListener('wcDownloadJpg', _this.downloadIconClicked, 'JPEG');
2296
+ _this.addEventListener('wcDownloadPdf', _this.downloadIconClicked, 'PDF');
2297
+ _this.addEventListener('wcDownloadSvg', _this.downloadIconClicked, 'SVG');
2298
+ }
2299
+ if (_this.isGridDownloadVisible) {
2300
+ _this.addEventListener('wcDownloadExcel', _this.downloadIconClicked, 'CSV');
2301
+ }
2302
+ document.getElementById('ra-db-widget-menu').addEventListener('mouseenter', (/**
2303
+ * @return {?}
2304
+ */
2305
+ function () {
2306
+ window.mouseOverWidgetMenu = true;
2307
+ }));
2308
+ document.getElementById('ra-db-widget-menu').addEventListener('mouseleave', (/**
2309
+ * @return {?}
2310
+ */
2311
+ function () {
2312
+ window.mouseOverWidgetMenu = false;
2313
+ setTimeout((/**
2314
+ * @return {?}
2315
+ */
2316
+ function () {
2317
+ if (!window.gridsterItemEnter) {
2318
+ _this.removeMenu();
2319
+ }
2320
+ }));
2321
+ }));
2322
+ }));
2267
2323
  };
2268
- /**Hide dropdown on outside click */
2269
2324
  /**
2270
- * Hide dropdown on outside click
2325
+ * @private
2326
+ * @param {?} id
2327
+ * @param {?} event
2328
+ * @param {?=} params
2271
2329
  * @return {?}
2272
2330
  */
2273
- RAWidgetContainer.prototype.hideDropDown = /**
2274
- * Hide dropdown on outside click
2331
+ RAWidgetContainer.prototype.addEventListener = /**
2332
+ * @private
2333
+ * @param {?} id
2334
+ * @param {?} event
2335
+ * @param {?=} params
2275
2336
  * @return {?}
2276
2337
  */
2277
- function () {
2278
- if (this.dropDownShown) {
2279
- this.dropDownShown = false;
2338
+ function (id, event, params) {
2339
+ var _this = this;
2340
+ /** @type {?} */
2341
+ var element = document.getElementById(id);
2342
+ if (element) {
2343
+ element.addEventListener('click', (/**
2344
+ * @return {?}
2345
+ */
2346
+ function () {
2347
+ event.call(_this, params);
2348
+ }));
2280
2349
  }
2281
- this.isDownloadChartVisible = false;
2350
+ };
2351
+ /**
2352
+ * @private
2353
+ * @param {?} style
2354
+ * @return {?}
2355
+ */
2356
+ RAWidgetContainer.prototype.getContenxtHtml = /**
2357
+ * @private
2358
+ * @param {?} style
2359
+ * @return {?}
2360
+ */
2361
+ function (style) {
2362
+ /** @type {?} */
2363
+ var html = '<div id="ra-db-widget-menu"' + 'style="' + style + '" class="download-content dropdown-content widget-config-item dropdown-click" style="z-index: 1002;">';
2364
+ html += '<div style="color: #9FA0A4;font-size: 12px;padding-top: 8px;padding-left: 12px;">';
2365
+ html += this.translateService.translate('Common.settings') + '</div>';
2366
+ if (this.isWidgetMgmnt) {
2367
+ html += this.getHtmlForButton('wcEditWidget', 'fal fa-edit', this.editText);
2368
+ html += this.getHtmlForButton('wcCopyWidget', 'fal fa-copy', this.copyText);
2369
+ html += this.getHtmlForButton('wcMoveWidget', 'fal fa-arrows-alt', this.moveText);
2370
+ }
2371
+ if (this.detailPageUrl) {
2372
+ html += '<a style="max-height: 30px;align-items: center;align-content: center; display: flex;" id="wcVisitWidget">';
2373
+ html += '<i style="padding-left: 4px;font-size: 27px !important;" class="fal fa-angle-right"></i> ';
2374
+ html += '<span style="padding-left: 11px;margin-top: 2px;" style="padding-left: 6px;">';
2375
+ html += this.translateService.translate('Common.visitpage');
2376
+ html += '</span></a>';
2377
+ }
2378
+ html += this.getHr();
2379
+ ;
2380
+ if (this.isDownloadIconVisible) {
2381
+ html += '<span style="color: #9FA0A4;font-size: 12px;">';
2382
+ html += this.translateService.translate('Common.downloads');
2383
+ html += '</span>';
2384
+ if (this.isChartDownloadVisible) {
2385
+ html += '<div style="padding-top: 10px;" class="chartDownload">';
2386
+ html += this.getHtmlForButton('wcDownloadPng', 'fal fa-file-image', this.translateService.translate('Common.png'));
2387
+ html += this.getHtmlForButton('wcDownloadJpg', 'fal fa-file-image', this.translateService.translate('Common.jpeg'));
2388
+ html += this.getHtmlForButton('wcDownloadPdf', 'fal fa-file-pdf', this.translateService.translate('Common.pdf'));
2389
+ html += this.getHtmlForButton('wcDownloadSvg', 'fal fa-file-alt', this.translateService.translate('Common.svg'));
2390
+ html += '</div>';
2391
+ }
2392
+ if (this.isGridDownloadVisible) {
2393
+ html += '<div class="gridDownload">';
2394
+ html += this.getHtmlForButton('wcDownloadExcel', 'fal fa-download', this.excelText);
2395
+ html += '</div>';
2396
+ }
2397
+ if (this.isDownloadIconVisible && this.isWidgetMgmnt) {
2398
+ html += this.getHr();
2399
+ }
2400
+ if (this.isWidgetMgmnt) {
2401
+ html += '<a id="wcWidgetDelete"><i class="fal fa-times" style="padding-left: 3px;color: red;"></i><span>';
2402
+ html += this.deleteText;
2403
+ html += '</span></a>';
2404
+ }
2405
+ }
2406
+ html += '</div>';
2407
+ return html;
2408
+ };
2409
+ /**
2410
+ * @private
2411
+ * @return {?}
2412
+ */
2413
+ RAWidgetContainer.prototype.getHr = /**
2414
+ * @private
2415
+ * @return {?}
2416
+ */
2417
+ function () {
2418
+ return '<hr class="hr" style="margin-top: 5px;margin-bottom: 5px;">';
2419
+ };
2420
+ /**
2421
+ * @private
2422
+ * @param {?} id
2423
+ * @param {?} fontClass
2424
+ * @param {?} text
2425
+ * @return {?}
2426
+ */
2427
+ RAWidgetContainer.prototype.getHtmlForButton = /**
2428
+ * @private
2429
+ * @param {?} id
2430
+ * @param {?} fontClass
2431
+ * @param {?} text
2432
+ * @return {?}
2433
+ */
2434
+ function (id, fontClass, text) {
2435
+ /** @type {?} */
2436
+ var html = '<a id="' + id + '"><i style="width:16px" class="' + fontClass + '"></i> <span style="padding-left: 6px;">';
2437
+ html += text;
2438
+ html += '</span></a>';
2439
+ return html;
2282
2440
  };
2283
2441
  /**
2284
2442
  * @private
@@ -2325,8 +2483,7 @@ var RAWidgetContainer = /** @class */ (function () {
2325
2483
  RAWidgetContainer.decorators = [
2326
2484
  { type: Component, args: [{
2327
2485
  selector: 'ra-widget-container',
2328
- template: "<div 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>{{data.widgetInfo.widgetTitle}}</div>\r\n </ra-tooltip>\r\n </div>\r\n\r\n\r\n <div class=\"col-md-2\" style=\"cursor:default;padding-right: 0px;\">\r\n <div class=\"float-right\" style=\"display: flex;\">\r\n\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=\"dropdown\" style=\"width:10px;\">\r\n <div class=\"dropbtn title-bar-icon\">\r\n <i (click)=\"showDropDown()\" #widgetDropdown class=\"fal fa-ellipsis-v\"></i>\r\n </div>\r\n <div class=\"download-content dropdown-content widget-config-item\"\r\n [ngClass]=\"{'dropdown-click': dropDownShown}\" style=\"z-index: 1002;\">\r\n\r\n <div style=\"color: #9FA0A4;font-size: 12px;padding-top: 8px;padding-left: 12px;\">\r\n {{'Common.settings'|translate}}</div>\r\n\r\n <a style=\"padding-top: 10px;\" (click)=\"editWidget()\" *ngIf=\"isWidgetMgmnt\">\r\n <ra-tooltip [value]=\"editToolTipValue\" [width]=\"editToolTipWidth\">\r\n <i class=\"fal fa-edit\"></i>\r\n <span style=\"padding-left: 6px;\">{{editText}}</span>\r\n </ra-tooltip>\r\n </a>\r\n <a (click)=\"copyWidget()\" *ngIf=\"isWidgetMgmnt\">\r\n <ra-tooltip [value]=\"copyToolTipValue\" [width]=\"copyToolTipWidth\">\r\n <i class=\"fal fa-copy\"></i>\r\n <span style=\"padding-left: 10px;\">{{copyText}}</span>\r\n </ra-tooltip>\r\n </a>\r\n <a (click)=\"moveWidget()\" *ngIf=\"isWidgetMgmnt\">\r\n <ra-tooltip [value]=\"moveToolTipValue\" [width]=\"moveToolTipWidth\">\r\n <i class=\"fal fa-arrows-alt\"></i>\r\n <span style=\"padding-left: 9px;\">{{moveText}}</span>\r\n </ra-tooltip>\r\n </a>\r\n <a *ngIf=\"detailPageUrl\" (click)=\"visitPage()\"\r\n style=\"max-height: 30px;align-items: center;align-content: center; display: flex;\">\r\n <i style=\"padding-left: 4px;font-size: 27px !important;\" class=\"fal fa-angle-right\"></i>\r\n <span style=\"padding-left: 11px;margin-top: 2px;\">{{'Common.visitpage'|translate}}</span>\r\n </a>\r\n <hr class=\"hr\" style=\"padding-bottom: 9px;\">\r\n <span style=\"color: #9FA0A4;font-size: 12px;\"\r\n *ngIf=\"isDownloadIconVisible\">{{'Common.downloads'|translate}}</span>\r\n <div *ngIf=\"isChartDownloadVisible\" style=\"padding-top: 10px;\" class=\"chartDownload\">\r\n <a (click)=\"downloadIconClicked('PNG')\">\r\n <i class=\"fal fa-file-image\"></i>\r\n <span>{{'Common.png'|translate}}</span>\r\n </a>\r\n <a (click)=\"downloadIconClicked('JPEG')\">\r\n <i class=\"fal fa-file-image\"></i>\r\n <span>{{'Common.jpeg'|translate}}</span>\r\n </a>\r\n <a (click)=\"downloadIconClicked('PDF')\">\r\n <i class=\"fal fa-file-pdf\"></i>\r\n <span>{{'Common.pdf'|translate}}</span>\r\n </a>\r\n <a (click)=\"downloadIconClicked('SVG')\">\r\n <i class=\"fal fa-file-alt\"></i>\r\n <span>{{'Common.svg'|translate}}</span>\r\n </a>\r\n </div>\r\n <div *ngIf=\"isGridDownloadVisible\" class=\"gridDownload\">\r\n <a (click)=\"downloadIconClicked('CSV')\">\r\n <ra-tooltip [value]=\"excelToolTipValue\" [width]=\"excelToolTipWidth\">\r\n <i class=\"fal fa-download\"></i>\r\n <span>{{excelText}}</span>\r\n </ra-tooltip>\r\n </a>\r\n </div>\r\n <hr *ngIf=\"isDownloadIconVisible && isWidgetMgmnt\" class=\"hr\">\r\n <a (click)=\"deleteWidget()\" *ngIf=\"isWidgetMgmnt\">\r\n <ra-tooltip [value]=\"deleteToolTipValue\" [width]=\"deleteToolTipWidth\">\r\n <i class=\"fal fa-times\" style=\"padding-left: 3px;color: red;\"></i>\r\n <span>{{deleteText}}</span>\r\n </ra-tooltip>\r\n </a>\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>",
2329
- styles: [".sp_icon{float:left;margin:0 15% 0 0}.dropbtn{color:#42b4e6;text-align:right;height:100%}.dropbtn i{cursor:pointer;width:100%;height:100%}.dropdown{visibility:hidden;opacity:0;transition:visibility,opacity .5s linear;position:relative;width:100%}@media screen and (max-width:400px){.dropdown{visibility:visible;opacity:1}}.dropdown hr{margin:0!important}.dropdown-content{display:none;position:absolute;right:0;background-color:#fff;min-width:100px;box-shadow:0 8px 16px 8px rgba(0,0,0,.2);z-index:2;font-size:12px;font-weight:400;width:122px}.dropdown-content a{color:#000;padding:5px 16px;text-decoration:none;display:block;cursor:pointer}.wc{height:100%}.defaultConfig{height:100%;display:flex;align-items:center}.defaultConfig .button{min-height:34px;font-size:13px;width:100%;min-height:34px;color:#fff;display:table;margin:9px 0 0;cursor:pointer;text-align:center;float:left}.defaultConfig .contentarea{width:80%;margin:0 auto;float:left;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}.defaultConfig .textarea{width:100%;float:left}.defaultConfig .textarea .icon{width:52px;height:100%;float:left}.defaultConfig .textarea .error-view{color:#dc0a0a}.defaultConfig .textarea .empty-data{color:#5ab5e6}.defaultConfig .textarea .text{width:calc(100% - 52px);min-height:60px;float:left;font-size:14px;text-align:left}.defaultConfig .textarea .icon i{font-size:40px!important}.configuretext{display:table-cell;vertical-align:middle;height:34px}.dropdown-content a:hover{background-color:#f1f1f1}.lockInvisible{margin-right:-17px}.dropdown-click{display:block!important;-webkit-animation:.3s ease-out slide-down;animation:.3s ease-out slide-down}.download-icon{cursor:pointer}.dropdown:hover .dropdown-content{color:#fff}.title-bar-lock-icon{margin:0 3px}.hr{border:0;border-top:1px solid rgba(0,0,0,.1)}.settingstyle{color:#9fa0a4;font-size:12px}@-webkit-keyframes slide-down{0%{opacity:0;transform:translateY(-20%)}100%{opacity:1;transform:translateY(0)}}@keyframes slide-down{0%{opacity:0;transform:translateY(-20%)}100%{opacity:1;transform:translateY(0)}}.widget-config-item i{font-size:17px;color:#42b4e6}.widget-config-item span{font-size:12px;font:inherit;padding-left:12px;color:#42b4e6}.lock{color:#42b4e6}.locked{color:#42b4e6;background:#fff}.partiallocked{color:#a0d9f2}.unlocked{display:none}.download{visibility:hidden;opacity:0;transition:visibility,opacity .5s linear;position:relative}.wc-wrapper:hover .download{visibility:visible;opacity:1}.download-content a{color:#000;padding:5px 16px;text-decoration:none;display:block;cursor:pointer}.download-content a:hover{background-color:#f1f1f1}.download-content a i{font-size:17px;color:#42b4e6}.download-content a span{font-size:12px;font:inherit;padding-left:12px;color:#42b4e6}.title-label{width:96%;padding-left:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.lock-dropdown{transition:visibility,opacity .5s linear;position:relative;display:inline-block;margin:0 6px 0 10px}.lock-dropdown-content{display:none;margin-top:8px;position:absolute;right:0;top:79%;box-shadow:0 8px 16px 8px rgba(0,0,0,.2);z-index:899;font-size:12px;min-width:220px!important;min-height:112px;background-color:#219bfd;opacity:.9;padding:15px;color:#fff}.lock-dropdown-content hr{border-bottom:1px solid #fff}.lock-dropdown:hover .lock-dropdown-content{display:block!important;-webkit-animation:.3s ease-out slide-down;animation:.3s ease-out slide-down}"]
2486
+ 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>{{data.widgetInfo.widgetTitle}}</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>"
2330
2487
  }] }
2331
2488
  ];
2332
2489
  /** @nocollapse */
@@ -2342,8 +2499,8 @@ var RAWidgetContainer = /** @class */ (function () {
2342
2499
  RAWidgetContainer.propDecorators = {
2343
2500
  ctlWidget: [{ type: ViewChild, args: ['ctlWidget', { static: false },] }],
2344
2501
  widgetDropdown: [{ type: ViewChild, args: ['widgetDropdown', { static: false },] }],
2345
- widgetDownload: [{ type: ViewChild, args: ['widgetDownload', { static: false },] }],
2346
2502
  searchInput: [{ type: ViewChild, args: ['searchInput', { static: false },] }],
2503
+ wcWrapper: [{ type: ViewChild, args: ['wcWrapper', { static: false },] }],
2347
2504
  widgetInstanceId: [{ type: Input, args: ['widget-instance-id',] }],
2348
2505
  globalFilter: [{ type: Input, args: ['global-filter',] }],
2349
2506
  data: [{ type: Input, args: ['data',] }],
@@ -2375,11 +2532,6 @@ if (false) {
2375
2532
  * @private
2376
2533
  */
2377
2534
  RAWidgetContainer.prototype.configChanged;
2378
- /**
2379
- * @type {?}
2380
- * @private
2381
- */
2382
- RAWidgetContainer.prototype.isIEOrEdge;
2383
2535
  /** @type {?} */
2384
2536
  RAWidgetContainer.prototype.widgetHeight;
2385
2537
  /** @type {?} */
@@ -2393,10 +2545,6 @@ if (false) {
2393
2545
  /** @type {?} */
2394
2546
  RAWidgetContainer.prototype.isGridDownloadVisible;
2395
2547
  /** @type {?} */
2396
- RAWidgetContainer.prototype.dropDownShown;
2397
- /** @type {?} */
2398
- RAWidgetContainer.prototype.isDownloadChartVisible;
2399
- /** @type {?} */
2400
2548
  RAWidgetContainer.prototype.downloadIconType;
2401
2549
  /** @type {?} */
2402
2550
  RAWidgetContainer.prototype.enableTitleLine;
@@ -2445,14 +2593,16 @@ if (false) {
2445
2593
  /** @type {?} */
2446
2594
  RAWidgetContainer.prototype.noPadding;
2447
2595
  /** @type {?} */
2596
+ RAWidgetContainer.prototype.isMouseHover;
2597
+ /** @type {?} */
2448
2598
  RAWidgetContainer.prototype.ctlWidget;
2449
2599
  /** @type {?} */
2450
2600
  RAWidgetContainer.prototype.widgetDropdown;
2451
2601
  /** @type {?} */
2452
- RAWidgetContainer.prototype.widgetDownload;
2453
- /** @type {?} */
2454
2602
  RAWidgetContainer.prototype.searchInput;
2455
2603
  /** @type {?} */
2604
+ RAWidgetContainer.prototype.wcWrapper;
2605
+ /** @type {?} */
2456
2606
  RAWidgetContainer.prototype.widgetInstanceId;
2457
2607
  /** @type {?} */
2458
2608
  RAWidgetContainer.prototype.globalFilter;