@seniorsistemas/angular-components 17.26.12-bugfix-sds-312-2e0a9036 → 17.26.12-bugfix-sds-312-28ff6099
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 +2 -27
- 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/esm2015/components/code-editor/code-editor.component.js +1 -1
- package/esm2015/components/info-sign/info-sign.component.js +2 -2
- package/esm2015/components/tooltip/tooltip.directive.js +1 -26
- package/esm5/components/code-editor/code-editor.component.js +1 -1
- package/esm5/components/info-sign/info-sign.component.js +2 -2
- package/esm5/components/tooltip/tooltip.directive.js +1 -26
- package/fesm2015/seniorsistemas-angular-components.js +2 -27
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +2 -27
- package/fesm5/seniorsistemas-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-angular-components.metadata.json +1 -1
|
@@ -638,7 +638,6 @@
|
|
|
638
638
|
})(TooltipEvent || (TooltipEvent = {}));
|
|
639
639
|
|
|
640
640
|
var TooltipDirective = /** @class */ (function () {
|
|
641
|
-
// private inputRefHasFocus = false;
|
|
642
641
|
function TooltipDirective(elementRef, appRef, componentFactoryResolver, injector, debounceUtils, renderer) {
|
|
643
642
|
var _this = this;
|
|
644
643
|
this.elementRef = elementRef;
|
|
@@ -654,7 +653,6 @@
|
|
|
654
653
|
this.visible = true;
|
|
655
654
|
this.mobileBehavior = MobileBehavior.Pressing;
|
|
656
655
|
this.componentRef = null;
|
|
657
|
-
// this.boundOnWindowMouseMoveFunction = this.onWindowMouseMove.bind(this);
|
|
658
656
|
this.debounceCreateTooltipFunction = this.debounceUtils.debounceLeading(function () { return _this._createTooltip(true, true); });
|
|
659
657
|
}
|
|
660
658
|
TooltipDirective.prototype.ngOnInit = function () {
|
|
@@ -664,24 +662,6 @@
|
|
|
664
662
|
TooltipDirective.prototype.ngOnDestroy = function () {
|
|
665
663
|
this.destroy();
|
|
666
664
|
};
|
|
667
|
-
// private onWindowMouseMove(event: MouseEvent) {
|
|
668
|
-
// if (!this.componentRef) {
|
|
669
|
-
// return;
|
|
670
|
-
// }
|
|
671
|
-
// const elementRect = this.elementRef.nativeElement.getBoundingClientRect();
|
|
672
|
-
// const toolTipRect = this.tooltipDivElement.getBoundingClientRect();
|
|
673
|
-
// const totalElementArea = {
|
|
674
|
-
// top: Math.min(elementRect.top, toolTipRect.top),
|
|
675
|
-
// right: Math.max(elementRect.right, toolTipRect.right),
|
|
676
|
-
// left: Math.min(elementRect.left, toolTipRect.left),
|
|
677
|
-
// bottom: Math.max(elementRect.bottom, toolTipRect.bottom),
|
|
678
|
-
// };
|
|
679
|
-
// const isMouseOutsidePosition = isMousePositionOutsideOfElement(event, totalElementArea);
|
|
680
|
-
// const isHoverEvent = this.tooltipEvent === TooltipEvent.Hover;
|
|
681
|
-
// if (isMouseOutsidePosition && !this.inputRefHasFocus && isHoverEvent) {
|
|
682
|
-
// this.destroy();
|
|
683
|
-
// }
|
|
684
|
-
// }
|
|
685
665
|
/**
|
|
686
666
|
* Manipula a visibilidade do tooltip quando houver uma referência de input.
|
|
687
667
|
*/
|
|
@@ -692,7 +672,6 @@
|
|
|
692
672
|
var icon_1 = this.getIconFromFocusedInput();
|
|
693
673
|
this.renderer.listen(inputFocus, "focus", function () {
|
|
694
674
|
if (icon_1) {
|
|
695
|
-
// this.inputRefHasFocus = true;
|
|
696
675
|
_this._createTooltip(false, false);
|
|
697
676
|
}
|
|
698
677
|
});
|
|
@@ -700,7 +679,6 @@
|
|
|
700
679
|
if (icon_1) {
|
|
701
680
|
_this.removeTooltip(icon_1);
|
|
702
681
|
_this.destroy();
|
|
703
|
-
// this.inputRefHasFocus = false;
|
|
704
682
|
}
|
|
705
683
|
});
|
|
706
684
|
}
|
|
@@ -745,7 +723,6 @@
|
|
|
745
723
|
}
|
|
746
724
|
};
|
|
747
725
|
TooltipDirective.prototype.onMouseLeave = function () {
|
|
748
|
-
// && !this.inputRefHasFocus
|
|
749
726
|
if (this.tooltipEvent === TooltipEvent.Hover) {
|
|
750
727
|
this.destroy();
|
|
751
728
|
}
|
|
@@ -812,7 +789,6 @@
|
|
|
812
789
|
if (this.componentRef !== null) {
|
|
813
790
|
this.componentRef.instance.visible = this.visible;
|
|
814
791
|
this.setTooltipPositionProperty();
|
|
815
|
-
// window.addEventListener("mousemove", this.boundOnWindowMouseMoveFunction);
|
|
816
792
|
}
|
|
817
793
|
};
|
|
818
794
|
TooltipDirective.prototype.setTooltipPositionProperty = function () {
|
|
@@ -923,7 +899,6 @@
|
|
|
923
899
|
this.componentRef = null;
|
|
924
900
|
this.tooltipDivElement = null;
|
|
925
901
|
}
|
|
926
|
-
// window.removeEventListener("mousemove", this.boundOnWindowMouseMoveFunction);
|
|
927
902
|
};
|
|
928
903
|
TooltipDirective.ctorParameters = function () { return [
|
|
929
904
|
{ type: core.ElementRef },
|
|
@@ -1175,7 +1150,7 @@
|
|
|
1175
1150
|
InfoSignComponent = __decorate([
|
|
1176
1151
|
core.Component({
|
|
1177
1152
|
selector: "s-info-sign-component",
|
|
1178
|
-
template: "<span class=\"info-sign\">\n <span *ngTemplateOutlet=\"templateRef\"></span>\n <i\n class=\"info-sign__icon fa fa-info-circle\"\n aria-hidden=\"true\"\n [sTooltip]=\"tooltip\"\n [escape]=\"false\"\n tooltipPosition=\"top\"\n [displayTime]=\"displayTime\"\n mobileBehavior=\"tap\"\n showDelay=\"0\"\n [focusedInputRef]=\"focusedInputRef\">\n </i>\n</span>\n",
|
|
1153
|
+
template: "<span class=\"info-sign\">\n <span *ngTemplateOutlet=\"templateRef\"></span>\n <i\n class=\"info-sign__icon fa fa-info-circle\"\n aria-hidden=\"true\"\n [sTooltip]=\"tooltip\"\n [escape]=\"false\"\n tooltipPosition=\"top\"\n [displayTime]=\"displayTime\"\n mobileBehavior=\"tap\"\n showDelay=\"0\"\n [tooltipEvent]=\"focusedInputRef ? 'focus' : 'hover'\"\n [focusedInputRef]=\"focusedInputRef\">\n </i>\n</span>\n",
|
|
1179
1154
|
styles: [".info-sign{-ms-flex-align:baseline;align-items:baseline;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:start;justify-content:flex-start}.info-sign .info-sign__icon{padding:0 12px}"]
|
|
1180
1155
|
})
|
|
1181
1156
|
], InfoSignComponent);
|
|
@@ -4414,7 +4389,7 @@
|
|
|
4414
4389
|
multi: true,
|
|
4415
4390
|
},
|
|
4416
4391
|
],
|
|
4417
|
-
styles: [".core-wrapper{height:100
|
|
4392
|
+
styles: [".core-wrapper{height:100%;border:1px solid #c1c1cc;border-radius:3px}"]
|
|
4418
4393
|
})
|
|
4419
4394
|
], CodeEditorComponent);
|
|
4420
4395
|
return CodeEditorComponent;
|