@rivet-health/design-system 5.2.2 → 5.4.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.
Files changed (31) hide show
  1. package/esm2020/lib/input/calendar/calendar.component.mjs +1 -1
  2. package/esm2020/lib/input/date-range/date-range.component.mjs +1 -1
  3. package/esm2020/lib/input/input-label/input-label.component.mjs +1 -1
  4. package/esm2020/lib/input/single-select/single-select.component.mjs +20 -44
  5. package/esm2020/lib/interaction/focus-on-init.directive.mjs +43 -0
  6. package/esm2020/lib/modal/help/help.component.mjs +11 -3
  7. package/esm2020/lib/riv.module.mjs +11 -1
  8. package/esm2020/lib/size/content.service.mjs +31 -0
  9. package/esm2020/lib/size/size.directive.mjs +40 -0
  10. package/esm2020/lib/visualization/stacked-column/stacked-column.component.mjs +63 -39
  11. package/esm2020/lib/visualization/stacked-column/stacked-column.helpers.mjs +1 -10
  12. package/esm2020/lib/visualization/stacked-row/stacked-row.component.mjs +53 -78
  13. package/esm2020/lib/visualization/time-series/time-series.component.mjs +22 -27
  14. package/esm2020/public-api.mjs +3 -1
  15. package/fesm2015/rivet-health-design-system.mjs +268 -183
  16. package/fesm2015/rivet-health-design-system.mjs.map +1 -1
  17. package/fesm2020/rivet-health-design-system.mjs +267 -188
  18. package/fesm2020/rivet-health-design-system.mjs.map +1 -1
  19. package/lib/input/single-select/single-select.component.d.ts +3 -6
  20. package/lib/interaction/focus-on-init.directive.d.ts +13 -0
  21. package/lib/modal/help/help.component.d.ts +6 -1
  22. package/lib/riv.module.d.ts +31 -29
  23. package/lib/size/content.service.d.ts +16 -0
  24. package/lib/size/size.directive.d.ts +20 -0
  25. package/lib/visualization/stacked-column/stacked-column.component.d.ts +11 -6
  26. package/lib/visualization/stacked-column/stacked-column.helpers.d.ts +0 -1
  27. package/lib/visualization/stacked-row/stacked-row.component.d.ts +9 -13
  28. package/lib/visualization/time-series/time-series.component.d.ts +5 -6
  29. package/package.json +1 -1
  30. package/public-api.d.ts +2 -0
  31. package/styles/tokens/typography.css +1 -1
@@ -1,5 +1,4 @@
1
1
  import { ElementRef, EventEmitter, TemplateRef } from '@angular/core';
2
- import { Observable } from 'rxjs';
3
2
  import { HighlightComponent } from '../../visualization/highlight/highlight.component';
4
3
  import { InputLabelComponent } from '../input-label/input-label.component';
5
4
  import * as i0 from "@angular/core";
@@ -9,6 +8,7 @@ export declare class SingleSelectComponent<T extends SingleSelectComponent.Optio
9
8
  filterabilityOptions: SingleSelectComponent.FilterabilityOptions;
10
9
  loading: boolean;
11
10
  locked: boolean;
11
+ maxCalloutHeight: string;
12
12
  noOptionsMessage: string;
13
13
  nodeTemplate?: TemplateRef<unknown>;
14
14
  triggerTemplate?: TemplateRef<unknown>;
@@ -23,11 +23,12 @@ export declare class SingleSelectComponent<T extends SingleSelectComponent.Optio
23
23
  getFilterPlaceholder(): string;
24
24
  allowedOpen(): void;
25
25
  close(): void;
26
+ selectOption(newlySelectedOption: U): void;
26
27
  trackByHeader(i: number, group: SingleSelectComponent.OptionGroup<U>): string;
27
28
  trackByOption(_: number, option: U): string;
28
29
  open: boolean;
29
30
  static ɵfac: i0.ɵɵFactoryDeclaration<SingleSelectComponent<any, any>, never>;
30
- static ɵcmp: i0.ɵɵComponentDeclaration<SingleSelectComponent<any, any>, "riv-single-select", never, { "groups": "groups"; "selectedOption": "selectedOption"; "filterabilityOptions": "filterabilityOptions"; "loading": "loading"; "locked": "locked"; "noOptionsMessage": "noOptionsMessage"; "nodeTemplate": "nodeTemplate"; "triggerTemplate": "triggerTemplate"; "placeholder": "placeholder"; "disabled": "disabled"; }, { "filterQueryChange": "filterQueryChange"; "selectedOptionChange": "selectedOptionChange"; }, never, ["[footer]"], false>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<SingleSelectComponent<any, any>, "riv-single-select", never, { "groups": "groups"; "selectedOption": "selectedOption"; "filterabilityOptions": "filterabilityOptions"; "loading": "loading"; "locked": "locked"; "maxCalloutHeight": "maxCalloutHeight"; "noOptionsMessage": "noOptionsMessage"; "nodeTemplate": "nodeTemplate"; "triggerTemplate": "triggerTemplate"; "placeholder": "placeholder"; "disabled": "disabled"; }, { "filterQueryChange": "filterQueryChange"; "selectedOptionChange": "selectedOptionChange"; }, never, ["[footer]"], false>;
31
32
  }
32
33
  export declare namespace SingleSelectComponent {
33
34
  type Option = {
@@ -50,8 +51,4 @@ export declare namespace SingleSelectComponent {
50
51
  placeholder?: string;
51
52
  };
52
53
  function getFilterSync<T extends OptionGroup<U>, U extends Option>(groups: T[], exact?: boolean): (query: string) => T[];
53
- function getFilterAsync<T extends OptionGroup<U>, U extends Option>(query$: Observable<string>, fetcher: (query: string) => Promise<T[]>, debounceInput?: number): Observable<{
54
- loading: boolean;
55
- groups: T[];
56
- }>;
57
54
  }
@@ -0,0 +1,13 @@
1
+ import { AfterViewInit, ElementRef, OnChanges } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class FocusOnInitDirective implements AfterViewInit, OnChanges {
4
+ private readonly el;
5
+ constructor(el: ElementRef);
6
+ shouldFocus: boolean;
7
+ private focusOnChange;
8
+ ngAfterViewInit(): void;
9
+ ngOnChanges(): void;
10
+ private focus;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<FocusOnInitDirective, never>;
12
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FocusOnInitDirective, "[rivFocusOnInit]", never, { "shouldFocus": "rivFocusOnInit"; }, {}, never, never, false>;
13
+ }
@@ -1,6 +1,11 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class HelpComponent {
3
3
  help?: string;
4
+ size: HelpComponent.Size;
4
5
  static ɵfac: i0.ɵɵFactoryDeclaration<HelpComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<HelpComponent, "riv-help", never, { "help": "help"; }, {}, never, never, false>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<HelpComponent, "riv-help", never, { "help": "help"; "size": "size"; }, {}, never, never, false>;
7
+ }
8
+ export declare namespace HelpComponent {
9
+ const Sizes: readonly [12, 16];
10
+ type Size = (typeof HelpComponent.Sizes)[number];
6
11
  }
@@ -14,36 +14,38 @@ import * as i12 from "./input/date-range/date-range.component";
14
14
  import * as i13 from "./format/pipes/days.pipe";
15
15
  import * as i14 from "./format/pipes/dollars.pipe";
16
16
  import * as i15 from "./visualization/donut/donut.component";
17
- import * as i16 from "./visualization/funnel-chart/funnel-chart.component";
18
- import * as i17 from "./modal/help/help.component";
19
- import * as i18 from "./visualization/highlight/highlight.component";
20
- import * as i19 from "./icon/icon.component";
21
- import * as i20 from "./input/input-label/input-label.component";
22
- import * as i21 from "./visualization/issue/issue.component";
23
- import * as i22 from "./visualization/legend-item/legend-item.component";
24
- import * as i23 from "./navigation/link/link.component";
25
- import * as i24 from "./load/loading/loading.component";
26
- import * as i25 from "./load/loading-cover/loading-cover.component";
27
- import * as i26 from "./modal/callout/lock-scroll.directive";
28
- import * as i27 from "./visualization/metric/metric.component";
29
- import * as i28 from "./format/pipes/number.pipe";
30
- import * as i29 from "./format/pipes/option-group.pipe";
31
- import * as i30 from "./format/pipes/percentage.pipe";
32
- import * as i31 from "./input/single-select/single-select.component";
33
- import * as i32 from "./format/pipes/small-currency.pipe";
34
- import * as i33 from "./visualization/stacked-column/stacked-column.component";
35
- import * as i34 from "./visualization/stacked-row/stacked-row.component";
36
- import * as i35 from "./format/svg-text-truncate/svg-text-truncate.directive";
37
- import * as i36 from "./content-toggle/text-toggle/text-toggle.component";
38
- import * as i37 from "./visualization/time-series/time-series.component";
39
- import * as i38 from "./modal/tooltip/tooltip.component";
40
- import * as i39 from "./modal/tooltip/tooltip.directive";
41
- import * as i40 from "./visualization/trend/trend.component";
42
- import * as i41 from "./format/truncate/truncate.component";
43
- import * as i42 from "./visualization/zero-state/zero-state.component";
44
- import * as i43 from "@angular/common";
17
+ import * as i16 from "./interaction/focus-on-init.directive";
18
+ import * as i17 from "./visualization/funnel-chart/funnel-chart.component";
19
+ import * as i18 from "./modal/help/help.component";
20
+ import * as i19 from "./visualization/highlight/highlight.component";
21
+ import * as i20 from "./icon/icon.component";
22
+ import * as i21 from "./input/input-label/input-label.component";
23
+ import * as i22 from "./visualization/issue/issue.component";
24
+ import * as i23 from "./visualization/legend-item/legend-item.component";
25
+ import * as i24 from "./navigation/link/link.component";
26
+ import * as i25 from "./load/loading/loading.component";
27
+ import * as i26 from "./load/loading-cover/loading-cover.component";
28
+ import * as i27 from "./modal/callout/lock-scroll.directive";
29
+ import * as i28 from "./visualization/metric/metric.component";
30
+ import * as i29 from "./format/pipes/number.pipe";
31
+ import * as i30 from "./format/pipes/option-group.pipe";
32
+ import * as i31 from "./format/pipes/percentage.pipe";
33
+ import * as i32 from "./input/single-select/single-select.component";
34
+ import * as i33 from "./size/size.directive";
35
+ import * as i34 from "./format/pipes/small-currency.pipe";
36
+ import * as i35 from "./visualization/stacked-column/stacked-column.component";
37
+ import * as i36 from "./visualization/stacked-row/stacked-row.component";
38
+ import * as i37 from "./format/svg-text-truncate/svg-text-truncate.directive";
39
+ import * as i38 from "./content-toggle/text-toggle/text-toggle.component";
40
+ import * as i39 from "./visualization/time-series/time-series.component";
41
+ import * as i40 from "./modal/tooltip/tooltip.component";
42
+ import * as i41 from "./modal/tooltip/tooltip.directive";
43
+ import * as i42 from "./visualization/trend/trend.component";
44
+ import * as i43 from "./format/truncate/truncate.component";
45
+ import * as i44 from "./visualization/zero-state/zero-state.component";
46
+ import * as i45 from "@angular/common";
45
47
  export declare class RivModule {
46
48
  static ɵfac: i0.ɵɵFactoryDeclaration<RivModule, never>;
47
- static ɵmod: i0.ɵɵNgModuleDeclaration<RivModule, [typeof i1.ButtonComponent, typeof i2.CalendarComponent, typeof i3.CalloutComponent, typeof i4.CalloutDirective, typeof i5.CalloutOutletComponent, typeof i6.DataTableCellComponent, typeof i7.DataTableComponent, typeof i8.DataTableHeaderCellComponent, typeof i9.DataTableRowComponent, typeof i10.DateComponent, typeof i11.DatePipe, typeof i12.DateRangeComponent, typeof i13.DaysPipe, typeof i14.DollarsPipe, typeof i15.DonutComponent, typeof i16.FunnelChartComponent, typeof i17.HelpComponent, typeof i18.HighlightComponent, typeof i19.IconComponent, typeof i20.InputLabelComponent, typeof i21.IssueComponent, typeof i22.LegendItemComponent, typeof i23.LinkComponent, typeof i24.LoadingComponent, typeof i25.LoadingCoverComponent, typeof i26.LockScrollDirective, typeof i27.MetricComponent, typeof i28.NumberPipe, typeof i29.OptionGroupPipe, typeof i30.PercentagePipe, typeof i31.SingleSelectComponent, typeof i32.SmallCurrencyPipe, typeof i33.StackedColumnComponent, typeof i34.StackedRowComponent, typeof i35.SVGTextTruncateDirective, typeof i36.TextToggleComponent, typeof i37.TimeSeriesComponent, typeof i38.TooltipComponent, typeof i39.TooltipDirective, typeof i40.TrendComponent, typeof i41.TruncateComponent, typeof i42.ZeroStateComponent], [typeof i43.CommonModule], [typeof i1.ButtonComponent, typeof i3.CalloutComponent, typeof i4.CalloutDirective, typeof i5.CalloutOutletComponent, typeof i6.DataTableCellComponent, typeof i7.DataTableComponent, typeof i8.DataTableHeaderCellComponent, typeof i9.DataTableRowComponent, typeof i10.DateComponent, typeof i11.DatePipe, typeof i12.DateRangeComponent, typeof i13.DaysPipe, typeof i14.DollarsPipe, typeof i15.DonutComponent, typeof i16.FunnelChartComponent, typeof i17.HelpComponent, typeof i18.HighlightComponent, typeof i19.IconComponent, typeof i20.InputLabelComponent, typeof i21.IssueComponent, typeof i22.LegendItemComponent, typeof i23.LinkComponent, typeof i24.LoadingComponent, typeof i25.LoadingCoverComponent, typeof i27.MetricComponent, typeof i28.NumberPipe, typeof i29.OptionGroupPipe, typeof i30.PercentagePipe, typeof i31.SingleSelectComponent, typeof i32.SmallCurrencyPipe, typeof i33.StackedColumnComponent, typeof i34.StackedRowComponent, typeof i35.SVGTextTruncateDirective, typeof i36.TextToggleComponent, typeof i37.TimeSeriesComponent, typeof i38.TooltipComponent, typeof i39.TooltipDirective, typeof i40.TrendComponent, typeof i41.TruncateComponent, typeof i42.ZeroStateComponent]>;
49
+ static ɵmod: i0.ɵɵNgModuleDeclaration<RivModule, [typeof i1.ButtonComponent, typeof i2.CalendarComponent, typeof i3.CalloutComponent, typeof i4.CalloutDirective, typeof i5.CalloutOutletComponent, typeof i6.DataTableCellComponent, typeof i7.DataTableComponent, typeof i8.DataTableHeaderCellComponent, typeof i9.DataTableRowComponent, typeof i10.DateComponent, typeof i11.DatePipe, typeof i12.DateRangeComponent, typeof i13.DaysPipe, typeof i14.DollarsPipe, typeof i15.DonutComponent, typeof i16.FocusOnInitDirective, typeof i17.FunnelChartComponent, typeof i18.HelpComponent, typeof i19.HighlightComponent, typeof i20.IconComponent, typeof i21.InputLabelComponent, typeof i22.IssueComponent, typeof i23.LegendItemComponent, typeof i24.LinkComponent, typeof i25.LoadingComponent, typeof i26.LoadingCoverComponent, typeof i27.LockScrollDirective, typeof i28.MetricComponent, typeof i29.NumberPipe, typeof i30.OptionGroupPipe, typeof i31.PercentagePipe, typeof i32.SingleSelectComponent, typeof i33.SizeDirective, typeof i34.SmallCurrencyPipe, typeof i35.StackedColumnComponent, typeof i36.StackedRowComponent, typeof i37.SVGTextTruncateDirective, typeof i38.TextToggleComponent, typeof i39.TimeSeriesComponent, typeof i40.TooltipComponent, typeof i41.TooltipDirective, typeof i42.TrendComponent, typeof i43.TruncateComponent, typeof i44.ZeroStateComponent], [typeof i45.CommonModule], [typeof i1.ButtonComponent, typeof i3.CalloutComponent, typeof i4.CalloutDirective, typeof i5.CalloutOutletComponent, typeof i6.DataTableCellComponent, typeof i7.DataTableComponent, typeof i8.DataTableHeaderCellComponent, typeof i9.DataTableRowComponent, typeof i10.DateComponent, typeof i11.DatePipe, typeof i12.DateRangeComponent, typeof i13.DaysPipe, typeof i14.DollarsPipe, typeof i15.DonutComponent, typeof i16.FocusOnInitDirective, typeof i17.FunnelChartComponent, typeof i18.HelpComponent, typeof i19.HighlightComponent, typeof i20.IconComponent, typeof i21.InputLabelComponent, typeof i22.IssueComponent, typeof i23.LegendItemComponent, typeof i24.LinkComponent, typeof i25.LoadingComponent, typeof i26.LoadingCoverComponent, typeof i28.MetricComponent, typeof i29.NumberPipe, typeof i30.OptionGroupPipe, typeof i31.PercentagePipe, typeof i32.SingleSelectComponent, typeof i33.SizeDirective, typeof i34.SmallCurrencyPipe, typeof i35.StackedColumnComponent, typeof i36.StackedRowComponent, typeof i37.SVGTextTruncateDirective, typeof i38.TextToggleComponent, typeof i39.TimeSeriesComponent, typeof i40.TooltipComponent, typeof i41.TooltipDirective, typeof i42.TrendComponent, typeof i43.TruncateComponent, typeof i44.ZeroStateComponent]>;
48
50
  static ɵinj: i0.ɵɵInjectorDeclaration<RivModule>;
49
51
  }
@@ -0,0 +1,16 @@
1
+ import { Size } from './size.directive';
2
+ import * as i0 from "@angular/core";
3
+ interface SizeChanges extends Size {
4
+ element: Element;
5
+ }
6
+ export declare class ContentService {
7
+ private sizeChangesSource;
8
+ sizeChanges$: import("rxjs").Observable<SizeChanges>;
9
+ resizeObserver: ResizeObserver;
10
+ constructor();
11
+ observe(element: HTMLElement): void;
12
+ unobserve(element: HTMLElement): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<ContentService, never>;
14
+ static ɵprov: i0.ɵɵInjectableDeclaration<ContentService>;
15
+ }
16
+ export {};
@@ -0,0 +1,20 @@
1
+ import { ElementRef, EventEmitter, NgZone, OnDestroy, OnInit } from '@angular/core';
2
+ import { Subscription } from 'rxjs';
3
+ import { ContentService } from './content.service';
4
+ import * as i0 from "@angular/core";
5
+ export interface Size {
6
+ width: number;
7
+ height: number;
8
+ }
9
+ export declare class SizeDirective implements OnInit, OnDestroy {
10
+ private readonly elementRef;
11
+ private readonly contentService;
12
+ private readonly zone;
13
+ constructor(elementRef: ElementRef<HTMLElement>, contentService: ContentService, zone: NgZone);
14
+ rivClientSize: EventEmitter<Size>;
15
+ subscription: Subscription;
16
+ ngOnInit(): void;
17
+ ngOnDestroy(): void;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<SizeDirective, never>;
19
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SizeDirective, "[rivClientSize]", never, {}, { "rivClientSize": "rivClientSize"; }, never, never, false>;
20
+ }
@@ -8,23 +8,28 @@ export declare class StackedColumnComponent {
8
8
  set input(v: StackedColumnComponent.Stack[]);
9
9
  get input(): StackedColumnComponent.Stack[];
10
10
  private readonly width$;
11
- set width(v: number);
12
- get width(): number;
13
- private readonly height$;
14
- set height(v: number);
15
- get height(): number;
11
+ protected set width(v: number);
12
+ private readonly HEIGHT;
16
13
  valueFormatter: (v: number) => string;
17
14
  private readonly interval$;
18
15
  set interval(v: Interval);
19
16
  get interval(): Interval;
20
17
  readonly controls?: TemplateRef<any>;
18
+ private readonly COLUMN_WIDTHS;
19
+ private readonly MIN_COLUMN_WIDTH;
20
+ private readonly numInvisibleColumns$;
21
+ private readonly numVisibleColumns$;
22
+ private readonly maxColumns$;
23
+ getXStepsInRange(interval: Interval, minDate: Date, maxDate: Date): number;
21
24
  private readonly allowedIntervals$;
22
25
  readonly intervalOptions$: Observable<SingleSelectComponent.Option[]>;
23
26
  readonly selectedIntervalOption$: Observable<SingleSelectComponent.Option | null>;
24
27
  readonly selectedInterval$: Observable<"day" | "month" | "year" | "quarter" | "week">;
25
28
  setIntervalOption(option: SingleSelectComponent.Option): void;
29
+ private columnWidth$;
26
30
  readonly binnedData$: Observable<StackedColumnComponent.Stack[]>;
27
31
  readonly LEFT_OFFSET = 48;
32
+ readonly COLUMN_PADDING = 4;
28
33
  readonly drawData$: Observable<{
29
34
  columnWidth: number;
30
35
  hoverBands: {
@@ -73,7 +78,7 @@ export declare class StackedColumnComponent {
73
78
  }[];
74
79
  } | null>;
75
80
  static ɵfac: i0.ɵɵFactoryDeclaration<StackedColumnComponent, never>;
76
- static ɵcmp: i0.ɵɵComponentDeclaration<StackedColumnComponent, "riv-stacked-column", never, { "input": "input"; "width": "width"; "height": "height"; "valueFormatter": "valueFormatter"; "interval": "interval"; }, {}, never, never, false>;
81
+ static ɵcmp: i0.ɵɵComponentDeclaration<StackedColumnComponent, "riv-stacked-column", never, { "input": "input"; "valueFormatter": "valueFormatter"; "interval": "interval"; }, {}, never, never, false>;
77
82
  }
78
83
  export declare namespace StackedColumnComponent {
79
84
  type Value = {
@@ -1,4 +1,3 @@
1
1
  import { StackedColumnComponent } from './stacked-column.component';
2
2
  export declare function getDateRange(stacks: StackedColumnComponent.Stack[]): [Date, Date];
3
3
  export declare function pointReducer(points: StackedColumnComponent.Value[]): number;
4
- export declare function getColumnWidth(numColumns: number): 8 | 16 | 40 | 72;
@@ -7,23 +7,19 @@ export declare class StackedRowComponent {
7
7
  set input(v: StackedRowComponent.RowStack[]);
8
8
  get input(): StackedRowComponent.RowStack[];
9
9
  private readonly width$;
10
- set width(v: number);
11
- get width(): number;
12
- private readonly height$;
13
- set height(v: number | null);
14
- get height(): number | null;
10
+ protected set width(v: number);
15
11
  valueFormatter: (v: number) => string;
16
12
  private readonly zeroStateMessage$;
17
13
  set zeroStateMessage(v: string);
18
14
  get zeroStateMessage(): string;
15
+ private readonly chartAndRowHeights$;
16
+ readonly TARGET_HEIGHT = 300;
19
17
  readonly RECTANGLE_HEIGHTS: {
20
18
  MIN_HEIGHT: number;
21
19
  MAX_HEIGHT: number;
22
20
  };
23
21
  readonly SECTION_HEIGHTS: {
24
22
  X_AXIS_LABEL: number;
25
- PER_ROW: () => number;
26
- PER_RECTANGLE: () => number;
27
23
  };
28
24
  readonly SECTION_WIDTHS: {
29
25
  ROW_NAME: number;
@@ -42,8 +38,8 @@ export declare class StackedRowComponent {
42
38
  locationOfXAxisZero(): number;
43
39
  locationOfXAxisEnd(width: number): number;
44
40
  locationOfXAxisTick(): number;
45
- getTopOfRow(rowIndex: number): number;
46
- getDrawnData(rowStacks: StackedRowComponent.RowStack[], width: number, height: number): {
41
+ getTopOfRow(rowIndex: number, rowHeight: number): number;
42
+ getDrawnData(rowStacks: StackedRowComponent.RowStack[], width: number, chartHeight: number, rowHeight: number): {
47
43
  legendItems: {
48
44
  label: string;
49
45
  colorToken: string;
@@ -57,9 +53,9 @@ export declare class StackedRowComponent {
57
53
  xScale: ScaleLinear<number, number, never>;
58
54
  xTicks: number[];
59
55
  } | null;
60
- createRectanglesFromRows(displayRows: RowDisplayInfo[], xScale: ScaleLinear<number, number, never>): RowRectangle[];
61
- getRowNamesToDraw(displayRows: RowDisplayInfo[]): RowLabel[];
62
- getRowTotalsToDraw(displayRows: RowDisplayInfo[], width: number): RowLabel[];
56
+ createRectanglesFromRows(displayRows: RowDisplayInfo[], xScale: ScaleLinear<number, number, never>, rowHeight: number): RowRectangle[];
57
+ getRowNamesToDraw(displayRows: RowDisplayInfo[], rowHeight: number): RowLabel[];
58
+ getRowTotalsToDraw(displayRows: RowDisplayInfo[], width: number, rowHeight: number): RowLabel[];
63
59
  readonly drawData$: Observable<StackedRowDrawData | null>;
64
60
  readonly empty$: Observable<boolean>;
65
61
  readonly hoveredRectangle$: BehaviorSubject<{
@@ -78,7 +74,7 @@ export declare class StackedRowComponent {
78
74
  }[];
79
75
  } | null>;
80
76
  static ɵfac: i0.ɵɵFactoryDeclaration<StackedRowComponent, never>;
81
- static ɵcmp: i0.ɵɵComponentDeclaration<StackedRowComponent, "riv-stacked-row", never, { "input": "input"; "width": "width"; "height": "height"; "valueFormatter": "valueFormatter"; "zeroStateMessage": "zeroStateMessage"; }, {}, never, never, false>;
77
+ static ɵcmp: i0.ɵɵComponentDeclaration<StackedRowComponent, "riv-stacked-row", never, { "input": "input"; "valueFormatter": "valueFormatter"; "zeroStateMessage": "zeroStateMessage"; }, {}, never, never, false>;
82
78
  }
83
79
  export declare namespace StackedRowComponent {
84
80
  type RowElement = {
@@ -9,11 +9,8 @@ export declare class TimeSeriesComponent {
9
9
  set input(v: TimeSeriesComponent.TimeSeriesInput);
10
10
  get input(): TimeSeriesComponent.TimeSeriesInput;
11
11
  private readonly width$;
12
- set width(v: number);
13
- get width(): number;
14
- private readonly height$;
15
- set height(v: number);
16
- get height(): number;
12
+ protected set width(v: number);
13
+ private readonly HEIGHT;
17
14
  private readonly zeroStateMessage$;
18
15
  set zeroStateMessage(v: string);
19
16
  get zeroStateMessage(): string;
@@ -24,6 +21,7 @@ export declare class TimeSeriesComponent {
24
21
  readonly BOTTOM_PADDING = 8;
25
22
  readonly Y_TICK_COUNT = 5;
26
23
  readonly X_MINOR_TICK_LIMIT = 15;
24
+ readonly POINT_RADIUS = 3.5;
27
25
  readonly dateRange$: Observable<[Date, Date]>;
28
26
  private readonly interval$;
29
27
  set interval(v: Interval);
@@ -32,6 +30,7 @@ export declare class TimeSeriesComponent {
32
30
  private readonly allowLegendToggle$;
33
31
  set allowLegendToggle(v: boolean);
34
32
  get allowLegendToggle(): boolean;
33
+ private readonly maxPoints$;
35
34
  private readonly allowedIntervals$;
36
35
  readonly intervalOptions$: Observable<SingleSelectComponent.Option[]>;
37
36
  readonly selectedIntervalOption$: Observable<SingleSelectComponent.Option | null>;
@@ -59,7 +58,7 @@ export declare class TimeSeriesComponent {
59
58
  }[];
60
59
  } | null>;
61
60
  static ɵfac: i0.ɵɵFactoryDeclaration<TimeSeriesComponent, never>;
62
- static ɵcmp: i0.ɵɵComponentDeclaration<TimeSeriesComponent, "riv-time-series", never, { "input": "input"; "width": "width"; "height": "height"; "zeroStateMessage": "zeroStateMessage"; "interval": "interval"; "allowLegendToggle": "allowLegendToggle"; }, {}, never, never, false>;
61
+ static ɵcmp: i0.ɵɵComponentDeclaration<TimeSeriesComponent, "riv-time-series", never, { "input": "input"; "zeroStateMessage": "zeroStateMessage"; "interval": "interval"; "allowLegendToggle": "allowLegendToggle"; }, {}, never, never, false>;
63
62
  }
64
63
  export declare namespace TimeSeriesComponent {
65
64
  type Series = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rivet-health/design-system",
3
- "version": "5.2.2",
3
+ "version": "5.4.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^14.0.0",
6
6
  "@angular/core": "^14.0.0",
package/public-api.d.ts CHANGED
@@ -14,6 +14,7 @@ export * from './lib/input/date-range/date-range.component';
14
14
  export * from './lib/input/date/date.component';
15
15
  export * from './lib/input/input-label/input-label.component';
16
16
  export * from './lib/input/single-select/single-select.component';
17
+ export * from './lib/interaction/focus-on-init.directive';
17
18
  export * from './lib/load/loading-cover/loading-cover.component';
18
19
  export * from './lib/load/loading/loading.component';
19
20
  export * from './lib/modal/callout/callout-outlet.component';
@@ -24,6 +25,7 @@ export * from './lib/modal/tooltip/tooltip.component';
24
25
  export * from './lib/modal/tooltip/tooltip.directive';
25
26
  export * from './lib/navigation/link/link.component';
26
27
  export * from './lib/riv.module';
28
+ export * from './lib/size/size.directive';
27
29
  export * from './lib/visualization/data-table/data-table-cell.component';
28
30
  export * from './lib/visualization/data-table/data-table-header-cell.component';
29
31
  export * from './lib/visualization/data-table/data-table-row.component';
@@ -85,7 +85,7 @@
85
85
  * @presenter FontFamily
86
86
  */
87
87
 
88
- --title-01: var(--font-weight-normal) var(--type-1-font-size) /
88
+ --title-01: var(--font-weight-heavy) var(--type-1-font-size) /
89
89
  var(--type-1-line-height-1) var(--font-stack);
90
90
  --title-02: var(--font-weight-heavy) var(--type-2-font-size) /
91
91
  var(--type-2-line-height-0) var(--font-stack);