@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
|
@@ -493,7 +493,6 @@ var TooltipEvent;
|
|
|
493
493
|
})(TooltipEvent || (TooltipEvent = {}));
|
|
494
494
|
|
|
495
495
|
var TooltipDirective = /** @class */ (function () {
|
|
496
|
-
// private inputRefHasFocus = false;
|
|
497
496
|
function TooltipDirective(elementRef, appRef, componentFactoryResolver, injector, debounceUtils, renderer) {
|
|
498
497
|
var _this = this;
|
|
499
498
|
this.elementRef = elementRef;
|
|
@@ -509,7 +508,6 @@ var TooltipDirective = /** @class */ (function () {
|
|
|
509
508
|
this.visible = true;
|
|
510
509
|
this.mobileBehavior = MobileBehavior.Pressing;
|
|
511
510
|
this.componentRef = null;
|
|
512
|
-
// this.boundOnWindowMouseMoveFunction = this.onWindowMouseMove.bind(this);
|
|
513
511
|
this.debounceCreateTooltipFunction = this.debounceUtils.debounceLeading(function () { return _this._createTooltip(true, true); });
|
|
514
512
|
}
|
|
515
513
|
TooltipDirective.prototype.ngOnInit = function () {
|
|
@@ -519,24 +517,6 @@ var TooltipDirective = /** @class */ (function () {
|
|
|
519
517
|
TooltipDirective.prototype.ngOnDestroy = function () {
|
|
520
518
|
this.destroy();
|
|
521
519
|
};
|
|
522
|
-
// private onWindowMouseMove(event: MouseEvent) {
|
|
523
|
-
// if (!this.componentRef) {
|
|
524
|
-
// return;
|
|
525
|
-
// }
|
|
526
|
-
// const elementRect = this.elementRef.nativeElement.getBoundingClientRect();
|
|
527
|
-
// const toolTipRect = this.tooltipDivElement.getBoundingClientRect();
|
|
528
|
-
// const totalElementArea = {
|
|
529
|
-
// top: Math.min(elementRect.top, toolTipRect.top),
|
|
530
|
-
// right: Math.max(elementRect.right, toolTipRect.right),
|
|
531
|
-
// left: Math.min(elementRect.left, toolTipRect.left),
|
|
532
|
-
// bottom: Math.max(elementRect.bottom, toolTipRect.bottom),
|
|
533
|
-
// };
|
|
534
|
-
// const isMouseOutsidePosition = isMousePositionOutsideOfElement(event, totalElementArea);
|
|
535
|
-
// const isHoverEvent = this.tooltipEvent === TooltipEvent.Hover;
|
|
536
|
-
// if (isMouseOutsidePosition && !this.inputRefHasFocus && isHoverEvent) {
|
|
537
|
-
// this.destroy();
|
|
538
|
-
// }
|
|
539
|
-
// }
|
|
540
520
|
/**
|
|
541
521
|
* Manipula a visibilidade do tooltip quando houver uma referência de input.
|
|
542
522
|
*/
|
|
@@ -547,7 +527,6 @@ var TooltipDirective = /** @class */ (function () {
|
|
|
547
527
|
var icon_1 = this.getIconFromFocusedInput();
|
|
548
528
|
this.renderer.listen(inputFocus, "focus", function () {
|
|
549
529
|
if (icon_1) {
|
|
550
|
-
// this.inputRefHasFocus = true;
|
|
551
530
|
_this._createTooltip(false, false);
|
|
552
531
|
}
|
|
553
532
|
});
|
|
@@ -555,7 +534,6 @@ var TooltipDirective = /** @class */ (function () {
|
|
|
555
534
|
if (icon_1) {
|
|
556
535
|
_this.removeTooltip(icon_1);
|
|
557
536
|
_this.destroy();
|
|
558
|
-
// this.inputRefHasFocus = false;
|
|
559
537
|
}
|
|
560
538
|
});
|
|
561
539
|
}
|
|
@@ -600,7 +578,6 @@ var TooltipDirective = /** @class */ (function () {
|
|
|
600
578
|
}
|
|
601
579
|
};
|
|
602
580
|
TooltipDirective.prototype.onMouseLeave = function () {
|
|
603
|
-
// && !this.inputRefHasFocus
|
|
604
581
|
if (this.tooltipEvent === TooltipEvent.Hover) {
|
|
605
582
|
this.destroy();
|
|
606
583
|
}
|
|
@@ -667,7 +644,6 @@ var TooltipDirective = /** @class */ (function () {
|
|
|
667
644
|
if (this.componentRef !== null) {
|
|
668
645
|
this.componentRef.instance.visible = this.visible;
|
|
669
646
|
this.setTooltipPositionProperty();
|
|
670
|
-
// window.addEventListener("mousemove", this.boundOnWindowMouseMoveFunction);
|
|
671
647
|
}
|
|
672
648
|
};
|
|
673
649
|
TooltipDirective.prototype.setTooltipPositionProperty = function () {
|
|
@@ -778,7 +754,6 @@ var TooltipDirective = /** @class */ (function () {
|
|
|
778
754
|
this.componentRef = null;
|
|
779
755
|
this.tooltipDivElement = null;
|
|
780
756
|
}
|
|
781
|
-
// window.removeEventListener("mousemove", this.boundOnWindowMouseMoveFunction);
|
|
782
757
|
};
|
|
783
758
|
TooltipDirective.ctorParameters = function () { return [
|
|
784
759
|
{ type: ElementRef },
|
|
@@ -1030,7 +1005,7 @@ var InfoSignComponent = /** @class */ (function () {
|
|
|
1030
1005
|
InfoSignComponent = __decorate([
|
|
1031
1006
|
Component({
|
|
1032
1007
|
selector: "s-info-sign-component",
|
|
1033
|
-
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",
|
|
1008
|
+
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",
|
|
1034
1009
|
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}"]
|
|
1035
1010
|
})
|
|
1036
1011
|
], InfoSignComponent);
|
|
@@ -4269,7 +4244,7 @@ var CodeEditorComponent = /** @class */ (function () {
|
|
|
4269
4244
|
multi: true,
|
|
4270
4245
|
},
|
|
4271
4246
|
],
|
|
4272
|
-
styles: [".core-wrapper{height:100
|
|
4247
|
+
styles: [".core-wrapper{height:100%;border:1px solid #c1c1cc;border-radius:3px}"]
|
|
4273
4248
|
})
|
|
4274
4249
|
], CodeEditorComponent);
|
|
4275
4250
|
return CodeEditorComponent;
|