@rivet-health/design-system 32.5.0 → 33.1.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/navigation/views/state.mjs +4 -4
- package/esm2020/lib/navigation/views/views/views.component.mjs +22 -7
- package/esm2020/lib/visualization/chart/chart.component.mjs +18 -9
- package/esm2020/lib/visualization/chart/chart.mjs +321 -16
- package/fesm2015/rivet-health-design-system.mjs +355 -27
- package/fesm2015/rivet-health-design-system.mjs.map +1 -1
- package/fesm2020/rivet-health-design-system.mjs +352 -27
- package/fesm2020/rivet-health-design-system.mjs.map +1 -1
- package/lib/navigation/views/views/views.component.d.ts +3 -0
- package/lib/visualization/chart/chart.component.d.ts +14 -1
- package/lib/visualization/chart/chart.d.ts +20 -3
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ElementRef, OnInit, TrackByFunction } from '@angular/core';
|
|
2
2
|
import { Observable, Subject } from 'rxjs';
|
|
3
|
+
import { IconComponent } from '../../../icon/icon.component';
|
|
3
4
|
import { RivViews } from '../state';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class ViewsComponent<U extends RivViews.User, V extends RivViews.View<U>> implements OnInit {
|
|
@@ -17,6 +18,8 @@ export declare class ViewsComponent<U extends RivViews.User, V extends RivViews.
|
|
|
17
18
|
showLinkCopiedToast?: Observable<boolean>;
|
|
18
19
|
ngOnInit(): void;
|
|
19
20
|
trackById: TrackByFunction<RivViews.FullView<U, V>>;
|
|
21
|
+
getPermissionIcon(permission: RivViews.ViewPermission): IconComponent.Name;
|
|
22
|
+
getPermissionDescription(permission: RivViews.ViewPermission): string;
|
|
20
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<ViewsComponent<any, any>, never>;
|
|
21
24
|
static ɵcmp: i0.ɵɵComponentDeclaration<ViewsComponent<any, any>, "riv-views", never, { "manager": "manager"; "sideSheetTopOffset": "sideSheetTopOffset"; }, {}, never, never, false>;
|
|
22
25
|
}
|
|
@@ -5,7 +5,9 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
export declare class ChartComponent {
|
|
6
6
|
container?: ElementRef;
|
|
7
7
|
moreTextContainer?: ElementRef;
|
|
8
|
-
|
|
8
|
+
height$: BehaviorSubject<number>;
|
|
9
|
+
set height(w: number);
|
|
10
|
+
get height(): number;
|
|
9
11
|
width$: BehaviorSubject<number>;
|
|
10
12
|
set width(w: number);
|
|
11
13
|
get width(): number;
|
|
@@ -36,6 +38,7 @@ export declare class ChartComponent {
|
|
|
36
38
|
height: number;
|
|
37
39
|
}[][];
|
|
38
40
|
arcs: (string | null)[];
|
|
41
|
+
horizontalBars: (string | null)[][];
|
|
39
42
|
viewBox: string;
|
|
40
43
|
data: {
|
|
41
44
|
ys: {
|
|
@@ -43,6 +46,15 @@ export declare class ChartComponent {
|
|
|
43
46
|
label: string;
|
|
44
47
|
values: number[];
|
|
45
48
|
}[];
|
|
49
|
+
type: "labeled";
|
|
50
|
+
x: string[];
|
|
51
|
+
} | {
|
|
52
|
+
ys: {
|
|
53
|
+
hidden: boolean | undefined;
|
|
54
|
+
label: string;
|
|
55
|
+
values: number[];
|
|
56
|
+
}[];
|
|
57
|
+
type: "timeseries";
|
|
46
58
|
x: number[];
|
|
47
59
|
};
|
|
48
60
|
} | null>;
|
|
@@ -61,6 +73,7 @@ export declare class ChartComponent {
|
|
|
61
73
|
moreTextWidth: number;
|
|
62
74
|
baseLegendItemWidth: number;
|
|
63
75
|
widthPerLetter: number;
|
|
76
|
+
leftLabelMaxSize: number;
|
|
64
77
|
firstHiddenLegendItemIndex$: import("rxjs").Observable<number>;
|
|
65
78
|
moreClick(): void;
|
|
66
79
|
mouseoverLegend(): void;
|
|
@@ -8,14 +8,24 @@ export declare namespace Chart {
|
|
|
8
8
|
export function chart(config: Config, data: Data, dimensions: Dimensions): RenderedChart;
|
|
9
9
|
export function lines(config: Config, allData: Data, dimensions: Dimensions): RenderedChart;
|
|
10
10
|
export function areas(config: Config, allData: Data, dimensions: Dimensions): RenderedChart;
|
|
11
|
-
export function bars(config:
|
|
11
|
+
export function bars(config: BarConfig, allData: Data, dimensions: Dimensions): RenderedChart;
|
|
12
|
+
export function horizontalBars(config: BarConfig, allData: Data, dimensions: Dimensions): RenderedChart;
|
|
12
13
|
export function arcs(config: Config, allData: Data, dimensions: Dimensions): RenderedChart;
|
|
13
|
-
export
|
|
14
|
+
export const LEFT_PADDING_LABEL_MAX = 192;
|
|
15
|
+
export type Data = LabeledData | TimeseriesData;
|
|
16
|
+
type BaseData = {
|
|
14
17
|
ys: {
|
|
15
18
|
label: string;
|
|
16
19
|
hidden?: boolean;
|
|
17
20
|
values: number[];
|
|
18
21
|
}[];
|
|
22
|
+
};
|
|
23
|
+
export type LabeledData = BaseData & {
|
|
24
|
+
type: 'labeled';
|
|
25
|
+
x: string[];
|
|
26
|
+
};
|
|
27
|
+
export type TimeseriesData = BaseData & {
|
|
28
|
+
type: 'timeseries';
|
|
19
29
|
x: number[];
|
|
20
30
|
};
|
|
21
31
|
type DonutData = {
|
|
@@ -42,11 +52,17 @@ export declare namespace Chart {
|
|
|
42
52
|
displayLabel?: string;
|
|
43
53
|
};
|
|
44
54
|
export type Config = BaseConfig & ({
|
|
45
|
-
type: 'line' | 'area'
|
|
55
|
+
type: 'line' | 'area';
|
|
56
|
+
} | {
|
|
57
|
+
type: 'bar' | 'horizontal-bar';
|
|
58
|
+
groupingType: 'stacked' | 'clustered';
|
|
46
59
|
} | {
|
|
47
60
|
type: 'donut';
|
|
48
61
|
donutDisplayInfo: DonutConfig;
|
|
49
62
|
});
|
|
63
|
+
type BarConfig = Extract<Config, {
|
|
64
|
+
type: 'bar' | 'horizontal-bar';
|
|
65
|
+
}>;
|
|
50
66
|
export const defaultConfig: Config;
|
|
51
67
|
export const defaultDonutConfig: Config;
|
|
52
68
|
export type Area = {
|
|
@@ -105,6 +121,7 @@ export declare namespace Chart {
|
|
|
105
121
|
areas: (string | null)[];
|
|
106
122
|
bars: Rect[][];
|
|
107
123
|
arcs: (string | null)[];
|
|
124
|
+
horizontalBars: (string | null)[][];
|
|
108
125
|
};
|
|
109
126
|
type ValueType = 'count' | 'currency' | 'percentage' | 'days';
|
|
110
127
|
export function getPipes(valueType: ValueType): {
|