@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.
@@ -1719,14 +1719,11 @@
1719
1719
  this.raPermissionService = raPermissionService;
1720
1720
  this.showPanel = true;
1721
1721
  this.isWidgetLoaded = false;
1722
- this.isIEOrEdge = /msie\s|trident\/|edge\//i.test(window.navigator.userAgent);
1723
1722
  this.lockClass = "unlocked";
1724
1723
  this.lockStatus = widgetframework.RaWidgetlockStatus.Unlocked;
1725
1724
  this.isDownloadIconVisible = false;
1726
1725
  this.isChartDownloadVisible = false;
1727
1726
  this.isGridDownloadVisible = false;
1728
- this.dropDownShown = false;
1729
- this.isDownloadChartVisible = false;
1730
1727
  this.enableTitleLine = false;
1731
1728
  this.isGlobalFilterApplied = false;
1732
1729
  this.toolTipValue = ' ';
@@ -1747,6 +1744,7 @@
1747
1744
  this.excelToolTipWidth = '0px';
1748
1745
  this.deleteToolTipWidth = '0px';
1749
1746
  this.noPadding = false;
1747
+ this.isMouseHover = false;
1750
1748
  this.widgetDeleted = new core.EventEmitter();
1751
1749
  this.isWidgetStateApplicable = false;
1752
1750
  this.widgetEmptyState = '';
@@ -1757,11 +1755,13 @@
1757
1755
  * @return {?}
1758
1756
  */
1759
1757
  function (e) {
1760
- if (e.target !== _this.widgetDropdown.nativeElement) {
1761
- _this.dropDownShown = false;
1758
+ if (e.target.className) {
1759
+ if (e.target.className != 'fal fa-ellipsis-v widget-menu-ellipse') {
1760
+ _this.removeMenu();
1761
+ }
1762
1762
  }
1763
- if (_this.widgetDownload && e.target !== _this.widgetDownload.nativeElement) {
1764
- _this.isDownloadChartVisible = false;
1763
+ else {
1764
+ _this.removeMenu();
1765
1765
  }
1766
1766
  }));
1767
1767
  }
@@ -1851,6 +1851,7 @@
1851
1851
  */
1852
1852
  function (isHover) {
1853
1853
  if (isHover === void 0) { isHover = true; }
1854
+ this.isMouseHover = isHover;
1854
1855
  if (this.widgetElement) {
1855
1856
  if (typeof this.widgetElement.hoverStatus === "function") {
1856
1857
  this.widgetElement.hoverStatus(isHover);
@@ -1859,9 +1860,6 @@
1859
1860
  console.warn('widget framework outdated, please update to version 0.0.96');
1860
1861
  }
1861
1862
  }
1862
- if (!isHover) {
1863
- this.hideDropDown();
1864
- }
1865
1863
  };
1866
1864
  /**
1867
1865
  * @return {?}
@@ -1877,6 +1875,39 @@
1877
1875
  function () {
1878
1876
  _this.loadWidget(_this.data.widgetInfo);
1879
1877
  }));
1878
+ document.addEventListener("scroll", (/**
1879
+ * @return {?}
1880
+ */
1881
+ function () {
1882
+ _this.removeMenu();
1883
+ }));
1884
+ setTimeout((/**
1885
+ * @return {?}
1886
+ */
1887
+ function () {
1888
+ /** @type {?} */
1889
+ var item = jQuery(_this.wcWrapper.nativeElement).closest('gridster-item');
1890
+ item.bind('mouseenter', (/**
1891
+ * @return {?}
1892
+ */
1893
+ function () {
1894
+ window.gridsterItemEnter = true;
1895
+ }));
1896
+ item.bind('mouseleave', (/**
1897
+ * @return {?}
1898
+ */
1899
+ function () {
1900
+ window.gridsterItemEnter = false;
1901
+ setTimeout((/**
1902
+ * @return {?}
1903
+ */
1904
+ function () {
1905
+ if (!window.mouseOverWidgetMenu) {
1906
+ _this.removeMenu();
1907
+ }
1908
+ }));
1909
+ }));
1910
+ }));
1880
1911
  };
1881
1912
  /**
1882
1913
  * @return {?}
@@ -2282,8 +2313,6 @@
2282
2313
  widgetInfo: widgetInfo,
2283
2314
  configChanges: this.getConfigChanges(configChanged)
2284
2315
  }));
2285
- console.log('wiget container filter data is');
2286
- console.log(widgetConfigFilter);
2287
2316
  if (!widgetContainerContext.isWidgetLoaded) return [3 /*break*/, 3];
2288
2317
  if (this.widgetElement && typeof (this.widgetElement.setConfigFilter) == 'function') {
2289
2318
  widgetContainerContext.widgetElement.setConfigFilter(widgetConfigFilter);
@@ -2394,48 +2423,11 @@
2394
2423
  });
2395
2424
  });
2396
2425
  };
2397
- // public downloadClicked() {
2398
- // switch (this.downloadIconType) {
2399
- // case RADownloadType.Grid:
2400
- // this.downloadIconClicked('CSV');
2401
- // break;
2402
- // case RADownloadType.Chart:
2403
- // this.isDownloadChartVisible = true;
2404
- // break;
2405
- // case RADownloadType.Custom:
2406
- // break;
2407
- // }
2408
- // }
2409
- // public downloadClicked() {
2410
- // switch (this.downloadIconType) {
2411
- // case RADownloadType.Grid:
2412
- // this.downloadIconClicked('CSV');
2413
- // break;
2414
- // case RADownloadType.Chart:
2415
- // this.isDownloadChartVisible = true;
2416
- // break;
2417
- // case RADownloadType.Custom:
2418
- // break;
2419
- // }
2420
- // }
2421
2426
  /**
2422
2427
  * @param {?} type
2423
2428
  * @return {?}
2424
2429
  */
2425
- RAWidgetContainer.prototype.downloadIconClicked =
2426
- // public downloadClicked() {
2427
- // switch (this.downloadIconType) {
2428
- // case RADownloadType.Grid:
2429
- // this.downloadIconClicked('CSV');
2430
- // break;
2431
- // case RADownloadType.Chart:
2432
- // this.isDownloadChartVisible = true;
2433
- // break;
2434
- // case RADownloadType.Custom:
2435
- // break;
2436
- // }
2437
- // }
2438
- /**
2430
+ RAWidgetContainer.prototype.downloadIconClicked = /**
2439
2431
  * @param {?} type
2440
2432
  * @return {?}
2441
2433
  */
@@ -2458,33 +2450,199 @@
2458
2450
  break;
2459
2451
  }
2460
2452
  };
2453
+ /**
2454
+ * @private
2455
+ * @return {?}
2456
+ */
2457
+ RAWidgetContainer.prototype.removeMenu = /**
2458
+ * @private
2459
+ * @return {?}
2460
+ */
2461
+ function () {
2462
+ jQuery('#ra-db-widget-menu').remove();
2463
+ };
2461
2464
  /**Show dropdown on gear icon click */
2462
2465
  /**
2463
2466
  * Show dropdown on gear icon click
2467
+ * @param {?} e
2464
2468
  * @return {?}
2465
2469
  */
2466
2470
  RAWidgetContainer.prototype.showDropDown = /**
2467
2471
  * Show dropdown on gear icon click
2472
+ * @param {?} e
2468
2473
  * @return {?}
2469
2474
  */
2470
- function () {
2475
+ function (e) {
2476
+ var _this = this;
2471
2477
  this.setDownloadIcon();
2472
- this.dropDownShown = !this.dropDownShown;
2478
+ this.removeMenu();
2479
+ setTimeout((/**
2480
+ * @return {?}
2481
+ */
2482
+ function () {
2483
+ /** @type {?} */
2484
+ var targetPos = e.target.getBoundingClientRect();
2485
+ /** @type {?} */
2486
+ var style = "position:fixed;top:" + (targetPos.y + 15) + 'px' + ';left:' + (e.pageX - 122) + 'px;z-index:1000;';
2487
+ /** @type {?} */
2488
+ var html = _this.getContenxtHtml(style);
2489
+ jQuery(html).appendTo('body');
2490
+ if (_this.isWidgetMgmnt) {
2491
+ _this.addEventListener('wcEditWidget', _this.editWidget);
2492
+ _this.addEventListener('wcCopyWidget', _this.copyWidget);
2493
+ _this.addEventListener('wcMoveWidget', _this.moveWidget);
2494
+ _this.addEventListener('wcWidgetDelete', _this.deleteWidget);
2495
+ }
2496
+ if (_this.detailPageUrl) {
2497
+ _this.addEventListener('wcVisitWidget', _this.visitPage);
2498
+ }
2499
+ if (_this.isChartDownloadVisible) {
2500
+ _this.addEventListener('wcDownloadPng', _this.downloadIconClicked, 'PNG');
2501
+ _this.addEventListener('wcDownloadJpg', _this.downloadIconClicked, 'JPEG');
2502
+ _this.addEventListener('wcDownloadPdf', _this.downloadIconClicked, 'PDF');
2503
+ _this.addEventListener('wcDownloadSvg', _this.downloadIconClicked, 'SVG');
2504
+ }
2505
+ if (_this.isGridDownloadVisible) {
2506
+ _this.addEventListener('wcDownloadExcel', _this.downloadIconClicked, 'CSV');
2507
+ }
2508
+ document.getElementById('ra-db-widget-menu').addEventListener('mouseenter', (/**
2509
+ * @return {?}
2510
+ */
2511
+ function () {
2512
+ window.mouseOverWidgetMenu = true;
2513
+ }));
2514
+ document.getElementById('ra-db-widget-menu').addEventListener('mouseleave', (/**
2515
+ * @return {?}
2516
+ */
2517
+ function () {
2518
+ window.mouseOverWidgetMenu = false;
2519
+ setTimeout((/**
2520
+ * @return {?}
2521
+ */
2522
+ function () {
2523
+ if (!window.gridsterItemEnter) {
2524
+ _this.removeMenu();
2525
+ }
2526
+ }));
2527
+ }));
2528
+ }));
2473
2529
  };
2474
- /**Hide dropdown on outside click */
2475
2530
  /**
2476
- * Hide dropdown on outside click
2531
+ * @private
2532
+ * @param {?} id
2533
+ * @param {?} event
2534
+ * @param {?=} params
2477
2535
  * @return {?}
2478
2536
  */
2479
- RAWidgetContainer.prototype.hideDropDown = /**
2480
- * Hide dropdown on outside click
2537
+ RAWidgetContainer.prototype.addEventListener = /**
2538
+ * @private
2539
+ * @param {?} id
2540
+ * @param {?} event
2541
+ * @param {?=} params
2481
2542
  * @return {?}
2482
2543
  */
2483
- function () {
2484
- if (this.dropDownShown) {
2485
- this.dropDownShown = false;
2544
+ function (id, event, params) {
2545
+ var _this = this;
2546
+ /** @type {?} */
2547
+ var element = document.getElementById(id);
2548
+ if (element) {
2549
+ element.addEventListener('click', (/**
2550
+ * @return {?}
2551
+ */
2552
+ function () {
2553
+ event.call(_this, params);
2554
+ }));
2486
2555
  }
2487
- this.isDownloadChartVisible = false;
2556
+ };
2557
+ /**
2558
+ * @private
2559
+ * @param {?} style
2560
+ * @return {?}
2561
+ */
2562
+ RAWidgetContainer.prototype.getContenxtHtml = /**
2563
+ * @private
2564
+ * @param {?} style
2565
+ * @return {?}
2566
+ */
2567
+ function (style) {
2568
+ /** @type {?} */
2569
+ var html = '<div id="ra-db-widget-menu"' + 'style="' + style + '" class="download-content dropdown-content widget-config-item dropdown-click" style="z-index: 1002;">';
2570
+ html += '<div style="color: #9FA0A4;font-size: 12px;padding-top: 8px;padding-left: 12px;">';
2571
+ html += this.translateService.translate('Common.settings') + '</div>';
2572
+ if (this.isWidgetMgmnt) {
2573
+ html += this.getHtmlForButton('wcEditWidget', 'fal fa-edit', this.editText);
2574
+ html += this.getHtmlForButton('wcCopyWidget', 'fal fa-copy', this.copyText);
2575
+ html += this.getHtmlForButton('wcMoveWidget', 'fal fa-arrows-alt', this.moveText);
2576
+ }
2577
+ if (this.detailPageUrl) {
2578
+ html += '<a style="max-height: 30px;align-items: center;align-content: center; display: flex;" id="wcVisitWidget">';
2579
+ html += '<i style="padding-left: 4px;font-size: 27px !important;" class="fal fa-angle-right"></i> ';
2580
+ html += '<span style="padding-left: 11px;margin-top: 2px;" style="padding-left: 6px;">';
2581
+ html += this.translateService.translate('Common.visitpage');
2582
+ html += '</span></a>';
2583
+ }
2584
+ html += this.getHr();
2585
+ ;
2586
+ if (this.isDownloadIconVisible) {
2587
+ html += '<span style="color: #9FA0A4;font-size: 12px;">';
2588
+ html += this.translateService.translate('Common.downloads');
2589
+ html += '</span>';
2590
+ if (this.isChartDownloadVisible) {
2591
+ html += '<div style="padding-top: 10px;" class="chartDownload">';
2592
+ html += this.getHtmlForButton('wcDownloadPng', 'fal fa-file-image', this.translateService.translate('Common.png'));
2593
+ html += this.getHtmlForButton('wcDownloadJpg', 'fal fa-file-image', this.translateService.translate('Common.jpeg'));
2594
+ html += this.getHtmlForButton('wcDownloadPdf', 'fal fa-file-pdf', this.translateService.translate('Common.pdf'));
2595
+ html += this.getHtmlForButton('wcDownloadSvg', 'fal fa-file-alt', this.translateService.translate('Common.svg'));
2596
+ html += '</div>';
2597
+ }
2598
+ if (this.isGridDownloadVisible) {
2599
+ html += '<div class="gridDownload">';
2600
+ html += this.getHtmlForButton('wcDownloadExcel', 'fal fa-download', this.excelText);
2601
+ html += '</div>';
2602
+ }
2603
+ if (this.isDownloadIconVisible && this.isWidgetMgmnt) {
2604
+ html += this.getHr();
2605
+ }
2606
+ if (this.isWidgetMgmnt) {
2607
+ html += '<a id="wcWidgetDelete"><i class="fal fa-times" style="padding-left: 3px;color: red;"></i><span>';
2608
+ html += this.deleteText;
2609
+ html += '</span></a>';
2610
+ }
2611
+ }
2612
+ html += '</div>';
2613
+ return html;
2614
+ };
2615
+ /**
2616
+ * @private
2617
+ * @return {?}
2618
+ */
2619
+ RAWidgetContainer.prototype.getHr = /**
2620
+ * @private
2621
+ * @return {?}
2622
+ */
2623
+ function () {
2624
+ return '<hr class="hr" style="margin-top: 5px;margin-bottom: 5px;">';
2625
+ };
2626
+ /**
2627
+ * @private
2628
+ * @param {?} id
2629
+ * @param {?} fontClass
2630
+ * @param {?} text
2631
+ * @return {?}
2632
+ */
2633
+ RAWidgetContainer.prototype.getHtmlForButton = /**
2634
+ * @private
2635
+ * @param {?} id
2636
+ * @param {?} fontClass
2637
+ * @param {?} text
2638
+ * @return {?}
2639
+ */
2640
+ function (id, fontClass, text) {
2641
+ /** @type {?} */
2642
+ var html = '<a id="' + id + '"><i style="width:16px" class="' + fontClass + '"></i> <span style="padding-left: 6px;">';
2643
+ html += text;
2644
+ html += '</span></a>';
2645
+ return html;
2488
2646
  };
2489
2647
  /**
2490
2648
  * @private
@@ -2531,8 +2689,7 @@
2531
2689
  RAWidgetContainer.decorators = [
2532
2690
  { type: core.Component, args: [{
2533
2691
  selector: 'ra-widget-container',
2534
- 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>",
2535
- 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}"]
2692
+ 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>"
2536
2693
  }] }
2537
2694
  ];
2538
2695
  /** @nocollapse */
@@ -2548,8 +2705,8 @@
2548
2705
  RAWidgetContainer.propDecorators = {
2549
2706
  ctlWidget: [{ type: core.ViewChild, args: ['ctlWidget', { static: false },] }],
2550
2707
  widgetDropdown: [{ type: core.ViewChild, args: ['widgetDropdown', { static: false },] }],
2551
- widgetDownload: [{ type: core.ViewChild, args: ['widgetDownload', { static: false },] }],
2552
2708
  searchInput: [{ type: core.ViewChild, args: ['searchInput', { static: false },] }],
2709
+ wcWrapper: [{ type: core.ViewChild, args: ['wcWrapper', { static: false },] }],
2553
2710
  widgetInstanceId: [{ type: core.Input, args: ['widget-instance-id',] }],
2554
2711
  globalFilter: [{ type: core.Input, args: ['global-filter',] }],
2555
2712
  data: [{ type: core.Input, args: ['data',] }],
@@ -2581,11 +2738,6 @@
2581
2738
  * @private
2582
2739
  */
2583
2740
  RAWidgetContainer.prototype.configChanged;
2584
- /**
2585
- * @type {?}
2586
- * @private
2587
- */
2588
- RAWidgetContainer.prototype.isIEOrEdge;
2589
2741
  /** @type {?} */
2590
2742
  RAWidgetContainer.prototype.widgetHeight;
2591
2743
  /** @type {?} */
@@ -2599,10 +2751,6 @@
2599
2751
  /** @type {?} */
2600
2752
  RAWidgetContainer.prototype.isGridDownloadVisible;
2601
2753
  /** @type {?} */
2602
- RAWidgetContainer.prototype.dropDownShown;
2603
- /** @type {?} */
2604
- RAWidgetContainer.prototype.isDownloadChartVisible;
2605
- /** @type {?} */
2606
2754
  RAWidgetContainer.prototype.downloadIconType;
2607
2755
  /** @type {?} */
2608
2756
  RAWidgetContainer.prototype.enableTitleLine;
@@ -2651,14 +2799,16 @@
2651
2799
  /** @type {?} */
2652
2800
  RAWidgetContainer.prototype.noPadding;
2653
2801
  /** @type {?} */
2802
+ RAWidgetContainer.prototype.isMouseHover;
2803
+ /** @type {?} */
2654
2804
  RAWidgetContainer.prototype.ctlWidget;
2655
2805
  /** @type {?} */
2656
2806
  RAWidgetContainer.prototype.widgetDropdown;
2657
2807
  /** @type {?} */
2658
- RAWidgetContainer.prototype.widgetDownload;
2659
- /** @type {?} */
2660
2808
  RAWidgetContainer.prototype.searchInput;
2661
2809
  /** @type {?} */
2810
+ RAWidgetContainer.prototype.wcWrapper;
2811
+ /** @type {?} */
2662
2812
  RAWidgetContainer.prototype.widgetInstanceId;
2663
2813
  /** @type {?} */
2664
2814
  RAWidgetContainer.prototype.globalFilter;