@careevolution/mydatahelps-ui 2.14.0 → 2.15.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 +8 -8
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/presentational/MonthlyEventMatrix/MonthlyEventMatrix.d.ts +15 -0
- package/dist/cjs/types/components/presentational/MonthlyEventMatrix/MonthlyEventMatrix.stories.d.ts +18 -0
- package/dist/cjs/types/components/presentational/MonthlyEventMatrix/index.d.ts +1 -0
- package/dist/cjs/types/components/presentational/index.d.ts +1 -0
- package/dist/cjs/types/components/symptom-shark/container/LogToday/LogToday.stories.d.ts +4 -0
- package/dist/cjs/types/components/symptom-shark/container/ReportBuilder/ReportBuilder.d.ts +10 -0
- package/dist/cjs/types/components/symptom-shark/container/ReportBuilder/ReportBuilder.stories.d.ts +16 -0
- package/dist/cjs/types/components/symptom-shark/container/ReportBuilder/index.d.ts +1 -0
- package/dist/cjs/types/components/symptom-shark/container/index.d.ts +1 -0
- package/dist/cjs/types/components/symptom-shark/helpers/symptom-shark-data.d.ts +5 -2
- package/dist/cjs/types/components/symptom-shark/presentational/IconSelector/IconSelector.d.ts +7 -0
- package/dist/cjs/types/components/symptom-shark/presentational/LogEntryIcon/LogEntryIcon.d.ts +7 -0
- package/dist/cjs/types/components/symptom-shark/presentational/MonthReport/MonthReport.d.ts +12 -0
- package/dist/cjs/types/components/symptom-shark/presentational/MonthReport/MonthReport.stories.d.ts +13 -0
- package/dist/cjs/types/components/symptom-shark/presentational/MonthReport/index.d.ts +1 -0
- package/dist/cjs/types/components/symptom-shark/presentational/NotesTimeline/NotesTimeline.d.ts +7 -0
- package/dist/cjs/types/components/symptom-shark/presentational/NotesTimeline/NotesTimeline.stories.d.ts +13 -0
- package/dist/cjs/types/components/symptom-shark/presentational/NotesTimeline/index.d.ts +1 -0
- package/dist/cjs/types/components/symptom-shark/presentational/OverallExperienceChart/OverallExperienceChart.d.ts +1 -0
- package/dist/cjs/types/components/symptom-shark/presentational/SymptomMatrix/SymptomMatrix.d.ts +7 -0
- package/dist/cjs/types/components/symptom-shark/presentational/SymptomMatrix/SymptomMatrix.stories.d.ts +13 -0
- package/dist/cjs/types/components/symptom-shark/presentational/SymptomMatrix/index.d.ts +1 -0
- package/dist/cjs/types/components/symptom-shark/presentational/SymptomSeverityChart/SymptomSeverityChart.d.ts +1 -0
- package/dist/cjs/types/components/symptom-shark/presentational/index.d.ts +3 -0
- package/dist/cjs/types/components/symptom-shark/view/ReportBuilderView/ReportBuilderView.d.ts +6 -0
- package/dist/cjs/types/components/symptom-shark/view/ReportBuilderView/ReportBuilderView.stories.d.ts +19 -0
- package/dist/cjs/types/components/symptom-shark/view/ReportBuilderView/index.d.ts +1 -0
- package/dist/cjs/types/components/symptom-shark/view/index.d.ts +1 -0
- package/dist/cjs/types/helpers/renderPdf.d.ts +2 -0
- package/dist/esm/index.js +7 -7
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/presentational/MonthlyEventMatrix/MonthlyEventMatrix.d.ts +15 -0
- package/dist/esm/types/components/presentational/MonthlyEventMatrix/MonthlyEventMatrix.stories.d.ts +18 -0
- package/dist/esm/types/components/presentational/MonthlyEventMatrix/index.d.ts +1 -0
- package/dist/esm/types/components/presentational/index.d.ts +1 -0
- package/dist/esm/types/components/symptom-shark/container/LogToday/LogToday.stories.d.ts +4 -0
- package/dist/esm/types/components/symptom-shark/container/ReportBuilder/ReportBuilder.d.ts +10 -0
- package/dist/esm/types/components/symptom-shark/container/ReportBuilder/ReportBuilder.stories.d.ts +16 -0
- package/dist/esm/types/components/symptom-shark/container/ReportBuilder/index.d.ts +1 -0
- package/dist/esm/types/components/symptom-shark/container/index.d.ts +1 -0
- package/dist/esm/types/components/symptom-shark/helpers/symptom-shark-data.d.ts +5 -2
- package/dist/esm/types/components/symptom-shark/presentational/IconSelector/IconSelector.d.ts +7 -0
- package/dist/esm/types/components/symptom-shark/presentational/LogEntryIcon/LogEntryIcon.d.ts +7 -0
- package/dist/esm/types/components/symptom-shark/presentational/MonthReport/MonthReport.d.ts +12 -0
- package/dist/esm/types/components/symptom-shark/presentational/MonthReport/MonthReport.stories.d.ts +13 -0
- package/dist/esm/types/components/symptom-shark/presentational/MonthReport/index.d.ts +1 -0
- package/dist/esm/types/components/symptom-shark/presentational/NotesTimeline/NotesTimeline.d.ts +7 -0
- package/dist/esm/types/components/symptom-shark/presentational/NotesTimeline/NotesTimeline.stories.d.ts +13 -0
- package/dist/esm/types/components/symptom-shark/presentational/NotesTimeline/index.d.ts +1 -0
- package/dist/esm/types/components/symptom-shark/presentational/OverallExperienceChart/OverallExperienceChart.d.ts +1 -0
- package/dist/esm/types/components/symptom-shark/presentational/SymptomMatrix/SymptomMatrix.d.ts +7 -0
- package/dist/esm/types/components/symptom-shark/presentational/SymptomMatrix/SymptomMatrix.stories.d.ts +13 -0
- package/dist/esm/types/components/symptom-shark/presentational/SymptomMatrix/index.d.ts +1 -0
- package/dist/esm/types/components/symptom-shark/presentational/SymptomSeverityChart/SymptomSeverityChart.d.ts +1 -0
- package/dist/esm/types/components/symptom-shark/presentational/index.d.ts +3 -0
- package/dist/esm/types/components/symptom-shark/view/ReportBuilderView/ReportBuilderView.d.ts +6 -0
- package/dist/esm/types/components/symptom-shark/view/ReportBuilderView/ReportBuilderView.stories.d.ts +19 -0
- package/dist/esm/types/components/symptom-shark/view/ReportBuilderView/index.d.ts +1 -0
- package/dist/esm/types/components/symptom-shark/view/index.d.ts +1 -0
- package/dist/esm/types/helpers/renderPdf.d.ts +2 -0
- package/dist/index.d.ts +183 -126
- package/package.json +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ColorDefinition } from "../../../helpers/colors";
|
|
3
|
+
import "./MonthlyEventMatrix.css";
|
|
4
|
+
export interface MonthlyEventMatrixRow {
|
|
5
|
+
label: string;
|
|
6
|
+
data: boolean[];
|
|
7
|
+
color: ColorDefinition;
|
|
8
|
+
}
|
|
9
|
+
export interface MonthlyEventMatrixProps {
|
|
10
|
+
title?: string;
|
|
11
|
+
rows: MonthlyEventMatrixRow[];
|
|
12
|
+
innerRef?: React.Ref<HTMLTableElement>;
|
|
13
|
+
intervalStart: Date;
|
|
14
|
+
}
|
|
15
|
+
export default function (props: MonthlyEventMatrixProps): React.JSX.Element;
|
package/dist/esm/types/components/presentational/MonthlyEventMatrix/MonthlyEventMatrix.stories.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import MonthlyEventMatrix, { MonthlyEventMatrixProps, MonthlyEventMatrixRow } from './MonthlyEventMatrix';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof MonthlyEventMatrix;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
11
|
+
export declare const Default: {
|
|
12
|
+
args: {
|
|
13
|
+
title: string;
|
|
14
|
+
intervalStart: Date;
|
|
15
|
+
rows: MonthlyEventMatrixRow[];
|
|
16
|
+
};
|
|
17
|
+
render: (args: MonthlyEventMatrixProps) => React.JSX.Element;
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default, MonthlyEventMatrixRow } from "./MonthlyEventMatrix";
|
|
@@ -13,6 +13,7 @@ export { default as Face } from "./Face";
|
|
|
13
13
|
export { default as Histogram } from "./Histogram";
|
|
14
14
|
export { default as Layout, LayoutContext } from "./Layout";
|
|
15
15
|
export { default as LoadingIndicator } from "./LoadingIndicator";
|
|
16
|
+
export { default as MonthlyEventMatrix, MonthlyEventMatrixRow } from "./MonthlyEventMatrix";
|
|
16
17
|
export { default as NavigationBar } from "./NavigationBar";
|
|
17
18
|
export { default as NotesInput } from "./NotesInput";
|
|
18
19
|
export { default as ProgressBar } from "./ProgressBar";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./ReportBuilder.css";
|
|
3
|
+
export interface SymptomSharkReportBuilderProps {
|
|
4
|
+
productLogo?: string;
|
|
5
|
+
productName?: string;
|
|
6
|
+
productUrl?: string;
|
|
7
|
+
previewState?: "default";
|
|
8
|
+
innerRef?: React.Ref<HTMLDivElement>;
|
|
9
|
+
}
|
|
10
|
+
export default function ReportBuilder(props: SymptomSharkReportBuilderProps): React.JSX.Element;
|
package/dist/esm/types/components/symptom-shark/container/ReportBuilder/ReportBuilder.stories.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import SymptomSharkReportBuilder, { SymptomSharkReportBuilderProps } from "./ReportBuilder";
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof SymptomSharkReportBuilder;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
11
|
+
export declare const Default: {
|
|
12
|
+
args: {
|
|
13
|
+
previewState: string;
|
|
14
|
+
};
|
|
15
|
+
render: (args: SymptomSharkReportBuilderProps) => React.JSX.Element;
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./ReportBuilder";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { default as SymptomSharkLogEntryList } from "./LogEntryList";
|
|
2
2
|
export { default as SymptomSharkLogToday } from "./LogToday";
|
|
3
3
|
export { default as SymptomSharkLogEntryEdit } from "./LogEntryEdit";
|
|
4
|
+
export { default as SymptomSharkReportBuilder } from "./ReportBuilder";
|
|
4
5
|
export { default as SymptomSharkVisualizationCoordinator } from "./VisualizationCoordinator";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ParticipantInfo } from "@careevolution/mydatahelps-js";
|
|
1
|
+
import { Guid, ParticipantInfo } from "@careevolution/mydatahelps-js";
|
|
2
|
+
import { LogEntryIconKey } from "../presentational/LogEntryIcon/LogEntryIcon";
|
|
2
3
|
export interface SymptomSharkDataService {
|
|
3
4
|
getConfiguration(): Promise<SymptomSharkConfiguration>;
|
|
4
5
|
getDailyLogEntries(after?: string, before?: string): Promise<{
|
|
@@ -7,6 +8,7 @@ export interface SymptomSharkDataService {
|
|
|
7
8
|
saveDailyLogEntry(date: string, entry: DailyLogEntry): Promise<any>;
|
|
8
9
|
}
|
|
9
10
|
export interface SymptomSharkConfiguration {
|
|
11
|
+
participantID: Guid;
|
|
10
12
|
symptoms: SymptomConfiguration[];
|
|
11
13
|
treatments: TreatmentConfiguration[];
|
|
12
14
|
}
|
|
@@ -28,7 +30,7 @@ export interface DailyLogEntry {
|
|
|
28
30
|
treatments: TreatmentReference[];
|
|
29
31
|
overallFeeling?: number;
|
|
30
32
|
notes: string;
|
|
31
|
-
icon?:
|
|
33
|
+
icon?: LogEntryIconKey;
|
|
32
34
|
}
|
|
33
35
|
export interface SymptomReference {
|
|
34
36
|
id: string;
|
|
@@ -38,6 +40,7 @@ export interface TreatmentReference {
|
|
|
38
40
|
id: string;
|
|
39
41
|
}
|
|
40
42
|
export declare function convertToSymptomSharkConfiguration(info: ParticipantInfo): {
|
|
43
|
+
participantID: Guid;
|
|
41
44
|
symptoms: SymptomConfiguration[];
|
|
42
45
|
treatments: TreatmentConfiguration[];
|
|
43
46
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type LogEntryIconKey = "star" | "star-o" | "user-md" | "hospital-o" | "ambulance" | "flag" | "moon-o" | "flask" | "bolt" | "question-circle-o" | "thermometer" | "trophy" | "spoon";
|
|
3
|
+
export interface LogEntryIconProps {
|
|
4
|
+
icon?: LogEntryIconKey;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
export default function LogEntryIcon(props: LogEntryIconProps): React.JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./MonthReport.css";
|
|
3
|
+
export interface SymptomSharkMonthReportProps {
|
|
4
|
+
includeNotes: boolean;
|
|
5
|
+
includeDailyOverallFeeling: boolean;
|
|
6
|
+
productLogo?: string;
|
|
7
|
+
productName?: string;
|
|
8
|
+
productUrl?: string;
|
|
9
|
+
intervalStart?: Date;
|
|
10
|
+
innerRef?: React.Ref<HTMLTableElement>;
|
|
11
|
+
}
|
|
12
|
+
export default function (props: SymptomSharkMonthReportProps): React.JSX.Element | null;
|
package/dist/esm/types/components/symptom-shark/presentational/MonthReport/MonthReport.stories.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import MonthReport from "./MonthReport";
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof MonthReport;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
11
|
+
export declare const Default: {
|
|
12
|
+
render: () => React.JSX.Element;
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./MonthReport";
|
package/dist/esm/types/components/symptom-shark/presentational/NotesTimeline/NotesTimeline.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import "./NotesTimeline.css";
|
|
3
|
+
export interface SymptomSharkNotesTimelineProps {
|
|
4
|
+
intervalStart?: Date;
|
|
5
|
+
innerRef?: React.Ref<HTMLDivElement>;
|
|
6
|
+
}
|
|
7
|
+
export default function (props: SymptomSharkNotesTimelineProps): React.JSX.Element | null;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import NotesTimeline, { SymptomSharkNotesTimelineProps } from "./NotesTimeline";
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof NotesTimeline;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
11
|
+
export declare const Default: {
|
|
12
|
+
render: (args: SymptomSharkNotesTimelineProps) => React.JSX.Element;
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./NotesTimeline";
|
package/dist/esm/types/components/symptom-shark/presentational/SymptomMatrix/SymptomMatrix.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./SymptomMatrix.css";
|
|
3
|
+
export interface SymptomSharkSymptomMatrixProps {
|
|
4
|
+
intervalStart?: Date;
|
|
5
|
+
innerRef?: React.Ref<HTMLDivElement>;
|
|
6
|
+
}
|
|
7
|
+
export default function (props: SymptomSharkSymptomMatrixProps): React.JSX.Element | null;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import SymptomMatrix from "./SymptomMatrix";
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof SymptomMatrix;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
11
|
+
export declare const Default: {
|
|
12
|
+
render: () => React.JSX.Element;
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./SymptomMatrix";
|
|
@@ -6,5 +6,6 @@ export interface SymptomSeverityChartProps {
|
|
|
6
6
|
symptom: SymptomConfiguration;
|
|
7
7
|
showAllDays?: boolean;
|
|
8
8
|
innerRef?: React.Ref<HTMLDivElement>;
|
|
9
|
+
variant?: "default" | "monthReport";
|
|
9
10
|
}
|
|
10
11
|
export default function (props: SymptomSeverityChartProps): React.JSX.Element | null;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
export { default as SymptomSharkSymptomMatrix } from "./SymptomMatrix";
|
|
1
2
|
export { default as SymptomSharkCalendar } from "./Calendar";
|
|
2
3
|
export { default as SymptomSharkOverallExperienceChart } from "./OverallExperienceChart";
|
|
3
4
|
export { default as SymptomSharkLogEntry } from "./LogEntry";
|
|
5
|
+
export { default as SymptomSharkMonthReport } from "./MonthReport";
|
|
6
|
+
export { default as SymptomSharkNotesTimeline } from "./NotesTimeline";
|
|
4
7
|
export { default as SymptomSharkSymptomTreatmentHistograms } from "./SymptomTreatmentHistograms";
|
|
5
8
|
export { default as SymptomSharkSymptomSeveritySummary } from "./SymptomSeveritySummary";
|
|
6
9
|
export { default as SymptomSharkSymptomSeverityChart } from "./SymptomSeverityChart";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import SymptomSharkReportBuilderView, { SymptomSharkReportBuilderViewProps } from "./ReportBuilderView";
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof SymptomSharkReportBuilderView;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
11
|
+
export declare const Default: {
|
|
12
|
+
args: {
|
|
13
|
+
previewState: string;
|
|
14
|
+
};
|
|
15
|
+
render: (args: SymptomSharkReportBuilderViewProps) => React.JSX.Element;
|
|
16
|
+
};
|
|
17
|
+
export declare const Live: {
|
|
18
|
+
render: (args: SymptomSharkReportBuilderViewProps) => React.JSX.Element;
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./ReportBuilderView";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { default as SymptomSharkCalendarView } from "./CalendarView";
|
|
2
2
|
export { default as SymptomSharkLogEntryEditView } from "./LogEntryEditView";
|
|
3
|
+
export { default as SymptomSharkReportBuilderView } from "./ReportBuilderView";
|
|
3
4
|
export { default as SymptomSharkSymptomDetailView } from "./SymptomDetailView";
|