@rivet-health/design-system 2.7.0 → 2.8.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.
@@ -0,0 +1 @@
1
+ export declare const NO_DATA_FALLBACK = "-";
@@ -2,7 +2,7 @@ import { PipeTransform } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class DaysPipe implements PipeTransform {
4
4
  private readonly inner;
5
- transform(value: string | number | null, digitsInfo?: string): string;
5
+ transform(value?: string | number | null, digitsInfo?: string): string;
6
6
  static ɵfac: i0.ɵɵFactoryDeclaration<DaysPipe, never>;
7
7
  static ɵpipe: i0.ɵɵPipeDeclaration<DaysPipe, "rivDays", false>;
8
8
  }
@@ -0,0 +1,9 @@
1
+ import { CurrencyPipe } from '@angular/common';
2
+ import { PipeTransform } from '@angular/core';
3
+ import * as i0 from "@angular/core";
4
+ export declare class DollarsPipe implements PipeTransform {
5
+ readonly inner: CurrencyPipe;
6
+ transform(value?: number | string | null, digitsInfo?: string): string;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<DollarsPipe, never>;
8
+ static ɵpipe: i0.ɵɵPipeDeclaration<DollarsPipe, "rivDollars", false>;
9
+ }
@@ -2,7 +2,7 @@ import { PipeTransform } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class NumberPipe implements PipeTransform {
4
4
  private readonly inner;
5
- transform(value: string | number, digitsInfo?: string): string;
5
+ transform(value?: string | number | null, digitsInfo?: string): string;
6
6
  static ɵfac: i0.ɵɵFactoryDeclaration<NumberPipe, never>;
7
7
  static ɵpipe: i0.ɵɵPipeDeclaration<NumberPipe, "rivNumber", false>;
8
8
  }
@@ -2,7 +2,7 @@ import { PipeTransform } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class PercentagePipe implements PipeTransform {
4
4
  private readonly inner;
5
- transform(value: string | number, digitsInfo?: string): string;
5
+ transform(value?: string | number | null, digitsInfo?: string): string;
6
6
  static ɵfac: i0.ɵɵFactoryDeclaration<PercentagePipe, never>;
7
7
  static ɵpipe: i0.ɵɵPipeDeclaration<PercentagePipe, "rivPercentage", false>;
8
8
  }
@@ -2,7 +2,7 @@ import { PipeTransform } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class SmallCurrencyPipe implements PipeTransform {
4
4
  private readonly inner;
5
- transform(value: number | string | null, digitsInfo?: string): string;
5
+ transform(value?: number | string | null, digitsInfo?: string): string;
6
6
  static ɵfac: i0.ɵɵFactoryDeclaration<SmallCurrencyPipe, never>;
7
7
  static ɵpipe: i0.ɵɵPipeDeclaration<SmallCurrencyPipe, "rivSmallCurrency", false>;
8
8
  }
@@ -1,7 +1,7 @@
1
- import { ApplicationRef, ElementRef, TemplateRef } from '@angular/core';
1
+ import { ApplicationRef, ElementRef, OnDestroy, TemplateRef } from '@angular/core';
2
2
  import { TooltipAnchoredPosition } from './tooltip.component';
3
3
  import * as i0 from "@angular/core";
4
- export declare class TooltipDirective {
4
+ export declare class TooltipDirective implements OnDestroy {
5
5
  private readonly el;
6
6
  private readonly applicationRef;
7
7
  constructor(el: ElementRef, applicationRef: ApplicationRef);
@@ -14,6 +14,7 @@ export declare class TooltipDirective {
14
14
  private closeTimeout?;
15
15
  onMouseEnter(): void;
16
16
  onMouseLeave(): void;
17
+ ngOnDestroy(): void;
17
18
  private initiateClose;
18
19
  private cancelClose;
19
20
  static ɵfac: i0.ɵɵFactoryDeclaration<TooltipDirective, never>;
@@ -7,23 +7,24 @@ import * as i5 from "./visualization/data-table/data-table.component";
7
7
  import * as i6 from "./visualization/data-table/data-table-header-cell.component";
8
8
  import * as i7 from "./visualization/data-table/data-table-row.component";
9
9
  import * as i8 from "./format/pipes/days.pipe";
10
- import * as i9 from "./visualization/donut/donut.component";
11
- import * as i10 from "./icon/icon.component";
12
- import * as i11 from "./visualization/legend-item/legend-item.component";
13
- import * as i12 from "./visualization/metric/metric.component";
14
- import * as i13 from "./format/pipes/number.pipe";
15
- import * as i14 from "./format/pipes/percentage.pipe";
16
- import * as i15 from "./visualization/trend/trend.component";
17
- import * as i16 from "./format/pipes/small-currency.pipe";
18
- import * as i17 from "./visualization/stacked-column/stacked-column.component";
19
- import * as i18 from "./content-toggle/text-toggle/text-toggle.component";
20
- import * as i19 from "./visualization/time-series/time-series.component";
21
- import * as i20 from "./modal/tooltip/tooltip.component";
22
- import * as i21 from "./modal/tooltip/tooltip.directive";
23
- import * as i22 from "./visualization/zero-state/zero-state.component";
24
- import * as i23 from "@angular/common";
10
+ import * as i9 from "./format/pipes/dollars.pipe";
11
+ import * as i10 from "./visualization/donut/donut.component";
12
+ import * as i11 from "./icon/icon.component";
13
+ import * as i12 from "./visualization/legend-item/legend-item.component";
14
+ import * as i13 from "./visualization/metric/metric.component";
15
+ import * as i14 from "./format/pipes/number.pipe";
16
+ import * as i15 from "./format/pipes/percentage.pipe";
17
+ import * as i16 from "./visualization/trend/trend.component";
18
+ import * as i17 from "./format/pipes/small-currency.pipe";
19
+ import * as i18 from "./visualization/stacked-column/stacked-column.component";
20
+ import * as i19 from "./content-toggle/text-toggle/text-toggle.component";
21
+ import * as i20 from "./visualization/time-series/time-series.component";
22
+ import * as i21 from "./modal/tooltip/tooltip.component";
23
+ import * as i22 from "./modal/tooltip/tooltip.directive";
24
+ import * as i23 from "./visualization/zero-state/zero-state.component";
25
+ import * as i24 from "@angular/common";
25
26
  export declare class RivModule {
26
27
  static ɵfac: i0.ɵɵFactoryDeclaration<RivModule, never>;
27
- static ɵmod: i0.ɵɵNgModuleDeclaration<RivModule, [typeof i1.CalloutComponent, typeof i2.CalloutDirective, typeof i3.CalloutOutletComponent, typeof i4.DataTableCellComponent, typeof i5.DataTableComponent, typeof i6.DataTableHeaderCellComponent, typeof i7.DataTableRowComponent, typeof i8.DaysPipe, typeof i9.DonutComponent, typeof i10.IconComponent, typeof i11.LegendItemComponent, typeof i12.MetricComponent, typeof i13.NumberPipe, typeof i14.PercentagePipe, typeof i15.TrendComponent, typeof i16.SmallCurrencyPipe, typeof i17.StackedColumnComponent, typeof i18.TextToggleComponent, typeof i19.TimeSeriesComponent, typeof i20.TooltipComponent, typeof i21.TooltipDirective, typeof i22.ZeroStateComponent], [typeof i23.CommonModule], [typeof i1.CalloutComponent, typeof i2.CalloutDirective, typeof i3.CalloutOutletComponent, typeof i4.DataTableCellComponent, typeof i5.DataTableComponent, typeof i6.DataTableHeaderCellComponent, typeof i7.DataTableRowComponent, typeof i8.DaysPipe, typeof i9.DonutComponent, typeof i10.IconComponent, typeof i11.LegendItemComponent, typeof i12.MetricComponent, typeof i13.NumberPipe, typeof i14.PercentagePipe, typeof i15.TrendComponent, typeof i16.SmallCurrencyPipe, typeof i17.StackedColumnComponent, typeof i18.TextToggleComponent, typeof i19.TimeSeriesComponent, typeof i20.TooltipComponent, typeof i21.TooltipDirective, typeof i22.ZeroStateComponent]>;
28
+ static ɵmod: i0.ɵɵNgModuleDeclaration<RivModule, [typeof i1.CalloutComponent, typeof i2.CalloutDirective, typeof i3.CalloutOutletComponent, typeof i4.DataTableCellComponent, typeof i5.DataTableComponent, typeof i6.DataTableHeaderCellComponent, typeof i7.DataTableRowComponent, typeof i8.DaysPipe, typeof i9.DollarsPipe, typeof i10.DonutComponent, typeof i11.IconComponent, typeof i12.LegendItemComponent, typeof i13.MetricComponent, typeof i14.NumberPipe, typeof i15.PercentagePipe, typeof i16.TrendComponent, typeof i17.SmallCurrencyPipe, typeof i18.StackedColumnComponent, typeof i19.TextToggleComponent, typeof i20.TimeSeriesComponent, typeof i21.TooltipComponent, typeof i22.TooltipDirective, typeof i23.ZeroStateComponent], [typeof i24.CommonModule], [typeof i1.CalloutComponent, typeof i2.CalloutDirective, typeof i3.CalloutOutletComponent, typeof i4.DataTableCellComponent, typeof i5.DataTableComponent, typeof i6.DataTableHeaderCellComponent, typeof i7.DataTableRowComponent, typeof i8.DaysPipe, typeof i9.DollarsPipe, typeof i10.DonutComponent, typeof i11.IconComponent, typeof i12.LegendItemComponent, typeof i13.MetricComponent, typeof i14.NumberPipe, typeof i15.PercentagePipe, typeof i16.TrendComponent, typeof i17.SmallCurrencyPipe, typeof i18.StackedColumnComponent, typeof i19.TextToggleComponent, typeof i20.TimeSeriesComponent, typeof i21.TooltipComponent, typeof i22.TooltipDirective, typeof i23.ZeroStateComponent]>;
28
29
  static ɵinj: i0.ɵɵInjectorDeclaration<RivModule>;
29
30
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rivet-health/design-system",
3
- "version": "2.7.0",
3
+ "version": "2.8.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^14.0.0",
6
6
  "@angular/core": "^14.0.0",
package/public-api.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export * from './lib/content-toggle/text-toggle/text-toggle.component';
2
2
  export * from './lib/format/pipes/days.pipe';
3
+ export * from './lib/format/pipes/dollars.pipe';
3
4
  export * from './lib/format/pipes/number.pipe';
4
5
  export * from './lib/format/pipes/percentage.pipe';
5
6
  export * from './lib/format/pipes/small-currency.pipe';