@seniorsistemas/angular-components 17.9.2 → 17.9.3

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.
@@ -641,14 +641,13 @@
641
641
  TooltipDirective.prototype.updateTooltipVisibilityWhenFocusOnInput = function () {
642
642
  var _this = this;
643
643
  if (this.focusedInputRef) {
644
- var inputFocus = this.focusedInputRef;
645
- var icon_1 = this.getIconFromFocusedInput(inputFocus);
646
- this.renderer.listen(inputFocus, 'focus', function () {
644
+ var icon_1 = this.getIconFromFocusedInput();
645
+ this.renderer.listen(this.focusedInputRef, 'focus', function () {
647
646
  if (icon_1 && _this.isMatchingTooltip(icon_1)) {
648
647
  _this.createTootipByFocus(icon_1);
649
648
  }
650
649
  });
651
- this.renderer.listen(inputFocus, 'blur', function () {
650
+ this.renderer.listen(this.focusedInputRef, 'blur', function () {
652
651
  if (icon_1 && _this.isMatchingTooltip(icon_1)) {
653
652
  _this.removeTooltip(icon_1);
654
653
  _this.destroy();
@@ -658,16 +657,10 @@
658
657
  };
659
658
  /**
660
659
  * Obtém o elemento do ícone associado ao label do input em focus.
661
- * @param focusedInput O input em focus.
662
- * @returns O ícone do input em focus ou null.
660
+ * @returns O ícone do input em focus.
663
661
  */
664
- TooltipDirective.prototype.getIconFromFocusedInput = function (focusedInput) {
665
- var label = document.querySelector("label[for='" + focusedInput.id + "']");
666
- if (label) {
667
- var icon = label.nextElementSibling;
668
- return (icon === null || icon === void 0 ? void 0 : icon.classList.contains('info-sign__icon')) ? icon : null;
669
- }
670
- return null;
662
+ TooltipDirective.prototype.getIconFromFocusedInput = function () {
663
+ return this.elementRef.nativeElement;
671
664
  };
672
665
  /**
673
666
  * Verifica se o ícone tem o tooltip correspondente ao atual.
@@ -15050,6 +15043,10 @@
15050
15043
  this._value = this.defaultValue;
15051
15044
  var index = this.steps.findIndex(function (step) { return step.value === _this._value; });
15052
15045
  this.currentIndex = index !== -1 ? index : 0;
15046
+ this.stepChanged.emit({
15047
+ previous: undefined,
15048
+ current: this.steps[this.currentIndex],
15049
+ });
15053
15050
  this.changeDetectorRef.detectChanges();
15054
15051
  }
15055
15052
  };