@careevolution/mydatahelps-ui 2.10.0 → 2.10.1-DataVisualizations.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/dist/cjs/index.js +133 -9
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/container/BloodPressureVisualization/BloodPressureVisualization.d.ts +12 -0
- package/dist/cjs/types/components/container/BloodPressureVisualization/BloodPressureVisualization.previewdata.d.ts +2 -0
- package/dist/cjs/types/components/container/BloodPressureVisualization/BloodPressureVisualization.stories.d.ts +43 -0
- package/dist/cjs/types/components/container/BloodPressureVisualization/index.d.ts +1 -0
- package/dist/cjs/types/components/container/SeverityCalendar/SeverityCalendar.d.ts +12 -0
- package/dist/cjs/types/components/container/SeverityCalendar/SeverityCalendar.previewdata.d.ts +2 -0
- package/dist/cjs/types/components/container/SeverityCalendar/SeverityCalendar.stories.d.ts +52 -0
- package/dist/cjs/types/components/container/SeverityCalendar/index.d.ts +1 -0
- package/dist/cjs/types/components/container/index.d.ts +2 -0
- package/dist/cjs/types/components/presentational/DumbbellChart/Dumbbell.d.ts +9 -0
- package/dist/cjs/types/components/presentational/DumbbellChart/DumbbellChart.d.ts +28 -0
- package/dist/cjs/types/components/presentational/DumbbellChart/index.d.ts +1 -0
- package/dist/cjs/types/components/presentational/SingleSurveyTask/SingleSurveyTask.d.ts +6 -4
- package/dist/cjs/types/components/presentational/SingleSurveyTask/SingleSurveyTask.stories.d.ts +59 -123
- package/dist/cjs/types/components/presentational/index.d.ts +1 -0
- package/dist/cjs/types/helpers/blood-pressure-data-providers/index.d.ts +3 -0
- package/dist/cjs/types/helpers/blood-pressure-data-providers/survey-blood-pressure-data-provider.d.ts +12 -0
- package/dist/cjs/types/helpers/date-helpers.d.ts +1 -0
- package/dist/cjs/types/helpers/functions.d.ts +1 -0
- package/dist/cjs/types/helpers/query-all-survey-answers.d.ts +2 -0
- package/dist/cjs/types/index.d.ts +2 -0
- package/dist/esm/index.js +133 -9
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/container/BloodPressureVisualization/BloodPressureVisualization.d.ts +12 -0
- package/dist/esm/types/components/container/BloodPressureVisualization/BloodPressureVisualization.previewdata.d.ts +2 -0
- package/dist/esm/types/components/container/BloodPressureVisualization/BloodPressureVisualization.stories.d.ts +43 -0
- package/dist/esm/types/components/container/BloodPressureVisualization/index.d.ts +1 -0
- package/dist/esm/types/components/container/SeverityCalendar/SeverityCalendar.d.ts +12 -0
- package/dist/esm/types/components/container/SeverityCalendar/SeverityCalendar.previewdata.d.ts +2 -0
- package/dist/esm/types/components/container/SeverityCalendar/SeverityCalendar.stories.d.ts +52 -0
- package/dist/esm/types/components/container/SeverityCalendar/index.d.ts +1 -0
- package/dist/esm/types/components/container/index.d.ts +2 -0
- package/dist/esm/types/components/presentational/DumbbellChart/Dumbbell.d.ts +9 -0
- package/dist/esm/types/components/presentational/DumbbellChart/DumbbellChart.d.ts +28 -0
- package/dist/esm/types/components/presentational/DumbbellChart/index.d.ts +1 -0
- package/dist/esm/types/components/presentational/SingleSurveyTask/SingleSurveyTask.d.ts +6 -4
- package/dist/esm/types/components/presentational/SingleSurveyTask/SingleSurveyTask.stories.d.ts +59 -123
- package/dist/esm/types/components/presentational/index.d.ts +1 -0
- package/dist/esm/types/helpers/blood-pressure-data-providers/index.d.ts +3 -0
- package/dist/esm/types/helpers/blood-pressure-data-providers/survey-blood-pressure-data-provider.d.ts +12 -0
- package/dist/esm/types/helpers/date-helpers.d.ts +1 -0
- package/dist/esm/types/helpers/functions.d.ts +1 -0
- package/dist/esm/types/helpers/query-all-survey-answers.d.ts +2 -0
- package/dist/esm/types/index.d.ts +2 -0
- package/dist/index.d.ts +124 -61
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import "./BloodPressureVisualization.css";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { WeekStartsOn } from "../../../helpers/get-interval-start";
|
|
4
|
+
import { SurveyBloodPressureDataParameters } from "../../../helpers/blood-pressure-data-providers";
|
|
5
|
+
export type BloodPressurePreviewState = "Default" | "NoData" | "Loading";
|
|
6
|
+
export interface BloodPressureVisualizationProps {
|
|
7
|
+
previewState?: BloodPressurePreviewState;
|
|
8
|
+
surveyDataSource: SurveyBloodPressureDataParameters;
|
|
9
|
+
weekStartsOn?: WeekStartsOn;
|
|
10
|
+
innerRef?: React.Ref<HTMLDivElement>;
|
|
11
|
+
}
|
|
12
|
+
export default function (props: BloodPressureVisualizationProps): React.JSX.Element;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import BloodPressureVisualization, { BloodPressureVisualizationProps } from "./BloodPressureVisualization";
|
|
3
|
+
import { SurveyBloodPressureDataParameters } from "../../../helpers/blood-pressure-data-providers/survey-blood-pressure-data-provider";
|
|
4
|
+
declare const _default: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: typeof BloodPressureVisualization;
|
|
7
|
+
parameters: {
|
|
8
|
+
layout: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
export declare const Default: {
|
|
13
|
+
args: {
|
|
14
|
+
previewState: string;
|
|
15
|
+
surveyDataSource: SurveyBloodPressureDataParameters;
|
|
16
|
+
};
|
|
17
|
+
render: (args: BloodPressureVisualizationProps) => React.JSX.Element;
|
|
18
|
+
};
|
|
19
|
+
export declare const Loading: {
|
|
20
|
+
args: {
|
|
21
|
+
previewState: string;
|
|
22
|
+
surveyDataSource: SurveyBloodPressureDataParameters;
|
|
23
|
+
};
|
|
24
|
+
render: (args: BloodPressureVisualizationProps) => React.JSX.Element;
|
|
25
|
+
};
|
|
26
|
+
export declare const NoData: {
|
|
27
|
+
args: {
|
|
28
|
+
previewState: string;
|
|
29
|
+
surveyDataSource: SurveyBloodPressureDataParameters;
|
|
30
|
+
};
|
|
31
|
+
render: (args: BloodPressureVisualizationProps) => React.JSX.Element;
|
|
32
|
+
};
|
|
33
|
+
export declare const Live: {
|
|
34
|
+
args: {
|
|
35
|
+
surveyDataSource: {
|
|
36
|
+
surveyName: string;
|
|
37
|
+
dateResultIdentifier: string;
|
|
38
|
+
systolicResultIdentifier: string;
|
|
39
|
+
diastolicResultIdentifier: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
render: (args: BloodPressureVisualizationProps) => React.JSX.Element;
|
|
43
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./BloodPressureVisualization";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type SeverityCalendarPreviewState = "Default" | "NoData";
|
|
3
|
+
export interface SeverityCalendarProps {
|
|
4
|
+
surveyName: string;
|
|
5
|
+
dateRecordedResultIdentifier?: string;
|
|
6
|
+
severityResultIdentifier: string;
|
|
7
|
+
severityValueMapper?: (value: string) => string;
|
|
8
|
+
intervalStart?: Date;
|
|
9
|
+
previewState?: SeverityCalendarPreviewState;
|
|
10
|
+
innerRef?: React.Ref<HTMLDivElement>;
|
|
11
|
+
}
|
|
12
|
+
export default function (props: SeverityCalendarProps): React.JSX.Element;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import SeverityCalendar, { SeverityCalendarProps } from "./SeverityCalendar";
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof SeverityCalendar;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
argTypes: {
|
|
10
|
+
severityResultIdentifier: {
|
|
11
|
+
control: string;
|
|
12
|
+
description: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export default _default;
|
|
17
|
+
export declare const Default: {
|
|
18
|
+
args: {
|
|
19
|
+
surveyName: string;
|
|
20
|
+
severityResultIdentifier: string;
|
|
21
|
+
dateRecordedResultIdentifier: string;
|
|
22
|
+
previewState: string;
|
|
23
|
+
};
|
|
24
|
+
render: (args: SeverityCalendarProps) => React.JSX.Element;
|
|
25
|
+
};
|
|
26
|
+
export declare const CustomValueMapper: {
|
|
27
|
+
args: {
|
|
28
|
+
surveyName: string;
|
|
29
|
+
severityResultIdentifier: string;
|
|
30
|
+
dateRecordedResultIdentifier: string;
|
|
31
|
+
severityValueMapper: (severityValue: string) => "" | "mild" | "moderate" | "severe";
|
|
32
|
+
previewState: string;
|
|
33
|
+
};
|
|
34
|
+
render: (args: SeverityCalendarProps) => React.JSX.Element;
|
|
35
|
+
};
|
|
36
|
+
export declare const NoData: {
|
|
37
|
+
args: {
|
|
38
|
+
surveyName: string;
|
|
39
|
+
severityResultIdentifier: string;
|
|
40
|
+
dateRecordedResultIdentifier: string;
|
|
41
|
+
previewState: string;
|
|
42
|
+
};
|
|
43
|
+
render: (args: SeverityCalendarProps) => React.JSX.Element;
|
|
44
|
+
};
|
|
45
|
+
export declare const Live: {
|
|
46
|
+
args: {
|
|
47
|
+
surveyName: string;
|
|
48
|
+
severityResultIdentifier: string;
|
|
49
|
+
dateRecordedResultIdentifier: string;
|
|
50
|
+
};
|
|
51
|
+
render: (args: SeverityCalendarProps) => React.JSX.Element;
|
|
52
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./SeverityCalendar";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { default as AllergiesList } from "./AllergiesList";
|
|
2
2
|
export { default as AppDownload } from "./AppDownload";
|
|
3
|
+
export { default as BloodPressureVisualization } from "./BloodPressureVisualization";
|
|
3
4
|
export { default as ConditionsList } from "./ConditionsList";
|
|
4
5
|
export { default as ConnectDevicesMenu } from "./ConnectDevicesMenu";
|
|
5
6
|
export { default as ConnectEhr } from "./ConnectEhr";
|
|
@@ -27,4 +28,5 @@ export { default as ProviderSearch } from "./ProviderSearch";
|
|
|
27
28
|
export { default as RelativeActivityToday } from "./RelativeActivityToday";
|
|
28
29
|
export { default as RestingHeartRateCalendar } from "./RestingHeartRateCalendar";
|
|
29
30
|
export { default as SurveyTaskList } from "./SurveyTaskList";
|
|
31
|
+
export { default as SeverityCalendar } from "./SeverityCalendar";
|
|
30
32
|
export { default as ViewEhr } from "./ViewEhr";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Dumbbell, Axis } from "./DumbbellChart";
|
|
3
|
+
import "./DumbbellChart.css";
|
|
4
|
+
export interface DumbbellProps {
|
|
5
|
+
dumbbell?: Dumbbell;
|
|
6
|
+
axis: Axis;
|
|
7
|
+
index: number;
|
|
8
|
+
}
|
|
9
|
+
export default function (props: DumbbellProps): React.JSX.Element;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import "./DumbbellChart.css";
|
|
2
|
+
import React from "react";
|
|
3
|
+
export interface ClosedInterval {
|
|
4
|
+
values: number[];
|
|
5
|
+
}
|
|
6
|
+
export interface DataPoint {
|
|
7
|
+
dataSet1: ClosedInterval;
|
|
8
|
+
dataSet2: ClosedInterval;
|
|
9
|
+
}
|
|
10
|
+
export interface Dumbbell {
|
|
11
|
+
dataPoint?: DataPoint;
|
|
12
|
+
xValue: string;
|
|
13
|
+
class?: DumbbellClass;
|
|
14
|
+
}
|
|
15
|
+
export interface Axis {
|
|
16
|
+
yRange: ClosedInterval;
|
|
17
|
+
yIncrement: number;
|
|
18
|
+
xIncrement: number;
|
|
19
|
+
}
|
|
20
|
+
export interface DumbBellChartProps {
|
|
21
|
+
axis: Axis;
|
|
22
|
+
dumbbells: Dumbbell[];
|
|
23
|
+
}
|
|
24
|
+
export declare enum DumbbellClass {
|
|
25
|
+
"mdhui-dumbbell-in-range" = 0,
|
|
26
|
+
"mdhui-dumbbell-out-of-range" = 1
|
|
27
|
+
}
|
|
28
|
+
export default function (props: DumbBellChartProps): React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./DumbbellChart";
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
3
|
-
import { SurveyTask } from
|
|
2
|
+
import './SingleSurveyTask.css';
|
|
3
|
+
import { SurveyTask } from '@careevolution/mydatahelps-js';
|
|
4
4
|
import { IconDefinition } from '@fortawesome/fontawesome-common-types';
|
|
5
5
|
import '@fortawesome/fontawesome-svg-core/styles.css';
|
|
6
6
|
import { ColorDefinition } from '../../../helpers/colors';
|
|
7
7
|
import { ButtonVariant } from '../Button/Button';
|
|
8
|
+
export type SingleSurveyTaskVariant = 'default' | 'expanded';
|
|
8
9
|
export interface SingleSurveyTaskProps {
|
|
9
10
|
task: SurveyTask;
|
|
10
|
-
descriptionIcon?: IconDefinition;
|
|
11
11
|
onClick: () => void;
|
|
12
|
+
variant?: SingleSurveyTaskVariant;
|
|
13
|
+
descriptionIcon?: IconDefinition;
|
|
12
14
|
surveyActive?: boolean;
|
|
13
|
-
innerRef?: React.Ref<HTMLDivElement>;
|
|
14
15
|
buttonColor?: ColorDefinition;
|
|
15
16
|
buttonVariant?: ButtonVariant;
|
|
17
|
+
innerRef?: React.Ref<HTMLDivElement>;
|
|
16
18
|
}
|
|
17
19
|
export default function (props: SingleSurveyTaskProps): React.JSX.Element | null;
|
package/dist/cjs/types/components/presentational/SingleSurveyTask/SingleSurveyTask.stories.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import SingleSurveyTask, {
|
|
2
|
+
import SingleSurveyTask, { SingleSurveyTaskVariant } from './SingleSurveyTask';
|
|
3
|
+
import { SurveyTaskStatus } from "@careevolution/mydatahelps-js";
|
|
3
4
|
declare const _default: {
|
|
4
5
|
title: string;
|
|
5
6
|
component: typeof SingleSurveyTask;
|
|
@@ -8,133 +9,68 @@ declare const _default: {
|
|
|
8
9
|
};
|
|
9
10
|
};
|
|
10
11
|
export default _default;
|
|
11
|
-
|
|
12
|
+
interface SingleSurveyTaskStoryArgs {
|
|
13
|
+
name: string;
|
|
14
|
+
status: SurveyTaskStatus;
|
|
15
|
+
description?: string;
|
|
16
|
+
dueDate?: number;
|
|
17
|
+
hasSavedProgress?: boolean;
|
|
18
|
+
variant?: SingleSurveyTaskVariant;
|
|
19
|
+
endDate?: number;
|
|
20
|
+
surveyActive?: boolean;
|
|
21
|
+
}
|
|
22
|
+
export declare const Default: {
|
|
12
23
|
args: {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
startDate?: string | undefined;
|
|
22
|
-
endDate?: string | undefined;
|
|
23
|
-
hasSavedProgress: boolean;
|
|
24
|
-
dueDate: string;
|
|
25
|
-
insertedDate: string;
|
|
26
|
-
modifiedDate: string;
|
|
27
|
-
};
|
|
28
|
-
descriptionIcon?: import("@fortawesome/fontawesome-common-types").IconDefinition | undefined;
|
|
29
|
-
onClick: () => void;
|
|
30
|
-
surveyActive?: boolean | undefined;
|
|
31
|
-
innerRef?: React.Ref<HTMLDivElement> | undefined;
|
|
32
|
-
buttonColor?: import("../../..").ColorDefinition | undefined;
|
|
33
|
-
buttonVariant?: import("../Button/Button").ButtonVariant | undefined;
|
|
24
|
+
variant: string;
|
|
25
|
+
name: string;
|
|
26
|
+
description: string;
|
|
27
|
+
status: string;
|
|
28
|
+
dueDate: undefined;
|
|
29
|
+
hasSavedProgress: boolean;
|
|
30
|
+
endDate: undefined;
|
|
31
|
+
surveyActive: boolean;
|
|
34
32
|
};
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
task: {
|
|
40
|
-
status: string;
|
|
41
|
-
hasSavedProgress: boolean;
|
|
42
|
-
id: import("@careevolution/mydatahelps-js").Guid;
|
|
43
|
-
linkIdentifier: string;
|
|
44
|
-
surveyID: import("@careevolution/mydatahelps-js").Guid;
|
|
45
|
-
surveyName: string;
|
|
46
|
-
surveyDisplayName?: string | undefined;
|
|
47
|
-
surveyDescription?: string | undefined;
|
|
48
|
-
startDate?: string | undefined;
|
|
49
|
-
endDate?: string | undefined;
|
|
50
|
-
dueDate: string;
|
|
51
|
-
insertedDate: string;
|
|
52
|
-
modifiedDate: string;
|
|
33
|
+
argTypes: {
|
|
34
|
+
variant: {
|
|
35
|
+
control: string;
|
|
36
|
+
options: string[];
|
|
53
37
|
};
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
innerRef?: React.Ref<HTMLDivElement> | undefined;
|
|
58
|
-
buttonColor?: import("../../..").ColorDefinition | undefined;
|
|
59
|
-
buttonVariant?: import("../Button/Button").ButtonVariant | undefined;
|
|
60
|
-
};
|
|
61
|
-
render: (args: SingleSurveyTaskProps) => React.JSX.Element;
|
|
62
|
-
};
|
|
63
|
-
export declare const IncompleteSurveyActive: {
|
|
64
|
-
args: {
|
|
65
|
-
task: {
|
|
66
|
-
status: string;
|
|
67
|
-
id: import("@careevolution/mydatahelps-js").Guid;
|
|
68
|
-
linkIdentifier: string;
|
|
69
|
-
surveyID: import("@careevolution/mydatahelps-js").Guid;
|
|
70
|
-
surveyName: string;
|
|
71
|
-
surveyDisplayName?: string | undefined;
|
|
72
|
-
surveyDescription?: string | undefined;
|
|
73
|
-
startDate?: string | undefined;
|
|
74
|
-
endDate?: string | undefined;
|
|
75
|
-
hasSavedProgress: boolean;
|
|
76
|
-
dueDate: string;
|
|
77
|
-
insertedDate: string;
|
|
78
|
-
modifiedDate: string;
|
|
38
|
+
status: {
|
|
39
|
+
control: string;
|
|
40
|
+
options: string[];
|
|
79
41
|
};
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
render: (args: SingleSurveyTaskProps) => React.JSX.Element;
|
|
88
|
-
};
|
|
89
|
-
export declare const IncompleteWithLongDescription: {
|
|
90
|
-
args: {
|
|
91
|
-
task: {
|
|
92
|
-
status: string;
|
|
93
|
-
surveyDescription: string;
|
|
94
|
-
id: import("@careevolution/mydatahelps-js").Guid;
|
|
95
|
-
linkIdentifier: string;
|
|
96
|
-
surveyID: import("@careevolution/mydatahelps-js").Guid;
|
|
97
|
-
surveyName: string;
|
|
98
|
-
surveyDisplayName?: string | undefined;
|
|
99
|
-
startDate?: string | undefined;
|
|
100
|
-
endDate?: string | undefined;
|
|
101
|
-
hasSavedProgress: boolean;
|
|
102
|
-
dueDate: string;
|
|
103
|
-
insertedDate: string;
|
|
104
|
-
modifiedDate: string;
|
|
42
|
+
dueDate: {
|
|
43
|
+
name: string;
|
|
44
|
+
control: string;
|
|
45
|
+
if: {
|
|
46
|
+
arg: string;
|
|
47
|
+
eq: string;
|
|
48
|
+
};
|
|
105
49
|
};
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
insertedDate: string;
|
|
130
|
-
modifiedDate: string;
|
|
50
|
+
hasSavedProgress: {
|
|
51
|
+
name: string;
|
|
52
|
+
control: string;
|
|
53
|
+
if: {
|
|
54
|
+
arg: string;
|
|
55
|
+
eq: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
surveyActive: {
|
|
59
|
+
name: string;
|
|
60
|
+
control: string;
|
|
61
|
+
if: {
|
|
62
|
+
arg: string;
|
|
63
|
+
eq: string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
endDate: {
|
|
67
|
+
name: string;
|
|
68
|
+
control: string;
|
|
69
|
+
if: {
|
|
70
|
+
arg: string;
|
|
71
|
+
eq: string;
|
|
72
|
+
};
|
|
131
73
|
};
|
|
132
|
-
descriptionIcon?: import("@fortawesome/fontawesome-common-types").IconDefinition | undefined;
|
|
133
|
-
onClick: () => void;
|
|
134
|
-
surveyActive?: boolean | undefined;
|
|
135
|
-
innerRef?: React.Ref<HTMLDivElement> | undefined;
|
|
136
|
-
buttonColor?: import("../../..").ColorDefinition | undefined;
|
|
137
|
-
buttonVariant?: import("../Button/Button").ButtonVariant | undefined;
|
|
138
74
|
};
|
|
139
|
-
render: (args:
|
|
75
|
+
render: (args: SingleSurveyTaskStoryArgs) => React.JSX.Element;
|
|
140
76
|
};
|
|
@@ -8,6 +8,7 @@ export { default as CardTitle } from "./CardTitle";
|
|
|
8
8
|
export { default as DateRangeCoordinator, DateRangeContext } from "./DateRangeCoordinator";
|
|
9
9
|
export { default as DateRangeNavigator } from "./DateRangeNavigator";
|
|
10
10
|
export { default as DayTrackerSymbol } from "./DayTrackerSymbol";
|
|
11
|
+
export { default as DumbbellChart } from "./DumbbellChart";
|
|
11
12
|
export { default as Face } from "./Face";
|
|
12
13
|
export { default as Histogram } from "./Histogram";
|
|
13
14
|
export { default as Layout, LayoutContext } from "./Layout";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { default as bloodPressureDataProvider } from "./survey-blood-pressure-data-provider";
|
|
2
|
+
export { SurveyBloodPressureDataParameters as SurveyBloodPressureDataParameters } from "./survey-blood-pressure-data-provider";
|
|
3
|
+
export { BloodPressureDataPoint as BloodPressureDataPoint } from "./survey-blood-pressure-data-provider";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface SurveyBloodPressureDataParameters {
|
|
2
|
+
surveyName: string;
|
|
3
|
+
dateResultIdentifier: string;
|
|
4
|
+
systolicResultIdentifier: string;
|
|
5
|
+
diastolicResultIdentifier: string;
|
|
6
|
+
}
|
|
7
|
+
export interface BloodPressureDataPoint {
|
|
8
|
+
date: Date;
|
|
9
|
+
systolic: number;
|
|
10
|
+
diastolic: number;
|
|
11
|
+
}
|
|
12
|
+
export default function (props: SurveyBloodPressureDataParameters): Promise<BloodPressureDataPoint[]>;
|
|
@@ -4,3 +4,4 @@ export declare function getDayOfWeek(date: Date): string;
|
|
|
4
4
|
export declare function getFullDateString(date: Date): string;
|
|
5
5
|
export declare function getShorterDateString(date: Date): string;
|
|
6
6
|
export declare function getMonthName(month: number): string;
|
|
7
|
+
export declare function getLocale(): Locale;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function noop(): void;
|
|
@@ -5,3 +5,5 @@ export * from './helpers/language';
|
|
|
5
5
|
export { default as getDayKey } from './helpers/get-day-key';
|
|
6
6
|
export * from './helpers/get-interval-start';
|
|
7
7
|
export * from './helpers/colors';
|
|
8
|
+
export * from './helpers/blood-pressure-data-providers';
|
|
9
|
+
export * from './helpers/query-all-survey-answers';
|