@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.
@@ -495,14 +495,13 @@ var TooltipDirective = /** @class */ (function () {
495
495
  TooltipDirective.prototype.updateTooltipVisibilityWhenFocusOnInput = function () {
496
496
  var _this = this;
497
497
  if (this.focusedInputRef) {
498
- var inputFocus = this.focusedInputRef;
499
- var icon_1 = this.getIconFromFocusedInput(inputFocus);
500
- this.renderer.listen(inputFocus, 'focus', function () {
498
+ var icon_1 = this.getIconFromFocusedInput();
499
+ this.renderer.listen(this.focusedInputRef, 'focus', function () {
501
500
  if (icon_1 && _this.isMatchingTooltip(icon_1)) {
502
501
  _this.createTootipByFocus(icon_1);
503
502
  }
504
503
  });
505
- this.renderer.listen(inputFocus, 'blur', function () {
504
+ this.renderer.listen(this.focusedInputRef, 'blur', function () {
506
505
  if (icon_1 && _this.isMatchingTooltip(icon_1)) {
507
506
  _this.removeTooltip(icon_1);
508
507
  _this.destroy();
@@ -512,16 +511,10 @@ var TooltipDirective = /** @class */ (function () {
512
511
  };
513
512
  /**
514
513
  * Obtém o elemento do ícone associado ao label do input em focus.
515
- * @param focusedInput O input em focus.
516
- * @returns O ícone do input em focus ou null.
514
+ * @returns O ícone do input em focus.
517
515
  */
518
- TooltipDirective.prototype.getIconFromFocusedInput = function (focusedInput) {
519
- var label = document.querySelector("label[for='" + focusedInput.id + "']");
520
- if (label) {
521
- var icon = label.nextElementSibling;
522
- return (icon === null || icon === void 0 ? void 0 : icon.classList.contains('info-sign__icon')) ? icon : null;
523
- }
524
- return null;
516
+ TooltipDirective.prototype.getIconFromFocusedInput = function () {
517
+ return this.elementRef.nativeElement;
525
518
  };
526
519
  /**
527
520
  * Verifica se o ícone tem o tooltip correspondente ao atual.
@@ -14904,6 +14897,10 @@ var NavigationButtonComponent = /** @class */ (function () {
14904
14897
  this._value = this.defaultValue;
14905
14898
  var index = this.steps.findIndex(function (step) { return step.value === _this._value; });
14906
14899
  this.currentIndex = index !== -1 ? index : 0;
14900
+ this.stepChanged.emit({
14901
+ previous: undefined,
14902
+ current: this.steps[this.currentIndex],
14903
+ });
14907
14904
  this.changeDetectorRef.detectChanges();
14908
14905
  }
14909
14906
  };