@rivet-health/design-system 40.31.0 → 40.32.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/format/truncate/truncate.component.mjs +3 -2
- package/esm2020/lib/overlay/callout/tooltip/tooltip.component.mjs +4 -2
- package/esm2020/lib/overlay/callout/tooltip/tooltip.directive.mjs +2 -2
- package/fesm2015/rivet-health-design-system.mjs +5 -3
- package/fesm2015/rivet-health-design-system.mjs.map +1 -1
- package/fesm2020/rivet-health-design-system.mjs +5 -3
- package/fesm2020/rivet-health-design-system.mjs.map +1 -1
- package/lib/overlay/callout/tooltip/tooltip.component.d.ts +2 -0
- package/package.json +1 -1
|
@@ -679,7 +679,7 @@ class TooltipComponent {
|
|
|
679
679
|
constructor() {
|
|
680
680
|
this.anchor = null;
|
|
681
681
|
this.theme = 'dark';
|
|
682
|
-
this.maxWidth =
|
|
682
|
+
this.maxWidth = TooltipComponent.DefaultMaxWidth;
|
|
683
683
|
this.preferredPosition = 'top-center';
|
|
684
684
|
this.onMouseEnter = new EventEmitter();
|
|
685
685
|
this.onMouseLeave = new EventEmitter();
|
|
@@ -714,6 +714,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
714
714
|
type: Output
|
|
715
715
|
}] } });
|
|
716
716
|
(function (TooltipComponent) {
|
|
717
|
+
/** 344px, which fits about 50 characters per line. */
|
|
718
|
+
TooltipComponent.DefaultMaxWidth = 'calc(var(--base-grid-size) * 86)';
|
|
717
719
|
TooltipComponent.AnchoredPositions = [
|
|
718
720
|
'top-center',
|
|
719
721
|
'center-right',
|
|
@@ -727,7 +729,7 @@ class TooltipDirective {
|
|
|
727
729
|
this.el = el;
|
|
728
730
|
this.applicationRef = applicationRef;
|
|
729
731
|
this.rivTooltipTheme = 'dark';
|
|
730
|
-
this.rivTooltipMaxWidth =
|
|
732
|
+
this.rivTooltipMaxWidth = TooltipComponent.DefaultMaxWidth;
|
|
731
733
|
this.rivTooltipPreferredPosition = 'top-center';
|
|
732
734
|
this.rivTooltipCloseDelay = 100;
|
|
733
735
|
this.rivTooltipOpenDelay = 500;
|
|
@@ -928,7 +930,7 @@ class TruncateComponent {
|
|
|
928
930
|
tooltip) {
|
|
929
931
|
this.element = element;
|
|
930
932
|
this.tooltip = tooltip;
|
|
931
|
-
this.maxTooltipWidth =
|
|
933
|
+
this.maxTooltipWidth = TooltipComponent.DefaultMaxWidth;
|
|
932
934
|
}
|
|
933
935
|
enter() {
|
|
934
936
|
if (scrolled(this.element.nativeElement)) {
|