@softheon/armature 21.2.0 → 21.2.1
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.
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
|
|
42
42
|
.mat-mdc-tooltip-panel-below {
|
|
43
43
|
.mat-mdc-tooltip {
|
|
44
|
-
margin-top: 4px
|
|
44
|
+
margin-top: 4px;
|
|
45
45
|
&::after {
|
|
46
46
|
bottom: 100%;
|
|
47
47
|
left: calc(50% - 6px);
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
|
|
53
53
|
.mat-mdc-tooltip-panel-above {
|
|
54
54
|
.mat-mdc-tooltip {
|
|
55
|
-
margin-bottom: 4px
|
|
55
|
+
margin-bottom: 4px;
|
|
56
56
|
&::after {
|
|
57
57
|
top: 100%;
|
|
58
58
|
right: calc(50% - 6px);
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
|
|
64
64
|
.mat-mdc-tooltip-panel-left {
|
|
65
65
|
.mat-mdc-tooltip {
|
|
66
|
-
margin-right: 4px
|
|
66
|
+
margin-right: 4px;
|
|
67
67
|
&::after {
|
|
68
68
|
left: 100%;
|
|
69
69
|
top: calc(50% - 6px);
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
|
|
75
75
|
.mat-mdc-tooltip-panel-right {
|
|
76
76
|
.mat-mdc-tooltip {
|
|
77
|
-
margin-left: 4px
|
|
77
|
+
margin-left: 4px;
|
|
78
78
|
&::after {
|
|
79
79
|
right: 100%;
|
|
80
80
|
top: calc(50% - 6px);
|
|
@@ -10915,6 +10915,10 @@ class TextOverflowEllipsisTooltipDirective {
|
|
|
10915
10915
|
* @note If no tooltip text provided, will use the elements 'textContent'
|
|
10916
10916
|
*/
|
|
10917
10917
|
this.tooltipText = "";
|
|
10918
|
+
/** Custom classes for the tooltip */
|
|
10919
|
+
this.tooltipClass = "";
|
|
10920
|
+
/** Possible positions for a tooltip : "left" | "right" | "above" | "below" | "before" | "after" */
|
|
10921
|
+
this.tooltipPosition = null;
|
|
10918
10922
|
/** Is the element overflowing */
|
|
10919
10923
|
this.isOverflowing = false;
|
|
10920
10924
|
}
|
|
@@ -10945,8 +10949,11 @@ class TextOverflowEllipsisTooltipDirective {
|
|
|
10945
10949
|
const el = this.elRef.nativeElement;
|
|
10946
10950
|
this.isOverflowing = el.scrollWidth > el.clientWidth;
|
|
10947
10951
|
if (this.isOverflowing) {
|
|
10952
|
+
this.tooltip.tooltipClass = this.tooltipClass;
|
|
10948
10953
|
this.tooltip.message = this.tooltipText.length ? this.tooltipText : el.textContent;
|
|
10949
|
-
this.
|
|
10954
|
+
if (!!this.tooltipPosition) {
|
|
10955
|
+
this.tooltip.position = this.tooltipPosition;
|
|
10956
|
+
}
|
|
10950
10957
|
this.tooltip.disabled = false;
|
|
10951
10958
|
}
|
|
10952
10959
|
else {
|
|
@@ -10964,7 +10971,7 @@ class TextOverflowEllipsisTooltipDirective {
|
|
|
10964
10971
|
this.tooltip.hide();
|
|
10965
10972
|
}
|
|
10966
10973
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: TextOverflowEllipsisTooltipDirective, deps: [{ token: i0.ElementRef }, { token: i1$6.MatTooltip }, { token: i0.Renderer2 }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
10967
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1.3", type: TextOverflowEllipsisTooltipDirective, isStandalone: true, selector: "[textOverflowEllipsisTooltip]", inputs: { tooltipText: ["textOverflowEllipsisTooltip", "tooltipText"] }, host: { listeners: { "mouseover": "onMouseOver()", "mouseleave": "onMouseLeave()" } }, providers: [MatTooltip], ngImport: i0 }); }
|
|
10974
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1.3", type: TextOverflowEllipsisTooltipDirective, isStandalone: true, selector: "[textOverflowEllipsisTooltip]", inputs: { tooltipText: ["textOverflowEllipsisTooltip", "tooltipText"], tooltipClass: ["ellipsisTooltipClass", "tooltipClass"], tooltipPosition: ["ellipsisTooltipPosition", "tooltipPosition"] }, host: { listeners: { "mouseover": "onMouseOver()", "mouseleave": "onMouseLeave()" } }, providers: [MatTooltip], ngImport: i0 }); }
|
|
10968
10975
|
}
|
|
10969
10976
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: TextOverflowEllipsisTooltipDirective, decorators: [{
|
|
10970
10977
|
type: Directive,
|
|
@@ -10975,6 +10982,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImpor
|
|
|
10975
10982
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1$6.MatTooltip }, { type: i0.Renderer2 }, { type: i0.NgZone }], propDecorators: { tooltipText: [{
|
|
10976
10983
|
type: Input,
|
|
10977
10984
|
args: ['textOverflowEllipsisTooltip']
|
|
10985
|
+
}], tooltipClass: [{
|
|
10986
|
+
type: Input,
|
|
10987
|
+
args: ['ellipsisTooltipClass']
|
|
10988
|
+
}], tooltipPosition: [{
|
|
10989
|
+
type: Input,
|
|
10990
|
+
args: ['ellipsisTooltipPosition']
|
|
10978
10991
|
}], onMouseOver: [{
|
|
10979
10992
|
type: HostListener,
|
|
10980
10993
|
args: ['mouseover']
|