@mintplayer/ng-bootstrap 14.2.0 → 14.3.0
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/esm2020/lib/components/tooltip/component/tooltip.component.mjs +8 -4
- package/fesm2015/mintplayer-ng-bootstrap.mjs +6 -2
- package/fesm2015/mintplayer-ng-bootstrap.mjs.map +1 -1
- package/fesm2020/mintplayer-ng-bootstrap.mjs +6 -2
- package/fesm2020/mintplayer-ng-bootstrap.mjs.map +1 -1
- package/lib/components/tooltip/component/tooltip.component.d.ts +1 -0
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, Inject, Input, TemplateRef } from '@angular/core';
|
|
1
|
+
import { Component, HostBinding, Inject, Input, TemplateRef } from '@angular/core';
|
|
2
2
|
import { FadeInOutAnimation } from '@mintplayer/ng-animations';
|
|
3
3
|
import { Position } from '../../../enums/position.enum';
|
|
4
4
|
import { TOOLTIP_CONTENT } from '../providers/tooltip-content.provider';
|
|
@@ -8,18 +8,22 @@ export class BsTooltipComponent {
|
|
|
8
8
|
constructor(content) {
|
|
9
9
|
this.positions = Position;
|
|
10
10
|
this.position = Position.bottom;
|
|
11
|
+
this.positionRelative = true;
|
|
11
12
|
this.template = content;
|
|
12
13
|
}
|
|
13
14
|
}
|
|
14
15
|
BsTooltipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: BsTooltipComponent, deps: [{ token: TOOLTIP_CONTENT }], target: i0.ɵɵFactoryTarget.Component });
|
|
15
|
-
BsTooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: BsTooltipComponent, selector: "bs-tooltip", inputs: { position: "position" }, ngImport: i0, template: "<div [@fadeInOut] class=\"tooltip position-
|
|
16
|
+
BsTooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: BsTooltipComponent, selector: "bs-tooltip", inputs: { position: "position" }, host: { properties: { "class.position-relative": "this.positionRelative" } }, ngImport: i0, template: "<div [@fadeInOut] class=\"tooltip position-absolute show\"\n [class.bs-tooltip-bottom]=\"position === positions.bottom\"\n [class.bs-tooltip-top]=\"position === positions.top\"\n [class.bs-tooltip-start]=\"position === positions.left\"\n [class.bs-tooltip-end]=\"position === positions.right\">\n <div class=\"tooltip-arrow position-absolute\"></div>\n <div class=\"tooltip-inner\">\n <ng-container *ngTemplateOutlet=\"template\"></ng-container>\n </div>\n</div>\n", styles: [".tooltip.bs-tooltip-start{right:0}.tooltip.bs-tooltip-start,.tooltip.bs-tooltip-end{transform:translateY(-50%)}.tooltip.bs-tooltip-bottom{transform:translate(-50%)}.tooltip.bs-tooltip-top{transform:translate(-50%) translateY(-100%)}.tooltip.bs-tooltip-bottom .tooltip-arrow,.tooltip.bs-tooltip-top .tooltip-arrow{left:50%;transform:translate(-50%)}.tooltip.bs-tooltip-start .tooltip-arrow,.tooltip.bs-tooltip-end .tooltip-arrow{top:50%;transform:translateY(-50%)}\n"], dependencies: [{ kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], animations: [FadeInOutAnimation] });
|
|
16
17
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: BsTooltipComponent, decorators: [{
|
|
17
18
|
type: Component,
|
|
18
|
-
args: [{ selector: 'bs-tooltip', animations: [FadeInOutAnimation], template: "<div [@fadeInOut] class=\"tooltip position-
|
|
19
|
+
args: [{ selector: 'bs-tooltip', animations: [FadeInOutAnimation], template: "<div [@fadeInOut] class=\"tooltip position-absolute show\"\n [class.bs-tooltip-bottom]=\"position === positions.bottom\"\n [class.bs-tooltip-top]=\"position === positions.top\"\n [class.bs-tooltip-start]=\"position === positions.left\"\n [class.bs-tooltip-end]=\"position === positions.right\">\n <div class=\"tooltip-arrow position-absolute\"></div>\n <div class=\"tooltip-inner\">\n <ng-container *ngTemplateOutlet=\"template\"></ng-container>\n </div>\n</div>\n", styles: [".tooltip.bs-tooltip-start{right:0}.tooltip.bs-tooltip-start,.tooltip.bs-tooltip-end{transform:translateY(-50%)}.tooltip.bs-tooltip-bottom{transform:translate(-50%)}.tooltip.bs-tooltip-top{transform:translate(-50%) translateY(-100%)}.tooltip.bs-tooltip-bottom .tooltip-arrow,.tooltip.bs-tooltip-top .tooltip-arrow{left:50%;transform:translate(-50%)}.tooltip.bs-tooltip-start .tooltip-arrow,.tooltip.bs-tooltip-end .tooltip-arrow{top:50%;transform:translateY(-50%)}\n"] }]
|
|
19
20
|
}], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
|
|
20
21
|
type: Inject,
|
|
21
22
|
args: [TOOLTIP_CONTENT]
|
|
22
23
|
}] }]; }, propDecorators: { position: [{
|
|
23
24
|
type: Input
|
|
25
|
+
}], positionRelative: [{
|
|
26
|
+
type: HostBinding,
|
|
27
|
+
args: ['class.position-relative']
|
|
24
28
|
}] } });
|
|
25
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
29
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9vbHRpcC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL21pbnRwbGF5ZXItbmctYm9vdHN0cmFwL3NyYy9saWIvY29tcG9uZW50cy90b29sdGlwL2NvbXBvbmVudC90b29sdGlwLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvbWludHBsYXllci1uZy1ib290c3RyYXAvc3JjL2xpYi9jb21wb25lbnRzL3Rvb2x0aXAvY29tcG9uZW50L3Rvb2x0aXAuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE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xhc3MuYnMtdG9vbHRpcC1zdGFydF09XCJwb3NpdGlvbiA9PT0gcG9zaXRpb25zLmxlZnRcIlxuICAgIFtjbGFzcy5icy10b29sdGlwLWVuZF09XCJwb3NpdGlvbiA9PT0gcG9zaXRpb25zLnJpZ2h0XCI+XG4gICAgPGRpdiBjbGFzcz1cInRvb2x0aXAtYXJyb3cgcG9zaXRpb24tYWJzb2x1dGVcIj48L2Rpdj5cbiAgICA8ZGl2IGNsYXNzPVwidG9vbHRpcC1pbm5lclwiPlxuICAgICAgICA8bmctY29udGFpbmVyICpuZ1RlbXBsYXRlT3V0bGV0PVwidGVtcGxhdGVcIj48L25nLWNvbnRhaW5lcj5cbiAgICA8L2Rpdj5cbjwvZGl2PlxuIl19
|
|
@@ -4865,14 +4865,15 @@ class BsTooltipComponent {
|
|
|
4865
4865
|
constructor(content) {
|
|
4866
4866
|
this.positions = Position;
|
|
4867
4867
|
this.position = Position.bottom;
|
|
4868
|
+
this.positionRelative = true;
|
|
4868
4869
|
this.template = content;
|
|
4869
4870
|
}
|
|
4870
4871
|
}
|
|
4871
4872
|
BsTooltipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: BsTooltipComponent, deps: [{ token: TOOLTIP_CONTENT }], target: i0.ɵɵFactoryTarget.Component });
|
|
4872
|
-
BsTooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: BsTooltipComponent, selector: "bs-tooltip", inputs: { position: "position" }, ngImport: i0, template: "<div [@fadeInOut] class=\"tooltip position-
|
|
4873
|
+
BsTooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: BsTooltipComponent, selector: "bs-tooltip", inputs: { position: "position" }, host: { properties: { "class.position-relative": "this.positionRelative" } }, ngImport: i0, template: "<div [@fadeInOut] class=\"tooltip position-absolute show\"\n [class.bs-tooltip-bottom]=\"position === positions.bottom\"\n [class.bs-tooltip-top]=\"position === positions.top\"\n [class.bs-tooltip-start]=\"position === positions.left\"\n [class.bs-tooltip-end]=\"position === positions.right\">\n <div class=\"tooltip-arrow position-absolute\"></div>\n <div class=\"tooltip-inner\">\n <ng-container *ngTemplateOutlet=\"template\"></ng-container>\n </div>\n</div>\n", styles: [".tooltip.bs-tooltip-start{right:0}.tooltip.bs-tooltip-start,.tooltip.bs-tooltip-end{transform:translateY(-50%)}.tooltip.bs-tooltip-bottom{transform:translate(-50%)}.tooltip.bs-tooltip-top{transform:translate(-50%) translateY(-100%)}.tooltip.bs-tooltip-bottom .tooltip-arrow,.tooltip.bs-tooltip-top .tooltip-arrow{left:50%;transform:translate(-50%)}.tooltip.bs-tooltip-start .tooltip-arrow,.tooltip.bs-tooltip-end .tooltip-arrow{top:50%;transform:translateY(-50%)}\n"], dependencies: [{ kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], animations: [FadeInOutAnimation] });
|
|
4873
4874
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: BsTooltipComponent, decorators: [{
|
|
4874
4875
|
type: Component,
|
|
4875
|
-
args: [{ selector: 'bs-tooltip', animations: [FadeInOutAnimation], template: "<div [@fadeInOut] class=\"tooltip position-
|
|
4876
|
+
args: [{ selector: 'bs-tooltip', animations: [FadeInOutAnimation], template: "<div [@fadeInOut] class=\"tooltip position-absolute show\"\n [class.bs-tooltip-bottom]=\"position === positions.bottom\"\n [class.bs-tooltip-top]=\"position === positions.top\"\n [class.bs-tooltip-start]=\"position === positions.left\"\n [class.bs-tooltip-end]=\"position === positions.right\">\n <div class=\"tooltip-arrow position-absolute\"></div>\n <div class=\"tooltip-inner\">\n <ng-container *ngTemplateOutlet=\"template\"></ng-container>\n </div>\n</div>\n", styles: [".tooltip.bs-tooltip-start{right:0}.tooltip.bs-tooltip-start,.tooltip.bs-tooltip-end{transform:translateY(-50%)}.tooltip.bs-tooltip-bottom{transform:translate(-50%)}.tooltip.bs-tooltip-top{transform:translate(-50%) translateY(-100%)}.tooltip.bs-tooltip-bottom .tooltip-arrow,.tooltip.bs-tooltip-top .tooltip-arrow{left:50%;transform:translate(-50%)}.tooltip.bs-tooltip-start .tooltip-arrow,.tooltip.bs-tooltip-end .tooltip-arrow{top:50%;transform:translateY(-50%)}\n"] }]
|
|
4876
4877
|
}], ctorParameters: function () {
|
|
4877
4878
|
return [{ type: i0.TemplateRef, decorators: [{
|
|
4878
4879
|
type: Inject,
|
|
@@ -4880,6 +4881,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImpor
|
|
|
4880
4881
|
}] }];
|
|
4881
4882
|
}, propDecorators: { position: [{
|
|
4882
4883
|
type: Input
|
|
4884
|
+
}], positionRelative: [{
|
|
4885
|
+
type: HostBinding,
|
|
4886
|
+
args: ['class.position-relative']
|
|
4883
4887
|
}] } });
|
|
4884
4888
|
|
|
4885
4889
|
class BsTooltipDirective {
|