@rivet-health/design-system 2.0.0 → 2.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/content-toggle/text-toggle/text-toggle.component.mjs +1 -1
- package/esm2020/lib/icon/icon.component.mjs +9 -4
- package/esm2020/lib/icon/icons.mjs +2 -2
- package/esm2020/lib/riv.module.mjs +13 -3
- package/esm2020/lib/visualization/donut/donut.component.mjs +4 -3
- package/esm2020/lib/visualization/legend-item/legend-item.component.mjs +15 -4
- package/esm2020/lib/visualization/stacked-column/stacked-column.component.mjs +174 -0
- package/esm2020/lib/visualization/time-series/time-series.component.mjs +4 -3
- package/esm2020/lib/visualization/zero-state/zero-state.component.mjs +16 -0
- package/esm2020/public-api.mjs +3 -1
- package/fesm2015/rivet-health-design-system.mjs +222 -19
- package/fesm2015/rivet-health-design-system.mjs.map +1 -1
- package/fesm2020/rivet-health-design-system.mjs +218 -19
- package/fesm2020/rivet-health-design-system.mjs.map +1 -1
- package/lib/icon/icon.component.d.ts +3 -1
- package/lib/icon/icons.d.ts +1 -1
- package/lib/riv.module.d.ts +6 -4
- package/lib/visualization/legend-item/legend-item.component.d.ts +5 -1
- package/lib/visualization/stacked-column/stacked-column.component.d.ts +66 -0
- package/lib/visualization/zero-state/zero-state.component.d.ts +6 -0
- package/package.json +2 -1
- package/public-api.d.ts +2 -0
|
@@ -7,9 +7,11 @@ export declare class IconComponent implements OnDestroy {
|
|
|
7
7
|
constructor(element: ElementRef<HTMLElement>);
|
|
8
8
|
set name(value: IconNames | null);
|
|
9
9
|
size: IconSize;
|
|
10
|
+
customSize: number | undefined;
|
|
11
|
+
get iconSize(): number;
|
|
10
12
|
strokeWidth: number | undefined;
|
|
11
13
|
get calculateStrokeWidth(): number;
|
|
12
14
|
ngOnDestroy(): void;
|
|
13
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<IconComponent, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "riv-icon", never, { "name": "name"; "size": "size"; "strokeWidth": "strokeWidth"; }, {}, never, never, false>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "riv-icon", never, { "name": "name"; "size": "size"; "customSize": "customSize"; "strokeWidth": "strokeWidth"; }, {}, never, never, false>;
|
|
15
17
|
}
|
package/lib/icon/icons.d.ts
CHANGED
|
@@ -119,7 +119,7 @@ export declare const icons: {
|
|
|
119
119
|
ZoomOut: string;
|
|
120
120
|
};
|
|
121
121
|
export declare type IconNames = keyof typeof icons;
|
|
122
|
-
export declare const IconSizes: readonly [12, 16, 24];
|
|
122
|
+
export declare const IconSizes: readonly [8, 12, 16, 24];
|
|
123
123
|
export declare type IconSize = (typeof IconSizes)[number];
|
|
124
124
|
export declare const iconsMap: {
|
|
125
125
|
[key: string]: string;
|
package/lib/riv.module.d.ts
CHANGED
|
@@ -10,11 +10,13 @@ import * as i8 from "./visualization/donut/donut.component";
|
|
|
10
10
|
import * as i9 from "./icon/icon.component";
|
|
11
11
|
import * as i10 from "./visualization/legend-item/legend-item.component";
|
|
12
12
|
import * as i11 from "./visualization/metric/metric.component";
|
|
13
|
-
import * as i12 from "./
|
|
14
|
-
import * as i13 from "./
|
|
15
|
-
import * as i14 from "
|
|
13
|
+
import * as i12 from "./visualization/stacked-column/stacked-column.component";
|
|
14
|
+
import * as i13 from "./content-toggle/text-toggle/text-toggle.component";
|
|
15
|
+
import * as i14 from "./visualization/time-series/time-series.component";
|
|
16
|
+
import * as i15 from "./visualization/zero-state/zero-state.component";
|
|
17
|
+
import * as i16 from "@angular/common";
|
|
16
18
|
export declare class RivModule {
|
|
17
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<RivModule, never>;
|
|
18
|
-
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.DonutComponent, typeof i9.IconComponent, typeof i10.LegendItemComponent, typeof i11.MetricComponent, typeof i12.
|
|
20
|
+
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.DonutComponent, typeof i9.IconComponent, typeof i10.LegendItemComponent, typeof i11.MetricComponent, typeof i12.StackedColumnComponent, typeof i13.TextToggleComponent, typeof i14.TimeSeriesComponent, typeof i15.ZeroStateComponent], [typeof i16.CommonModule], [typeof i1.CalloutComponent, typeof i2.CalloutDirective, typeof i3.CalloutOutletComponent, typeof i4.DataTableCellComponent, typeof i5.DataTableComponent, typeof i6.DataTableHeaderCellComponent, typeof i7.DataTableRowComponent, typeof i8.DonutComponent, typeof i9.IconComponent, typeof i10.LegendItemComponent, typeof i11.MetricComponent, typeof i12.StackedColumnComponent, typeof i13.TextToggleComponent, typeof i14.TimeSeriesComponent, typeof i15.ZeroStateComponent]>;
|
|
19
21
|
static ɵinj: i0.ɵɵInjectorDeclaration<RivModule>;
|
|
20
22
|
}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class LegendItemComponent {
|
|
3
4
|
label: string;
|
|
4
5
|
colorToken: string;
|
|
6
|
+
style: 'solid' | 'striped';
|
|
7
|
+
visibility: 'visible' | 'hidden' | 'locked';
|
|
5
8
|
get backgroundColor(): string;
|
|
9
|
+
itemClick: EventEmitter<any>;
|
|
6
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<LegendItemComponent, never>;
|
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LegendItemComponent, "riv-legend-item", never, { "label": "label"; "colorToken": "colorToken"; }, {}, never, never, false>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LegendItemComponent, "riv-legend-item", never, { "label": "label"; "colorToken": "colorToken"; "style": "style"; "visibility": "visibility"; }, { "itemClick": "itemClick"; }, never, never, false>;
|
|
8
12
|
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { BehaviorSubject } from 'rxjs';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare type Value = {
|
|
4
|
+
date: Date;
|
|
5
|
+
value: number;
|
|
6
|
+
};
|
|
7
|
+
export declare type Series = {
|
|
8
|
+
label: string;
|
|
9
|
+
colorToken: string;
|
|
10
|
+
data: Value[];
|
|
11
|
+
style?: 'solid' | 'striped';
|
|
12
|
+
};
|
|
13
|
+
export declare type Stack = Series[];
|
|
14
|
+
export declare class StackedColumnComponent {
|
|
15
|
+
private readonly input$;
|
|
16
|
+
set input(v: Stack[]);
|
|
17
|
+
private readonly width$;
|
|
18
|
+
set width(v: number);
|
|
19
|
+
private readonly height$;
|
|
20
|
+
set height(v: number);
|
|
21
|
+
valueFormatter: (v: number) => string;
|
|
22
|
+
readonly drawData$: import("rxjs").Observable<{
|
|
23
|
+
columnWidth: number;
|
|
24
|
+
hoverBands: {
|
|
25
|
+
dateValue: number;
|
|
26
|
+
x: number;
|
|
27
|
+
y: number;
|
|
28
|
+
width: number;
|
|
29
|
+
height: number;
|
|
30
|
+
}[];
|
|
31
|
+
rects: {
|
|
32
|
+
dateValue: number;
|
|
33
|
+
x: number;
|
|
34
|
+
y: number;
|
|
35
|
+
width: number;
|
|
36
|
+
height: number;
|
|
37
|
+
fill: string;
|
|
38
|
+
striped: boolean;
|
|
39
|
+
seriesPoint: Value & {
|
|
40
|
+
series: Series;
|
|
41
|
+
};
|
|
42
|
+
}[];
|
|
43
|
+
viewBox: string;
|
|
44
|
+
xTicks: {
|
|
45
|
+
dateValue: number;
|
|
46
|
+
label: string;
|
|
47
|
+
x: number;
|
|
48
|
+
}[];
|
|
49
|
+
yScale: import("d3-scale").ScaleLinear<number, number, never>;
|
|
50
|
+
yTicks: number[];
|
|
51
|
+
}>;
|
|
52
|
+
readonly empty$: import("rxjs").Observable<boolean>;
|
|
53
|
+
readonly hoveredBand$: BehaviorSubject<{
|
|
54
|
+
dateValue: number;
|
|
55
|
+
event: MouseEvent;
|
|
56
|
+
} | null>;
|
|
57
|
+
readonly callout$: import("rxjs").Observable<{
|
|
58
|
+
anchor: DOMRect;
|
|
59
|
+
metrics: {
|
|
60
|
+
label: string;
|
|
61
|
+
value: string;
|
|
62
|
+
}[];
|
|
63
|
+
} | null>;
|
|
64
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StackedColumnComponent, never>;
|
|
65
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StackedColumnComponent, "riv-stacked-column", never, { "input": "input"; "width": "width"; "height": "height"; "valueFormatter": "valueFormatter"; }, {}, never, never, false>;
|
|
66
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ZeroStateComponent {
|
|
3
|
+
message: string;
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ZeroStateComponent, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ZeroStateComponent, "riv-zero-state", never, { "message": "message"; }, {}, never, never, false>;
|
|
6
|
+
}
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rivet-health/design-system",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^14.0.0",
|
|
6
6
|
"@angular/core": "^14.0.0",
|
|
7
|
+
"d3-array": "^3.2.4",
|
|
7
8
|
"d3-scale": "^4.0.2",
|
|
8
9
|
"d3-shape": "^3.2.0",
|
|
9
10
|
"d3-time": "^3.1.0",
|
package/public-api.d.ts
CHANGED
|
@@ -11,4 +11,6 @@ export * from './lib/visualization/data-table/data-table.component';
|
|
|
11
11
|
export * from './lib/visualization/donut/donut.component';
|
|
12
12
|
export * from './lib/visualization/legend-item/legend-item.component';
|
|
13
13
|
export * from './lib/visualization/metric/metric.component';
|
|
14
|
+
export * from './lib/visualization/stacked-column/stacked-column.component';
|
|
14
15
|
export * from './lib/visualization/time-series/time-series.component';
|
|
16
|
+
export * from './lib/visualization/zero-state/zero-state.component';
|