@careevolution/mydatahelps-ui 2.12.1-SSComponents.0 → 2.13.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 +10 -9
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/asthma/components/AsthmaProviderReport/AsthmaProviderReport.d.ts +8 -0
- package/dist/cjs/types/components/asthma/components/AsthmaProviderReport/AsthmaProviderReport.previewData.d.ts +10 -0
- package/dist/cjs/types/components/asthma/components/AsthmaProviderReport/AsthmaProviderReport.stories.d.ts +23 -0
- package/dist/cjs/types/components/asthma/components/AsthmaProviderReport/index.d.ts +2 -0
- package/dist/cjs/types/components/asthma/components/AsthmaRecommendedArticle/AsthmaRecommendedArticle.d.ts +14 -0
- package/dist/cjs/types/components/asthma/components/AsthmaRecommendedArticle/AsthmaRecommendedArticle.stories.d.ts +52 -0
- package/dist/cjs/types/components/asthma/components/AsthmaRecommendedArticle/index.d.ts +1 -0
- package/dist/cjs/types/components/asthma/components/index.d.ts +2 -0
- package/dist/cjs/types/components/asthma/helpers/asthma-data.d.ts +5 -3
- package/dist/cjs/types/components/asthma/model/types.d.ts +3 -9
- package/dist/cjs/types/components/asthma/views/AsthmaProviderReportView/AsthmaProviderReportView.d.ts +7 -0
- package/dist/cjs/types/components/asthma/views/AsthmaProviderReportView/AsthmaProviderReportView.stories.d.ts +13 -0
- package/dist/cjs/types/components/asthma/views/AsthmaProviderReportView/index.d.ts +1 -0
- package/dist/cjs/types/components/asthma/views/index.d.ts +1 -0
- package/dist/cjs/types/components/container/InboxItemList/InboxItemList.d.ts +3 -1
- package/dist/cjs/types/components/container/InboxItemList/InboxItemList.stories.d.ts +16 -0
- package/dist/cjs/types/components/presentational/InboxResourceListItem/InboxResourceListItem.d.ts +2 -1
- package/dist/cjs/types/components/presentational/InboxResourceListItem/InboxResourceListItem.stories.d.ts +9 -2
- package/dist/cjs/types/components/presentational/Resource/Resource.d.ts +2 -1
- package/dist/cjs/types/components/presentational/Resource/Resource.stories.d.ts +5 -3
- package/dist/cjs/types/components/presentational/Resource/index.d.ts +1 -1
- package/dist/cjs/types/components/presentational/ResourceList/ResourceList.d.ts +3 -1
- package/dist/cjs/types/components/presentational/ResourceList/ResourceList.stories.d.ts +14 -0
- package/dist/cjs/types/components/presentational/index.d.ts +1 -1
- package/dist/cjs/types/components/symptom-shark/container/index.d.ts +0 -1
- package/dist/cjs/types/components/symptom-shark/helpers/symptom-shark-data.d.ts +2 -5
- package/dist/cjs/types/components/symptom-shark/presentational/OverallExperienceChart/OverallExperienceChart.d.ts +0 -1
- package/dist/cjs/types/components/symptom-shark/presentational/SymptomSeverityChart/SymptomSeverityChart.d.ts +0 -1
- package/dist/cjs/types/components/symptom-shark/presentational/index.d.ts +0 -3
- package/dist/cjs/types/components/symptom-shark/view/index.d.ts +0 -1
- package/dist/cjs/types/components/view/ResourceListView/ResourceListView.d.ts +3 -1
- package/dist/cjs/types/components/view/ResourceListView/ResourceListView.stories.d.ts +14 -0
- package/dist/esm/index.js +8 -7
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/asthma/components/AsthmaProviderReport/AsthmaProviderReport.d.ts +8 -0
- package/dist/esm/types/components/asthma/components/AsthmaProviderReport/AsthmaProviderReport.previewData.d.ts +10 -0
- package/dist/esm/types/components/asthma/components/AsthmaProviderReport/AsthmaProviderReport.stories.d.ts +23 -0
- package/dist/esm/types/components/asthma/components/AsthmaProviderReport/index.d.ts +2 -0
- package/dist/esm/types/components/asthma/components/AsthmaRecommendedArticle/AsthmaRecommendedArticle.d.ts +14 -0
- package/dist/esm/types/components/asthma/components/AsthmaRecommendedArticle/AsthmaRecommendedArticle.stories.d.ts +52 -0
- package/dist/esm/types/components/asthma/components/AsthmaRecommendedArticle/index.d.ts +1 -0
- package/dist/esm/types/components/asthma/components/index.d.ts +2 -0
- package/dist/esm/types/components/asthma/helpers/asthma-data.d.ts +5 -3
- package/dist/esm/types/components/asthma/model/types.d.ts +3 -9
- package/dist/esm/types/components/asthma/views/AsthmaProviderReportView/AsthmaProviderReportView.d.ts +7 -0
- package/dist/esm/types/components/asthma/views/AsthmaProviderReportView/AsthmaProviderReportView.stories.d.ts +13 -0
- package/dist/esm/types/components/asthma/views/AsthmaProviderReportView/index.d.ts +1 -0
- package/dist/esm/types/components/asthma/views/index.d.ts +1 -0
- package/dist/esm/types/components/container/InboxItemList/InboxItemList.d.ts +3 -1
- package/dist/esm/types/components/container/InboxItemList/InboxItemList.stories.d.ts +16 -0
- package/dist/esm/types/components/presentational/InboxResourceListItem/InboxResourceListItem.d.ts +2 -1
- package/dist/esm/types/components/presentational/InboxResourceListItem/InboxResourceListItem.stories.d.ts +9 -2
- package/dist/esm/types/components/presentational/Resource/Resource.d.ts +2 -1
- package/dist/esm/types/components/presentational/Resource/Resource.stories.d.ts +5 -3
- package/dist/esm/types/components/presentational/Resource/index.d.ts +1 -1
- package/dist/esm/types/components/presentational/ResourceList/ResourceList.d.ts +3 -1
- package/dist/esm/types/components/presentational/ResourceList/ResourceList.stories.d.ts +14 -0
- package/dist/esm/types/components/presentational/index.d.ts +1 -1
- package/dist/esm/types/components/symptom-shark/container/index.d.ts +0 -1
- package/dist/esm/types/components/symptom-shark/helpers/symptom-shark-data.d.ts +2 -5
- package/dist/esm/types/components/symptom-shark/presentational/OverallExperienceChart/OverallExperienceChart.d.ts +0 -1
- package/dist/esm/types/components/symptom-shark/presentational/SymptomSeverityChart/SymptomSeverityChart.d.ts +0 -1
- package/dist/esm/types/components/symptom-shark/presentational/index.d.ts +0 -3
- package/dist/esm/types/components/symptom-shark/view/index.d.ts +0 -1
- package/dist/esm/types/components/view/ResourceListView/ResourceListView.d.ts +3 -1
- package/dist/esm/types/components/view/ResourceListView/ResourceListView.stories.d.ts +14 -0
- package/dist/index.d.ts +918 -931
- package/package.json +1 -1
- package/dist/cjs/types/components/symptom-shark/container/ReportBuilder/ReportBuilder.d.ts +0 -10
- package/dist/cjs/types/components/symptom-shark/container/ReportBuilder/ReportBuilder.stories.d.ts +0 -16
- package/dist/cjs/types/components/symptom-shark/container/ReportBuilder/index.d.ts +0 -1
- package/dist/cjs/types/components/symptom-shark/presentational/BulletChart/BulletChart.d.ts +0 -7
- package/dist/cjs/types/components/symptom-shark/presentational/BulletChart/BulletChart.stories.d.ts +0 -13
- package/dist/cjs/types/components/symptom-shark/presentational/BulletChart/index.d.ts +0 -1
- package/dist/cjs/types/components/symptom-shark/presentational/IconSelector/IconSelector.d.ts +0 -7
- package/dist/cjs/types/components/symptom-shark/presentational/LogEntryIcon/LogEntryIcon.d.ts +0 -7
- package/dist/cjs/types/components/symptom-shark/presentational/MonthReport/MonthReport.d.ts +0 -12
- package/dist/cjs/types/components/symptom-shark/presentational/MonthReport/MonthReport.stories.d.ts +0 -13
- package/dist/cjs/types/components/symptom-shark/presentational/MonthReport/index.d.ts +0 -1
- package/dist/cjs/types/components/symptom-shark/presentational/NotesTimeline/NotesTimeline.d.ts +0 -7
- package/dist/cjs/types/components/symptom-shark/presentational/NotesTimeline/NotesTimeline.stories.d.ts +0 -13
- package/dist/cjs/types/components/symptom-shark/presentational/NotesTimeline/index.d.ts +0 -1
- package/dist/cjs/types/components/symptom-shark/view/ReportBuilderView/ReportBuilderView.d.ts +0 -6
- package/dist/cjs/types/components/symptom-shark/view/ReportBuilderView/ReportBuilderView.stories.d.ts +0 -20
- package/dist/cjs/types/components/symptom-shark/view/ReportBuilderView/index.d.ts +0 -1
- package/dist/cjs/types/helpers/renderPdf.d.ts +0 -2
- package/dist/esm/types/components/symptom-shark/container/ReportBuilder/ReportBuilder.d.ts +0 -10
- package/dist/esm/types/components/symptom-shark/container/ReportBuilder/ReportBuilder.stories.d.ts +0 -16
- package/dist/esm/types/components/symptom-shark/container/ReportBuilder/index.d.ts +0 -1
- package/dist/esm/types/components/symptom-shark/presentational/BulletChart/BulletChart.d.ts +0 -7
- package/dist/esm/types/components/symptom-shark/presentational/BulletChart/BulletChart.stories.d.ts +0 -13
- package/dist/esm/types/components/symptom-shark/presentational/BulletChart/index.d.ts +0 -1
- package/dist/esm/types/components/symptom-shark/presentational/IconSelector/IconSelector.d.ts +0 -7
- package/dist/esm/types/components/symptom-shark/presentational/LogEntryIcon/LogEntryIcon.d.ts +0 -7
- package/dist/esm/types/components/symptom-shark/presentational/MonthReport/MonthReport.d.ts +0 -12
- package/dist/esm/types/components/symptom-shark/presentational/MonthReport/MonthReport.stories.d.ts +0 -13
- package/dist/esm/types/components/symptom-shark/presentational/MonthReport/index.d.ts +0 -1
- package/dist/esm/types/components/symptom-shark/presentational/NotesTimeline/NotesTimeline.d.ts +0 -7
- package/dist/esm/types/components/symptom-shark/presentational/NotesTimeline/NotesTimeline.stories.d.ts +0 -13
- package/dist/esm/types/components/symptom-shark/presentational/NotesTimeline/index.d.ts +0 -1
- package/dist/esm/types/components/symptom-shark/view/ReportBuilderView/ReportBuilderView.d.ts +0 -6
- package/dist/esm/types/components/symptom-shark/view/ReportBuilderView/ReportBuilderView.stories.d.ts +0 -20
- package/dist/esm/types/components/symptom-shark/view/ReportBuilderView/index.d.ts +0 -1
- package/dist/esm/types/helpers/renderPdf.d.ts +0 -2
package/dist/esm/types/components/asthma/components/AsthmaProviderReport/AsthmaProviderReport.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AsthmaProviderReportPreviewState } from './AsthmaProviderReport.previewData';
|
|
3
|
+
export interface AsthmaProviderReportProps {
|
|
4
|
+
previewState?: 'loading' | AsthmaProviderReportPreviewState;
|
|
5
|
+
logEntrySurveyName: string;
|
|
6
|
+
innerRef?: React.Ref<HTMLDivElement>;
|
|
7
|
+
}
|
|
8
|
+
export default function (props: AsthmaProviderReportProps): React.JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AsthmaLogEntry, AsthmaParticipant } from '../../model';
|
|
2
|
+
import { DeviceDataPoint, SurveyAnswer } from '@careevolution/mydatahelps-js';
|
|
3
|
+
export type AsthmaProviderReportPreviewState = 'default';
|
|
4
|
+
export interface AsthmaProviderReportPreviewData {
|
|
5
|
+
participant: AsthmaParticipant;
|
|
6
|
+
logEntries: AsthmaLogEntry[];
|
|
7
|
+
surveyAnswers: SurveyAnswer[];
|
|
8
|
+
airQualityDataPoints: DeviceDataPoint[];
|
|
9
|
+
}
|
|
10
|
+
export declare const previewData: Record<AsthmaProviderReportPreviewState, AsthmaProviderReportPreviewData>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import AsthmaProviderReport, { AsthmaProviderReportProps } from './AsthmaProviderReport';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof AsthmaProviderReport;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
11
|
+
export declare const Default: {
|
|
12
|
+
args: {
|
|
13
|
+
previewState: string;
|
|
14
|
+
};
|
|
15
|
+
argTypes: {
|
|
16
|
+
previewState: {
|
|
17
|
+
name: string;
|
|
18
|
+
control: string;
|
|
19
|
+
options: string[];
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
render: (args: AsthmaProviderReportProps) => React.JSX.Element;
|
|
23
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ResourceButtonVariant, ResourceImageAlignment } from '../../../presentational';
|
|
3
|
+
import './AsthmaRecommendedArticle.css';
|
|
4
|
+
export interface AsthmaRecommendedArticleProps {
|
|
5
|
+
previewState?: 'none' | 'default';
|
|
6
|
+
libraryBaseUrl: string;
|
|
7
|
+
logTodayEntrySurveyName: string;
|
|
8
|
+
imageAlignment?: ResourceImageAlignment;
|
|
9
|
+
buttonVariant?: ResourceButtonVariant;
|
|
10
|
+
buttonText?: string;
|
|
11
|
+
style?: React.CSSProperties;
|
|
12
|
+
innerRef?: React.Ref<HTMLDivElement>;
|
|
13
|
+
}
|
|
14
|
+
export default function (props: AsthmaRecommendedArticleProps): React.JSX.Element | null;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import AsthmaRecommendedArticle, { AsthmaRecommendedArticleProps } from './AsthmaRecommendedArticle';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof AsthmaRecommendedArticle;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
11
|
+
interface AsthmaRecommendedArticleStoryArgs extends AsthmaRecommendedArticleProps {
|
|
12
|
+
colorScheme: 'auto' | 'light' | 'dark';
|
|
13
|
+
}
|
|
14
|
+
export declare const Default: {
|
|
15
|
+
args: {
|
|
16
|
+
colorScheme: string;
|
|
17
|
+
previewState: string;
|
|
18
|
+
imageAlignment: string;
|
|
19
|
+
buttonVariant: undefined;
|
|
20
|
+
buttonText: string;
|
|
21
|
+
};
|
|
22
|
+
argTypes: {
|
|
23
|
+
colorScheme: {
|
|
24
|
+
name: string;
|
|
25
|
+
control: string;
|
|
26
|
+
options: string[];
|
|
27
|
+
};
|
|
28
|
+
previewState: {
|
|
29
|
+
name: string;
|
|
30
|
+
control: string;
|
|
31
|
+
options: string[];
|
|
32
|
+
};
|
|
33
|
+
imageAlignment: {
|
|
34
|
+
name: string;
|
|
35
|
+
control: string;
|
|
36
|
+
options: string[];
|
|
37
|
+
};
|
|
38
|
+
buttonVariant: {
|
|
39
|
+
name: string;
|
|
40
|
+
control: string;
|
|
41
|
+
options: (string | undefined)[];
|
|
42
|
+
};
|
|
43
|
+
buttonText: {
|
|
44
|
+
name: string;
|
|
45
|
+
if: {
|
|
46
|
+
arg: string;
|
|
47
|
+
neq: undefined;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
render: (args: AsthmaRecommendedArticleStoryArgs) => React.JSX.Element;
|
|
52
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './AsthmaRecommendedArticle';
|
|
@@ -8,3 +8,5 @@ export { default as AsthmaControlStatusHeader } from './AsthmaControlStatusHeade
|
|
|
8
8
|
export { default as AsthmaLogEntryDetails, AsthmaLogEntryDetailsPreviewState } from './AsthmaLogEntryDetails';
|
|
9
9
|
export { default as AsthmaLogEntryHeader } from './AsthmaLogEntryHeader';
|
|
10
10
|
export { default as AsthmaPostEnrollmentSurveyTrigger } from './AsthmaPostEnrollmentSurveyTrigger';
|
|
11
|
+
export { default as AsthmaProviderReport, AsthmaProviderReportPreviewState } from './AsthmaProviderReport';
|
|
12
|
+
export { default as AsthmaRecommendedArticle } from './AsthmaRecommendedArticle';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DeviceInfo, SurveyAnswer } from '@careevolution/mydatahelps-js';
|
|
1
|
+
import { DeviceDataPoint, DeviceInfo, SurveyAnswer } from '@careevolution/mydatahelps-js';
|
|
2
2
|
import { AsthmaActionPlan, AsthmaAirQuality, AsthmaBiometric, AsthmaLogEntry, AsthmaParticipant } from '../model';
|
|
3
3
|
export declare enum AsthmaDailyDataType {
|
|
4
4
|
Steps = "Asthma.Steps",
|
|
@@ -17,9 +17,11 @@ export interface AsthmaDataService {
|
|
|
17
17
|
loadBiometricsForDate(date: Date): Promise<AsthmaBiometric[]>;
|
|
18
18
|
loadAirQualitiesForControlStatus(homeAirQualityZipCode: string, workAirQualityZipCode: string): Promise<AsthmaAirQuality[]>;
|
|
19
19
|
loadAirQualitiesForDate(date: Date): Promise<AsthmaAirQuality[]>;
|
|
20
|
+
loadAirQualityDataPoints(fromDate: Date): Promise<DeviceDataPoint[]>;
|
|
20
21
|
saveLogEntry(logEntry: AsthmaLogEntry): Promise<void>;
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
loadAlertTakeover(): Promise<DeviceDataPoint | undefined>;
|
|
23
|
+
updateAlertTakeover(dataPoint: DeviceDataPoint, status: string, comment?: string): Promise<void>;
|
|
24
|
+
loadSurveyAnswers(surveyName: string | string[], fromDate?: Date): Promise<SurveyAnswer[]>;
|
|
23
25
|
loadAsthmaActionPlan(): Promise<AsthmaActionPlan | undefined>;
|
|
24
26
|
}
|
|
25
27
|
declare const service: AsthmaDataService;
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import { ParticipantInfo } from '@careevolution/mydatahelps-js';
|
|
1
|
+
import { Guid, ParticipantInfo } from '@careevolution/mydatahelps-js';
|
|
2
2
|
export declare class AsthmaParticipant {
|
|
3
3
|
participantInfo: ParticipantInfo;
|
|
4
4
|
constructor(participantInfo: ParticipantInfo);
|
|
5
|
+
getId(): Guid;
|
|
5
6
|
getFirstName(): string;
|
|
6
7
|
hasPairedDevice(): boolean;
|
|
7
8
|
hasEstablishedBaseline(): boolean;
|
|
8
9
|
getHomeAirQualityZipCode(): string;
|
|
9
10
|
getWorkAirQualityZipCode(): string;
|
|
10
11
|
getActionPlanTaskRunUUID(): string;
|
|
12
|
+
getAlertTakeover(): string | undefined;
|
|
11
13
|
getDaytimeRestingHeartRateBaseline(): number | undefined;
|
|
12
14
|
getNighttimeRestingHeartRateBaseline(): number | undefined;
|
|
13
15
|
getRespiratoryRateBaseline(): number | undefined;
|
|
@@ -19,14 +21,6 @@ export declare class AsthmaParticipant {
|
|
|
19
21
|
private getBaseline;
|
|
20
22
|
private getCustomFieldValue;
|
|
21
23
|
}
|
|
22
|
-
export interface AsthmaControlMetrics {
|
|
23
|
-
date: string;
|
|
24
|
-
nighttimeAwakeningDaysPast7: number;
|
|
25
|
-
limitedActivityDaysPast7: number;
|
|
26
|
-
inhalerUseDaysPast7: number;
|
|
27
|
-
symptomDaysPast7: number;
|
|
28
|
-
loggedDaysPast7: number;
|
|
29
|
-
}
|
|
30
24
|
export type AsthmaControlStatus = 'no-data' | 'not-controlled' | 'controlled' | 'not-determined';
|
|
31
25
|
export interface AsthmaControlState {
|
|
32
26
|
status: AsthmaControlStatus;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AsthmaProviderReportPreviewState } from '../../components';
|
|
3
|
+
export interface AsthmaProviderReportViewProps {
|
|
4
|
+
previewState?: 'loading' | AsthmaProviderReportPreviewState;
|
|
5
|
+
logEntrySurveyName: string;
|
|
6
|
+
}
|
|
7
|
+
export default function (props: AsthmaProviderReportViewProps): React.JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import AsthmaProviderReportView from './AsthmaProviderReportView';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof AsthmaProviderReportView;
|
|
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 './AsthmaProviderReportView';
|
|
@@ -5,4 +5,5 @@ export { default as AsthmaAlertTakeoverView } from './AsthmaAlertTakeoverView';
|
|
|
5
5
|
export { default as AsthmaDayView } from './AsthmaDayView';
|
|
6
6
|
export { default as AsthmaHeartAndLungsView } from './AsthmaHeartAndLungsView';
|
|
7
7
|
export { default as AsthmaLogEntryEditorView, AsthmaLogEntryEditorViewPreviewState } from './AsthmaLogEntryEditorView';
|
|
8
|
+
export { default as AsthmaProviderReportView } from './AsthmaProviderReportView';
|
|
8
9
|
export { default as AsthmaSleepView } from './AsthmaSleepView';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './InboxItemList.css';
|
|
3
3
|
import { InboxItem, InboxItemSortColumn, InboxItemStatus, InboxItemType, SortOrder } from '@careevolution/mydatahelps-js';
|
|
4
|
-
import { InboxSurveyVariant, ResourceImageAlignment } from '../../presentational';
|
|
4
|
+
import { InboxSurveyVariant, ResourceButtonVariant, ResourceImageAlignment } from '../../presentational';
|
|
5
5
|
import { InboxItemListPreviewState } from './InboxItemList.previewData';
|
|
6
6
|
export interface InboxItemListProps {
|
|
7
7
|
previewState?: InboxItemListPreviewState;
|
|
@@ -19,6 +19,8 @@ export interface InboxItemListProps {
|
|
|
19
19
|
showTitleWhenEmpty?: boolean;
|
|
20
20
|
surveyVariant?: InboxSurveyVariant;
|
|
21
21
|
resourceImageAlignment?: ResourceImageAlignment;
|
|
22
|
+
resourceButtonVariant?: ResourceButtonVariant;
|
|
23
|
+
resourceButtonText?: string;
|
|
22
24
|
hideLoadingIndicator?: boolean;
|
|
23
25
|
onItemsLoaded?: (items: InboxItem[]) => void;
|
|
24
26
|
syncOnChanges?: boolean;
|
|
@@ -17,6 +17,8 @@ export declare const Default: {
|
|
|
17
17
|
limit: number;
|
|
18
18
|
surveyVariant: string;
|
|
19
19
|
resourceImageAlignment: string;
|
|
20
|
+
resourceButtonVariant: undefined;
|
|
21
|
+
resourceButtonText: string;
|
|
20
22
|
};
|
|
21
23
|
argTypes: {
|
|
22
24
|
previewState: {
|
|
@@ -46,6 +48,7 @@ export declare const Default: {
|
|
|
46
48
|
};
|
|
47
49
|
};
|
|
48
50
|
surveyVariant: {
|
|
51
|
+
name: string;
|
|
49
52
|
control: string;
|
|
50
53
|
options: string[];
|
|
51
54
|
if: {
|
|
@@ -54,6 +57,7 @@ export declare const Default: {
|
|
|
54
57
|
};
|
|
55
58
|
};
|
|
56
59
|
resourceImageAlignment: {
|
|
60
|
+
name: string;
|
|
57
61
|
control: string;
|
|
58
62
|
options: string[];
|
|
59
63
|
if: {
|
|
@@ -61,6 +65,18 @@ export declare const Default: {
|
|
|
61
65
|
eq: string;
|
|
62
66
|
};
|
|
63
67
|
};
|
|
68
|
+
resourceButtonVariant: {
|
|
69
|
+
name: string;
|
|
70
|
+
control: string;
|
|
71
|
+
options: (string | undefined)[];
|
|
72
|
+
};
|
|
73
|
+
resourceButtonText: {
|
|
74
|
+
name: string;
|
|
75
|
+
if: {
|
|
76
|
+
arg: string;
|
|
77
|
+
neq: undefined;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
64
80
|
};
|
|
65
81
|
render: (args: InboxItemListProps) => React.JSX.Element;
|
|
66
82
|
};
|
package/dist/esm/types/components/presentational/InboxResourceListItem/InboxResourceListItem.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { InboxResource } from '@careevolution/mydatahelps-js';
|
|
3
3
|
import '@fortawesome/fontawesome-svg-core/styles.css';
|
|
4
|
-
import { ResourceImageAlignment } from '../Resource';
|
|
4
|
+
import { ResourceButtonVariant, ResourceImageAlignment } from '../Resource';
|
|
5
5
|
export interface InboxResourceListItemProps {
|
|
6
6
|
resource: InboxResource;
|
|
7
7
|
onClick: () => void;
|
|
8
8
|
imageAlignment?: ResourceImageAlignment;
|
|
9
|
+
buttonVariant?: ResourceButtonVariant;
|
|
9
10
|
buttonText?: string;
|
|
10
11
|
innerRef?: React.Ref<HTMLDivElement>;
|
|
11
12
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ResourceImageAlignment } from '../../presentational';
|
|
2
|
+
import { ResourceButtonVariant, ResourceImageAlignment } from '../../presentational';
|
|
3
3
|
import InboxResourceListItem from './InboxResourceListItem';
|
|
4
4
|
import { InboxItemStatus } from '@careevolution/mydatahelps-js';
|
|
5
5
|
declare const _default: {
|
|
@@ -16,6 +16,7 @@ interface InboxResourceListItemStoryArgs {
|
|
|
16
16
|
imageUrl?: string;
|
|
17
17
|
status: InboxItemStatus;
|
|
18
18
|
imageAlignment?: ResourceImageAlignment;
|
|
19
|
+
buttonVariant?: ResourceButtonVariant;
|
|
19
20
|
buttonText?: string;
|
|
20
21
|
}
|
|
21
22
|
export declare const Default: {
|
|
@@ -25,6 +26,7 @@ export declare const Default: {
|
|
|
25
26
|
subTitle: string;
|
|
26
27
|
imageUrl: any;
|
|
27
28
|
imageAlignment: string;
|
|
29
|
+
buttonVariant: undefined;
|
|
28
30
|
buttonText: string;
|
|
29
31
|
};
|
|
30
32
|
argTypes: {
|
|
@@ -55,11 +57,16 @@ export declare const Default: {
|
|
|
55
57
|
eq: string;
|
|
56
58
|
};
|
|
57
59
|
};
|
|
60
|
+
buttonVariant: {
|
|
61
|
+
name: string;
|
|
62
|
+
control: string;
|
|
63
|
+
options: (string | undefined)[];
|
|
64
|
+
};
|
|
58
65
|
buttonText: {
|
|
59
66
|
name: string;
|
|
60
67
|
if: {
|
|
61
68
|
arg: string;
|
|
62
|
-
|
|
69
|
+
neq: undefined;
|
|
63
70
|
};
|
|
64
71
|
};
|
|
65
72
|
};
|
|
@@ -2,14 +2,15 @@ import React from 'react';
|
|
|
2
2
|
import './Resource.css';
|
|
3
3
|
import '@fortawesome/fontawesome-svg-core/styles.css';
|
|
4
4
|
export type ResourceImageAlignment = 'left' | 'center' | 'right';
|
|
5
|
+
export type ResourceButtonVariant = 'button' | 'link';
|
|
5
6
|
export interface ResourceProps {
|
|
6
7
|
imageUrl?: string;
|
|
7
8
|
title: string;
|
|
8
9
|
subTitle?: string;
|
|
9
10
|
imageAlignment?: ResourceImageAlignment;
|
|
11
|
+
buttonVariant?: ResourceButtonVariant;
|
|
10
12
|
buttonText?: string;
|
|
11
13
|
onClick: () => void;
|
|
12
|
-
hideButton?: boolean;
|
|
13
14
|
innerRef?: React.Ref<HTMLDivElement>;
|
|
14
15
|
}
|
|
15
16
|
export default function (props: ResourceProps): React.JSX.Element;
|
|
@@ -14,7 +14,7 @@ export declare const Default: {
|
|
|
14
14
|
subTitle: string;
|
|
15
15
|
imageUrl: any;
|
|
16
16
|
imageAlignment: string;
|
|
17
|
-
|
|
17
|
+
buttonVariant: undefined;
|
|
18
18
|
buttonText: string;
|
|
19
19
|
};
|
|
20
20
|
argTypes: {
|
|
@@ -29,14 +29,16 @@ export declare const Default: {
|
|
|
29
29
|
control: string;
|
|
30
30
|
options: string[];
|
|
31
31
|
};
|
|
32
|
-
|
|
32
|
+
buttonVariant: {
|
|
33
33
|
name: string;
|
|
34
|
+
control: string;
|
|
35
|
+
options: (string | undefined)[];
|
|
34
36
|
};
|
|
35
37
|
buttonText: {
|
|
36
38
|
name: string;
|
|
37
39
|
if: {
|
|
38
40
|
arg: string;
|
|
39
|
-
|
|
41
|
+
neq: undefined;
|
|
40
42
|
};
|
|
41
43
|
};
|
|
42
44
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default, ResourceImageAlignment } from './Resource';
|
|
1
|
+
export { default, ResourceImageAlignment, ResourceButtonVariant } from './Resource';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './ResourceList.css';
|
|
3
|
-
import { ResourceImageAlignment } from '../../presentational';
|
|
3
|
+
import { ResourceButtonVariant, ResourceImageAlignment } from '../../presentational';
|
|
4
4
|
import { ResourceListPreviewState } from './ResourceList.previewData';
|
|
5
5
|
export interface ResourceDefinition {
|
|
6
6
|
title: string;
|
|
@@ -14,6 +14,8 @@ export interface ResourceListProps {
|
|
|
14
14
|
onViewResource: (resource: ResourceDefinition) => void;
|
|
15
15
|
emptyText?: string;
|
|
16
16
|
imageAlignment?: ResourceImageAlignment;
|
|
17
|
+
buttonVariant?: ResourceButtonVariant;
|
|
18
|
+
buttonText?: string;
|
|
17
19
|
innerRef?: React.Ref<HTMLDivElement>;
|
|
18
20
|
}
|
|
19
21
|
export default function (props: ResourceListProps): React.JSX.Element;
|
|
@@ -17,6 +17,8 @@ export declare const Default: {
|
|
|
17
17
|
previewState: string;
|
|
18
18
|
emptyText: string;
|
|
19
19
|
imageAlignment: string;
|
|
20
|
+
buttonVariant: undefined;
|
|
21
|
+
buttonText: string;
|
|
20
22
|
};
|
|
21
23
|
argTypes: {
|
|
22
24
|
colorScheme: {
|
|
@@ -45,6 +47,18 @@ export declare const Default: {
|
|
|
45
47
|
eq: string;
|
|
46
48
|
};
|
|
47
49
|
};
|
|
50
|
+
buttonVariant: {
|
|
51
|
+
name: string;
|
|
52
|
+
control: string;
|
|
53
|
+
options: (string | undefined)[];
|
|
54
|
+
};
|
|
55
|
+
buttonText: {
|
|
56
|
+
name: string;
|
|
57
|
+
if: {
|
|
58
|
+
arg: string;
|
|
59
|
+
neq: undefined;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
48
62
|
};
|
|
49
63
|
render: (args: ResourceListStoryArgs) => React.JSX.Element;
|
|
50
64
|
};
|
|
@@ -18,7 +18,7 @@ export { default as NotesInput } from "./NotesInput";
|
|
|
18
18
|
export { default as ProgressBar } from "./ProgressBar";
|
|
19
19
|
export { default as ProgressBarStep } from "./ProgressBar/ProgressBarStep";
|
|
20
20
|
export { default as ProgressRing } from "./ProgressRing";
|
|
21
|
-
export { default as Resource, ResourceImageAlignment } from "./Resource";
|
|
21
|
+
export { default as Resource, ResourceImageAlignment, ResourceButtonVariant } from "./Resource";
|
|
22
22
|
export { default as ResourceList, ResourceDefinition, ResourceListPreviewState } from "./ResourceList";
|
|
23
23
|
export { default as RotatingComponentCoordinator, RotatingComponentInterval } from "./RotatingComponentCoordinator";
|
|
24
24
|
export { default as Section } from "./Section";
|
|
@@ -1,5 +1,4 @@
|
|
|
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";
|
|
5
4
|
export { default as SymptomSharkVisualizationCoordinator } from "./VisualizationCoordinator";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { LogEntryIconKey } from "../presentational/LogEntryIcon/LogEntryIcon";
|
|
1
|
+
import { ParticipantInfo } from "@careevolution/mydatahelps-js";
|
|
3
2
|
export interface SymptomSharkDataService {
|
|
4
3
|
getConfiguration(): Promise<SymptomSharkConfiguration>;
|
|
5
4
|
getDailyLogEntries(after?: string, before?: string): Promise<{
|
|
@@ -8,7 +7,6 @@ export interface SymptomSharkDataService {
|
|
|
8
7
|
saveDailyLogEntry(date: string, entry: DailyLogEntry): Promise<any>;
|
|
9
8
|
}
|
|
10
9
|
export interface SymptomSharkConfiguration {
|
|
11
|
-
participantID: Guid;
|
|
12
10
|
symptoms: SymptomConfiguration[];
|
|
13
11
|
treatments: TreatmentConfiguration[];
|
|
14
12
|
}
|
|
@@ -30,7 +28,7 @@ export interface DailyLogEntry {
|
|
|
30
28
|
treatments: TreatmentReference[];
|
|
31
29
|
overallFeeling?: number;
|
|
32
30
|
notes: string;
|
|
33
|
-
icon?:
|
|
31
|
+
icon?: string;
|
|
34
32
|
}
|
|
35
33
|
export interface SymptomReference {
|
|
36
34
|
id: string;
|
|
@@ -40,7 +38,6 @@ export interface TreatmentReference {
|
|
|
40
38
|
id: string;
|
|
41
39
|
}
|
|
42
40
|
export declare function convertToSymptomSharkConfiguration(info: ParticipantInfo): {
|
|
43
|
-
participantID: Guid;
|
|
44
41
|
symptoms: SymptomConfiguration[];
|
|
45
42
|
treatments: TreatmentConfiguration[];
|
|
46
43
|
};
|
|
@@ -6,6 +6,5 @@ export interface SymptomSeverityChartProps {
|
|
|
6
6
|
symptom: SymptomConfiguration;
|
|
7
7
|
showAllDays?: boolean;
|
|
8
8
|
innerRef?: React.Ref<HTMLDivElement>;
|
|
9
|
-
variant?: "default" | "monthReport";
|
|
10
9
|
}
|
|
11
10
|
export default function (props: SymptomSeverityChartProps): React.JSX.Element | null;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
export { default as SymptomSharkBulletChart } from "./BulletChart";
|
|
2
1
|
export { default as SymptomSharkCalendar } from "./Calendar";
|
|
3
2
|
export { default as SymptomSharkOverallExperienceChart } from "./OverallExperienceChart";
|
|
4
3
|
export { default as SymptomSharkLogEntry } from "./LogEntry";
|
|
5
|
-
export { default as SymptomSharkMonthReport } from "./MonthReport";
|
|
6
|
-
export { default as SymptomSharkNotesTimeline } from "./NotesTimeline";
|
|
7
4
|
export { default as SymptomSharkSymptomTreatmentHistograms } from "./SymptomTreatmentHistograms";
|
|
8
5
|
export { default as SymptomSharkSymptomSeveritySummary } from "./SymptomSeveritySummary";
|
|
9
6
|
export { default as SymptomSharkSymptomSeverityChart } from "./SymptomSeverityChart";
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export { default as SymptomSharkCalendarView } from "./CalendarView";
|
|
2
2
|
export { default as SymptomSharkLogEntryEditView } from "./LogEntryEditView";
|
|
3
|
-
export { default as SymptomSharkReportBuilderView } from "./ReportBuilderView";
|
|
4
3
|
export { default as SymptomSharkSymptomDetailView } from "./SymptomDetailView";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ResourceDefinition, ResourceImageAlignment, ResourceListPreviewState } from '../../presentational';
|
|
2
|
+
import { ResourceButtonVariant, ResourceDefinition, ResourceImageAlignment, ResourceListPreviewState } from '../../presentational';
|
|
3
3
|
export interface ResourceListViewProps {
|
|
4
4
|
colorScheme?: 'light' | 'dark' | 'auto';
|
|
5
5
|
previewState?: ResourceListPreviewState;
|
|
@@ -7,5 +7,7 @@ export interface ResourceListViewProps {
|
|
|
7
7
|
resources: ResourceDefinition[];
|
|
8
8
|
emptyText?: string;
|
|
9
9
|
resourceImageAlignment?: ResourceImageAlignment;
|
|
10
|
+
resourceButtonVariant?: ResourceButtonVariant;
|
|
11
|
+
resourceButtonText?: string;
|
|
10
12
|
}
|
|
11
13
|
export default function (props: ResourceListViewProps): React.JSX.Element;
|
|
@@ -14,6 +14,8 @@ export declare const Default: {
|
|
|
14
14
|
previewState: string;
|
|
15
15
|
title: string;
|
|
16
16
|
resourceImageAlignment: string;
|
|
17
|
+
resourceButtonVariant: undefined;
|
|
18
|
+
resourceButtonText: string;
|
|
17
19
|
};
|
|
18
20
|
argTypes: {
|
|
19
21
|
colorScheme: {
|
|
@@ -35,6 +37,18 @@ export declare const Default: {
|
|
|
35
37
|
eq: string;
|
|
36
38
|
};
|
|
37
39
|
};
|
|
40
|
+
resourceButtonVariant: {
|
|
41
|
+
name: string;
|
|
42
|
+
control: string;
|
|
43
|
+
options: (string | undefined)[];
|
|
44
|
+
};
|
|
45
|
+
resourceButtonText: {
|
|
46
|
+
name: string;
|
|
47
|
+
if: {
|
|
48
|
+
arg: string;
|
|
49
|
+
neq: undefined;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
38
52
|
};
|
|
39
53
|
render: (args: ResourceListViewProps) => React.JSX.Element;
|
|
40
54
|
};
|