@seniorsistemas/angular-components 17.26.13-bugfix-sds-312-bce78028 → 17.26.13-bugfix-sds-312-0983e649

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.
@@ -508,6 +508,7 @@ var TooltipDirective = /** @class */ (function () {
508
508
  this.visible = true;
509
509
  this.mobileBehavior = MobileBehavior.Pressing;
510
510
  this.componentRef = null;
511
+ this.tooltipCreatedByFocus = false;
511
512
  this.debounceCreateTooltipFunction = this.debounceUtils.debounceLeading(function () { return _this._createTooltip(true, true); });
512
513
  }
513
514
  TooltipDirective.prototype.ngOnInit = function () {
@@ -528,12 +529,14 @@ var TooltipDirective = /** @class */ (function () {
528
529
  this.renderer.listen(inputFocus, "focus", function () {
529
530
  if (icon_1) {
530
531
  _this._createTooltip(false, false);
532
+ _this.tooltipCreatedByFocus = true;
531
533
  }
532
534
  });
533
535
  this.renderer.listen(inputFocus, "blur", function () {
534
536
  if (icon_1) {
535
537
  _this.removeTooltip(icon_1);
536
538
  _this.destroy();
539
+ _this.tooltipCreatedByFocus = false;
537
540
  }
538
541
  });
539
542
  }
@@ -573,12 +576,12 @@ var TooltipDirective = /** @class */ (function () {
573
576
  }
574
577
  };
575
578
  TooltipDirective.prototype.onMouseEnter = function () {
576
- if (this.tooltipEvent === TooltipEvent.Hover) {
579
+ if (this.tooltipEvent === TooltipEvent.Hover || this.focusedInputRef) {
577
580
  this.debounceCreateTooltipFunction();
578
581
  }
579
582
  };
580
583
  TooltipDirective.prototype.onMouseLeave = function () {
581
- if (this.tooltipEvent === TooltipEvent.Hover) {
584
+ if ((this.tooltipEvent === TooltipEvent.Hover || this.focusedInputRef) && !this.tooltipCreatedByFocus) {
582
585
  this.destroy();
583
586
  }
584
587
  };
@@ -13603,7 +13606,7 @@ var TextAreaComponent = /** @class */ (function () {
13603
13606
  multi: true,
13604
13607
  },
13605
13608
  ],
13606
- styles: [".textarea{border-radius:3px;border:1px solid #c1c1cc;background:#fff;width:100%;max-width:100%;min-height:4em;min-width:10em;outline:0;padding:8px;display:block}.textarea:disabled{opacity:.5}:host.ng-invalid.ng-dirty .textarea{border-color:#c13018}"]
13609
+ styles: [".textarea{border-radius:3px;border:1px solid #c1c1cc;background:#fff;width:100%;max-width:100%;min-height:4em;min-width:10em;outline:0;padding:8px;display:block}.textarea:disabled{opacity:.5}.textarea:focus{transition:border-color .2s ease-out;border:1px solid #428bca}:host.ng-invalid.ng-dirty .textarea{border-color:#c13018}"]
13607
13610
  })
13608
13611
  ], TextAreaComponent);
13609
13612
  return TextAreaComponent;