@careevolution/mydatahelps-ui 2.24.3 → 2.24.5

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.
@@ -21,6 +21,7 @@ export interface SurveyAnswerChartProps {
21
21
  options?: MultiSeriesLineChartOptions | MultiSeriesBarChartOptions | MultiSeriesBarChartOptions;
22
22
  expectedDataInterval?: Duration;
23
23
  previewDataProvider?: (startDate: Date, endDate: Date) => Promise<SurveyAnswer[][]>;
24
+ previewState?: "default";
24
25
  innerRef?: React.Ref<HTMLDivElement>;
25
26
  }
26
27
  export default function SurveyAnswerChart(props: SurveyAnswerChartProps): React.JSX.Element;
@@ -27,7 +27,7 @@ export declare const ffwelLineChart: {
27
27
  }[];
28
28
  valueFormatter: (value: number) => string;
29
29
  chartType: string;
30
- previewDataProvider: (start: Date, end: Date) => Promise<SurveyAnswer[][]>;
30
+ previewState: string;
31
31
  };
32
32
  render: (args: SurveyAnswerChartProps) => React.JSX.Element;
33
33
  };
@@ -72,7 +72,33 @@ export declare const ffwelBarChart: {
72
72
  }[];
73
73
  valueFormatter: (value: number) => string;
74
74
  chartType: string;
75
- previewDataProvider: (start: Date, end: Date) => Promise<SurveyAnswer[][]>;
75
+ previewState: string;
76
+ };
77
+ render: (args: SurveyAnswerChartProps) => React.JSX.Element;
78
+ };
79
+ export declare const ffwelBarChartThresholds: {
80
+ args: {
81
+ title: string;
82
+ options: {
83
+ domainMin: number;
84
+ thresholds: {
85
+ value: number;
86
+ referenceLineColor: string;
87
+ overThresholdColor: string;
88
+ }[];
89
+ };
90
+ intervalType: string;
91
+ weekStartsOn: string;
92
+ series: {
93
+ color: string;
94
+ dataKey: string;
95
+ surveyName: string;
96
+ stepIdentifier: string;
97
+ resultIdentifier: string;
98
+ }[];
99
+ valueFormatter: (value: number) => string;
100
+ chartType: string;
101
+ previewState: string;
76
102
  };
77
103
  render: (args: SurveyAnswerChartProps) => React.JSX.Element;
78
104
  };
@@ -94,7 +120,7 @@ export declare const ffwelAreaChart: {
94
120
  }[];
95
121
  valueFormatter: (value: number) => string;
96
122
  chartType: string;
97
- previewDataProvider: (start: Date, end: Date) => Promise<SurveyAnswer[][]>;
123
+ previewState: string;
98
124
  };
99
125
  render: (args: SurveyAnswerChartProps) => React.JSX.Element;
100
126
  };
@@ -0,0 +1,4 @@
1
+ import { SurveyAnswer } from "@careevolution/mydatahelps-js";
2
+ import { SurveyAnswerAreaChartSeries, SurveyAnswerChartSeries } from "./SurveyAnswerChart";
3
+ export declare function generateSurveyResponse(date: Date, resultIdentifier: string, surveyName: string, rangeStart: number, rangeEnd: number): Promise<SurveyAnswer>;
4
+ export declare const getDefaultPreviewData: (start: Date, end: Date, series: SurveyAnswerChartSeries[] | SurveyAnswerAreaChartSeries[]) => Promise<SurveyAnswer[][]>;
@@ -1 +1 @@
1
- export { default } from "./SurveyAnswerChart";
1
+ export { default, SurveyAnswerChartSeries, SurveyAnswerAreaChartSeries } from "./SurveyAnswerChart";
@@ -35,7 +35,7 @@ export { default as RelativeActivityDayNavigator } from "./RelativeActivityDayNa
35
35
  export { default as RelativeActivity } from "./RelativeActivity";
36
36
  export { default as RelativeActivityToday } from "./RelativeActivityToday";
37
37
  export { default as RestingHeartRateCalendar } from "./RestingHeartRateCalendar";
38
- export { default as SurveyAnswerChart } from "./SurveyAnswerChart";
38
+ export { default as SurveyAnswerChart, SurveyAnswerChartSeries, SurveyAnswerAreaChartSeries } from "./SurveyAnswerChart";
39
39
  export { default as SurveyTaskList } from "./SurveyTaskList";
40
40
  export { default as SeverityCalendar } from "./SeverityCalendar";
41
41
  export { default as TermInformation, TermInformationReference } from "./TermInformation";