@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.
- package/bundles/seniorsistemas-angular-components.umd.js +10 -13
- package/bundles/seniorsistemas-angular-components.umd.js.map +1 -1
- package/bundles/seniorsistemas-angular-components.umd.min.js +1 -1
- package/bundles/seniorsistemas-angular-components.umd.min.js.map +1 -1
- package/components/tooltip/tooltip.directive.d.ts +1 -2
- package/esm2015/components/navigation-button/navigation-button.component.js +5 -1
- package/esm2015/components/tooltip/tooltip.directive.js +7 -14
- package/esm5/components/navigation-button/navigation-button.component.js +5 -1
- package/esm5/components/tooltip/tooltip.directive.js +7 -14
- package/fesm2015/seniorsistemas-angular-components.js +10 -13
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +10 -13
- package/fesm5/seniorsistemas-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-angular-components.metadata.json +1 -1
|
@@ -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
|
|
499
|
-
|
|
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(
|
|
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
|
-
* @
|
|
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 (
|
|
519
|
-
|
|
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
|
};
|