@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
|
@@ -641,14 +641,13 @@
|
|
|
641
641
|
TooltipDirective.prototype.updateTooltipVisibilityWhenFocusOnInput = function () {
|
|
642
642
|
var _this = this;
|
|
643
643
|
if (this.focusedInputRef) {
|
|
644
|
-
var
|
|
645
|
-
|
|
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(
|
|
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
|
-
* @
|
|
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 (
|
|
665
|
-
|
|
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
|
};
|