@careevolution/mydatahelps-ui 2.9.1-AsthmaUI.62 → 2.9.1-AsthmaUI.65

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.
Files changed (146) hide show
  1. package/dist/cjs/index.js +137 -190
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/components/asthma/components/AsthmaActionPlanManager/AsthmaActionPlanManager.d.ts +11 -0
  4. package/dist/cjs/types/components/asthma/components/AsthmaActionPlanManager/AsthmaActionPlanManager.stories.d.ts +23 -0
  5. package/dist/cjs/types/components/asthma/components/AsthmaActionPlanManager/index.d.ts +1 -0
  6. package/dist/cjs/types/components/asthma/components/AsthmaAirQualities/AsthmaAirQualities.d.ts +1 -0
  7. package/dist/cjs/types/components/asthma/components/AsthmaAirQualities/AsthmaAirQualities.previewData.d.ts +1 -1
  8. package/dist/cjs/types/components/asthma/components/AsthmaAirQualities/AsthmaAirQualities.stories.d.ts +18 -14
  9. package/dist/cjs/types/components/asthma/components/AsthmaBarChart/AsthmaBarChart.d.ts +17 -0
  10. package/dist/cjs/types/components/asthma/components/AsthmaBarChart/index.d.ts +1 -0
  11. package/dist/cjs/types/components/asthma/components/AsthmaBiometrics/AsthmaBiometrics.previewData.d.ts +1 -1
  12. package/dist/cjs/types/components/asthma/components/AsthmaBiometrics/AsthmaBiometrics.stories.d.ts +7 -12
  13. package/dist/cjs/types/components/asthma/components/AsthmaControlStatusHeader/AsthmaControlStatusHeader.previewData.d.ts +1 -1
  14. package/dist/cjs/types/components/asthma/components/AsthmaControlStatusHeader/AsthmaControlStatusHeader.stories.d.ts +6 -121
  15. package/dist/cjs/types/components/asthma/components/AsthmaDataSummary/AsthmaDataSummary.stories.d.ts +7 -0
  16. package/dist/cjs/types/components/asthma/components/index.d.ts +2 -0
  17. package/dist/cjs/types/components/asthma/helpers/asthma-data.d.ts +1 -1
  18. package/dist/cjs/types/components/asthma/helpers/asthma-functions.d.ts +6 -0
  19. package/dist/cjs/types/components/asthma/model/types.d.ts +16 -1
  20. package/dist/cjs/types/components/asthma/views/AsthmaActionPlanView/AsthmaActionPlanView.d.ts +10 -0
  21. package/dist/cjs/types/components/asthma/views/AsthmaActionPlanView/AsthmaActionPlanView.stories.d.ts +23 -0
  22. package/dist/cjs/types/components/asthma/views/AsthmaActionPlanView/index.d.ts +1 -0
  23. package/dist/cjs/types/components/asthma/views/index.d.ts +1 -0
  24. package/dist/cjs/types/components/container/BloodPressureVisualization/BloodPressureVisualization.d.ts +12 -0
  25. package/dist/cjs/types/components/container/BloodPressureVisualization/BloodPressureVisualization.previewdata.d.ts +2 -0
  26. package/dist/cjs/types/components/container/BloodPressureVisualization/BloodPressureVisualization.stories.d.ts +43 -0
  27. package/dist/cjs/types/components/container/BloodPressureVisualization/index.d.ts +1 -0
  28. package/dist/cjs/types/components/container/InboxItemList/InboxItemList.d.ts +27 -0
  29. package/dist/cjs/types/components/container/InboxItemList/InboxItemList.previewData.d.ts +6 -0
  30. package/dist/cjs/types/components/container/InboxItemList/InboxItemList.stories.d.ts +66 -0
  31. package/dist/cjs/types/components/container/InboxItemList/index.d.ts +1 -0
  32. package/dist/cjs/types/components/container/InboxItemListCoordinator/InboxItemListCoordinator.d.ts +12 -0
  33. package/dist/cjs/types/components/container/InboxItemListCoordinator/index.d.ts +1 -0
  34. package/dist/cjs/types/components/container/SeverityCalendar/SeverityCalendar.d.ts +12 -0
  35. package/dist/cjs/types/components/container/SeverityCalendar/SeverityCalendar.previewdata.d.ts +2 -0
  36. package/dist/cjs/types/components/container/SeverityCalendar/SeverityCalendar.stories.d.ts +52 -0
  37. package/dist/cjs/types/components/container/SeverityCalendar/index.d.ts +1 -0
  38. package/dist/cjs/types/components/container/index.d.ts +4 -0
  39. package/dist/cjs/types/components/presentational/DumbbellChart/Dumbbell.d.ts +9 -0
  40. package/dist/cjs/types/components/presentational/DumbbellChart/DumbbellChart.d.ts +28 -0
  41. package/dist/cjs/types/components/presentational/DumbbellChart/index.d.ts +1 -0
  42. package/dist/cjs/types/components/presentational/InboxCompletedListItem/InboxCompletedListItem.d.ts +10 -0
  43. package/dist/cjs/types/components/presentational/InboxCompletedListItem/InboxCompletedListItem.stories.d.ts +23 -0
  44. package/dist/cjs/types/components/presentational/InboxCompletedListItem/index.d.ts +1 -0
  45. package/dist/cjs/types/components/presentational/InboxMessageListItem/InboxMessageListItem.d.ts +10 -0
  46. package/dist/cjs/types/components/presentational/InboxMessageListItem/InboxMessageListItem.stories.d.ts +24 -0
  47. package/dist/cjs/types/components/presentational/InboxMessageListItem/index.d.ts +1 -0
  48. package/dist/cjs/types/components/presentational/InboxResourceListItem/InboxResourceListItem.d.ts +12 -0
  49. package/dist/cjs/types/components/presentational/InboxResourceListItem/InboxResourceListItem.stories.d.ts +67 -0
  50. package/dist/cjs/types/components/presentational/InboxResourceListItem/index.d.ts +1 -0
  51. package/dist/cjs/types/components/presentational/InboxSurveyListItem/InboxSurveyListItem.d.ts +13 -0
  52. package/dist/cjs/types/components/presentational/InboxSurveyListItem/InboxSurveyListItem.stories.d.ts +72 -0
  53. package/dist/cjs/types/components/presentational/InboxSurveyListItem/index.d.ts +1 -0
  54. package/dist/cjs/types/components/presentational/Resource/Resource.d.ts +14 -0
  55. package/dist/cjs/types/components/presentational/Resource/Resource.stories.d.ts +36 -0
  56. package/dist/cjs/types/components/presentational/Resource/index.d.ts +1 -0
  57. package/dist/cjs/types/components/presentational/index.d.ts +6 -0
  58. package/dist/cjs/types/components/view/InboxHistoryView/InboxHistoryView.d.ts +8 -0
  59. package/dist/cjs/types/components/view/InboxHistoryView/InboxHistoryView.stories.d.ts +13 -0
  60. package/dist/cjs/types/components/view/InboxHistoryView/index.d.ts +1 -0
  61. package/dist/cjs/types/components/view/InboxMessageView/InboxMessageView.d.ts +11 -0
  62. package/dist/cjs/types/components/view/InboxMessageView/InboxMessageView.stories.d.ts +48 -0
  63. package/dist/cjs/types/components/view/InboxMessageView/index.d.ts +1 -0
  64. package/dist/cjs/types/components/view/InboxView/InboxView.d.ts +12 -0
  65. package/dist/cjs/types/components/view/InboxView/InboxView.stories.d.ts +27 -0
  66. package/dist/cjs/types/components/view/InboxView/index.d.ts +1 -0
  67. package/dist/cjs/types/components/view/index.d.ts +3 -0
  68. package/dist/cjs/types/helpers/Inbox/inbox-data.d.ts +8 -0
  69. package/dist/cjs/types/helpers/blood-pressure-data-providers/index.d.ts +3 -0
  70. package/dist/cjs/types/helpers/blood-pressure-data-providers/survey-blood-pressure-data-provider.d.ts +12 -0
  71. package/dist/cjs/types/helpers/query-all-survey-answers.d.ts +2 -0
  72. package/dist/cjs/types/index.d.ts +2 -0
  73. package/dist/esm/index.js +137 -190
  74. package/dist/esm/index.js.map +1 -1
  75. package/dist/esm/types/components/asthma/components/AsthmaActionPlanManager/AsthmaActionPlanManager.d.ts +11 -0
  76. package/dist/esm/types/components/asthma/components/AsthmaActionPlanManager/AsthmaActionPlanManager.stories.d.ts +23 -0
  77. package/dist/esm/types/components/asthma/components/AsthmaActionPlanManager/index.d.ts +1 -0
  78. package/dist/esm/types/components/asthma/components/AsthmaAirQualities/AsthmaAirQualities.d.ts +1 -0
  79. package/dist/esm/types/components/asthma/components/AsthmaAirQualities/AsthmaAirQualities.previewData.d.ts +1 -1
  80. package/dist/esm/types/components/asthma/components/AsthmaAirQualities/AsthmaAirQualities.stories.d.ts +18 -14
  81. package/dist/esm/types/components/asthma/components/AsthmaBarChart/AsthmaBarChart.d.ts +17 -0
  82. package/dist/esm/types/components/asthma/components/AsthmaBarChart/index.d.ts +1 -0
  83. package/dist/esm/types/components/asthma/components/AsthmaBiometrics/AsthmaBiometrics.previewData.d.ts +1 -1
  84. package/dist/esm/types/components/asthma/components/AsthmaBiometrics/AsthmaBiometrics.stories.d.ts +7 -12
  85. package/dist/esm/types/components/asthma/components/AsthmaControlStatusHeader/AsthmaControlStatusHeader.previewData.d.ts +1 -1
  86. package/dist/esm/types/components/asthma/components/AsthmaControlStatusHeader/AsthmaControlStatusHeader.stories.d.ts +6 -121
  87. package/dist/esm/types/components/asthma/components/AsthmaDataSummary/AsthmaDataSummary.stories.d.ts +7 -0
  88. package/dist/esm/types/components/asthma/components/index.d.ts +2 -0
  89. package/dist/esm/types/components/asthma/helpers/asthma-data.d.ts +1 -1
  90. package/dist/esm/types/components/asthma/helpers/asthma-functions.d.ts +6 -0
  91. package/dist/esm/types/components/asthma/model/types.d.ts +16 -1
  92. package/dist/esm/types/components/asthma/views/AsthmaActionPlanView/AsthmaActionPlanView.d.ts +10 -0
  93. package/dist/esm/types/components/asthma/views/AsthmaActionPlanView/AsthmaActionPlanView.stories.d.ts +23 -0
  94. package/dist/esm/types/components/asthma/views/AsthmaActionPlanView/index.d.ts +1 -0
  95. package/dist/esm/types/components/asthma/views/index.d.ts +1 -0
  96. package/dist/esm/types/components/container/BloodPressureVisualization/BloodPressureVisualization.d.ts +12 -0
  97. package/dist/esm/types/components/container/BloodPressureVisualization/BloodPressureVisualization.previewdata.d.ts +2 -0
  98. package/dist/esm/types/components/container/BloodPressureVisualization/BloodPressureVisualization.stories.d.ts +43 -0
  99. package/dist/esm/types/components/container/BloodPressureVisualization/index.d.ts +1 -0
  100. package/dist/esm/types/components/container/InboxItemList/InboxItemList.d.ts +27 -0
  101. package/dist/esm/types/components/container/InboxItemList/InboxItemList.previewData.d.ts +6 -0
  102. package/dist/esm/types/components/container/InboxItemList/InboxItemList.stories.d.ts +66 -0
  103. package/dist/esm/types/components/container/InboxItemList/index.d.ts +1 -0
  104. package/dist/esm/types/components/container/InboxItemListCoordinator/InboxItemListCoordinator.d.ts +12 -0
  105. package/dist/esm/types/components/container/InboxItemListCoordinator/index.d.ts +1 -0
  106. package/dist/esm/types/components/container/SeverityCalendar/SeverityCalendar.d.ts +12 -0
  107. package/dist/esm/types/components/container/SeverityCalendar/SeverityCalendar.previewdata.d.ts +2 -0
  108. package/dist/esm/types/components/container/SeverityCalendar/SeverityCalendar.stories.d.ts +52 -0
  109. package/dist/esm/types/components/container/SeverityCalendar/index.d.ts +1 -0
  110. package/dist/esm/types/components/container/index.d.ts +4 -0
  111. package/dist/esm/types/components/presentational/DumbbellChart/Dumbbell.d.ts +9 -0
  112. package/dist/esm/types/components/presentational/DumbbellChart/DumbbellChart.d.ts +28 -0
  113. package/dist/esm/types/components/presentational/DumbbellChart/index.d.ts +1 -0
  114. package/dist/esm/types/components/presentational/InboxCompletedListItem/InboxCompletedListItem.d.ts +10 -0
  115. package/dist/esm/types/components/presentational/InboxCompletedListItem/InboxCompletedListItem.stories.d.ts +23 -0
  116. package/dist/esm/types/components/presentational/InboxCompletedListItem/index.d.ts +1 -0
  117. package/dist/esm/types/components/presentational/InboxMessageListItem/InboxMessageListItem.d.ts +10 -0
  118. package/dist/esm/types/components/presentational/InboxMessageListItem/InboxMessageListItem.stories.d.ts +24 -0
  119. package/dist/esm/types/components/presentational/InboxMessageListItem/index.d.ts +1 -0
  120. package/dist/esm/types/components/presentational/InboxResourceListItem/InboxResourceListItem.d.ts +12 -0
  121. package/dist/esm/types/components/presentational/InboxResourceListItem/InboxResourceListItem.stories.d.ts +67 -0
  122. package/dist/esm/types/components/presentational/InboxResourceListItem/index.d.ts +1 -0
  123. package/dist/esm/types/components/presentational/InboxSurveyListItem/InboxSurveyListItem.d.ts +13 -0
  124. package/dist/esm/types/components/presentational/InboxSurveyListItem/InboxSurveyListItem.stories.d.ts +72 -0
  125. package/dist/esm/types/components/presentational/InboxSurveyListItem/index.d.ts +1 -0
  126. package/dist/esm/types/components/presentational/Resource/Resource.d.ts +14 -0
  127. package/dist/esm/types/components/presentational/Resource/Resource.stories.d.ts +36 -0
  128. package/dist/esm/types/components/presentational/Resource/index.d.ts +1 -0
  129. package/dist/esm/types/components/presentational/index.d.ts +6 -0
  130. package/dist/esm/types/components/view/InboxHistoryView/InboxHistoryView.d.ts +8 -0
  131. package/dist/esm/types/components/view/InboxHistoryView/InboxHistoryView.stories.d.ts +13 -0
  132. package/dist/esm/types/components/view/InboxHistoryView/index.d.ts +1 -0
  133. package/dist/esm/types/components/view/InboxMessageView/InboxMessageView.d.ts +11 -0
  134. package/dist/esm/types/components/view/InboxMessageView/InboxMessageView.stories.d.ts +48 -0
  135. package/dist/esm/types/components/view/InboxMessageView/index.d.ts +1 -0
  136. package/dist/esm/types/components/view/InboxView/InboxView.d.ts +12 -0
  137. package/dist/esm/types/components/view/InboxView/InboxView.stories.d.ts +27 -0
  138. package/dist/esm/types/components/view/InboxView/index.d.ts +1 -0
  139. package/dist/esm/types/components/view/index.d.ts +3 -0
  140. package/dist/esm/types/helpers/Inbox/inbox-data.d.ts +8 -0
  141. package/dist/esm/types/helpers/blood-pressure-data-providers/index.d.ts +3 -0
  142. package/dist/esm/types/helpers/blood-pressure-data-providers/survey-blood-pressure-data-provider.d.ts +12 -0
  143. package/dist/esm/types/helpers/query-all-survey-answers.d.ts +2 -0
  144. package/dist/esm/types/index.d.ts +2 -0
  145. package/dist/index.d.ts +421 -204
  146. package/package.json +4 -4
@@ -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,7 @@ 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";
33
+ export { default as InboxItemList } from "./InboxItemList";
34
+ export { default as InboxItemListCoordinator } from "./InboxItemListCoordinator";
@@ -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";
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import './InboxCompletedListItem.css';
3
+ import '@fortawesome/fontawesome-svg-core/styles.css';
4
+ export interface InboxCompletedListItemProps {
5
+ name: string;
6
+ status: string;
7
+ onClick?: () => void;
8
+ innerRef?: React.Ref<HTMLDivElement>;
9
+ }
10
+ export default function (props: InboxCompletedListItemProps): React.JSX.Element;
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ import InboxCompletedListItem from './InboxCompletedListItem';
3
+ declare const _default: {
4
+ title: string;
5
+ component: typeof InboxCompletedListItem;
6
+ parameters: {
7
+ layout: string;
8
+ };
9
+ };
10
+ export default _default;
11
+ interface InboxCompletedListItemStoryArgs {
12
+ name: string;
13
+ status: string;
14
+ clickable: boolean;
15
+ }
16
+ export declare const Default: {
17
+ args: {
18
+ name: string;
19
+ status: string;
20
+ clickable: boolean;
21
+ };
22
+ render: (args: InboxCompletedListItemStoryArgs) => React.JSX.Element;
23
+ };
@@ -0,0 +1 @@
1
+ export { default } from './InboxCompletedListItem';
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import './InboxMessageListItem.css';
3
+ import { InboxMessage } from '@careevolution/mydatahelps-js';
4
+ import '@fortawesome/fontawesome-svg-core/styles.css';
5
+ export interface InboxMessageListItemProps {
6
+ message: InboxMessage;
7
+ onClick: () => void;
8
+ innerRef?: React.Ref<HTMLDivElement>;
9
+ }
10
+ export default function (props: InboxMessageListItemProps): React.JSX.Element | null;
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ import InboxMessageListItem from './InboxMessageListItem';
3
+ import { InboxMessage } from '@careevolution/mydatahelps-js';
4
+ declare const _default: {
5
+ title: string;
6
+ component: typeof InboxMessageListItem;
7
+ parameters: {
8
+ layout: string;
9
+ };
10
+ };
11
+ export default _default;
12
+ export declare const Default: {
13
+ args: {
14
+ status: string;
15
+ title: string;
16
+ };
17
+ argTypes: {
18
+ status: {
19
+ control: string;
20
+ options: string[];
21
+ };
22
+ };
23
+ render: (message: InboxMessage) => React.JSX.Element;
24
+ };
@@ -0,0 +1 @@
1
+ export { default } from './InboxMessageListItem';
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { InboxResource } from '@careevolution/mydatahelps-js';
3
+ import '@fortawesome/fontawesome-svg-core/styles.css';
4
+ import { ResourceImageAlignment } from '../Resource';
5
+ export interface InboxResourceListItemProps {
6
+ resource: InboxResource;
7
+ onClick: () => void;
8
+ imageAlignment?: ResourceImageAlignment;
9
+ buttonText?: string;
10
+ innerRef?: React.Ref<HTMLDivElement>;
11
+ }
12
+ export default function (props: InboxResourceListItemProps): React.JSX.Element | null;
@@ -0,0 +1,67 @@
1
+ import React from 'react';
2
+ import { ResourceImageAlignment } from '../../presentational';
3
+ import InboxResourceListItem from './InboxResourceListItem';
4
+ import { InboxItemStatus } from '@careevolution/mydatahelps-js';
5
+ declare const _default: {
6
+ title: string;
7
+ component: typeof InboxResourceListItem;
8
+ parameters: {
9
+ layout: string;
10
+ };
11
+ };
12
+ export default _default;
13
+ interface InboxResourceListItemStoryArgs {
14
+ title: string;
15
+ subTitle?: string;
16
+ imageUrl?: string;
17
+ status: InboxItemStatus;
18
+ imageAlignment?: ResourceImageAlignment;
19
+ buttonText?: string;
20
+ }
21
+ export declare const Default: {
22
+ args: {
23
+ status: string;
24
+ title: string;
25
+ subTitle: string;
26
+ imageUrl: any;
27
+ imageAlignment: string;
28
+ buttonText: string;
29
+ };
30
+ argTypes: {
31
+ status: {
32
+ control: string;
33
+ options: string[];
34
+ };
35
+ subTitle: {
36
+ name: string;
37
+ if: {
38
+ arg: string;
39
+ eq: string;
40
+ };
41
+ };
42
+ imageUrl: {
43
+ name: string;
44
+ if: {
45
+ arg: string;
46
+ eq: string;
47
+ };
48
+ };
49
+ imageAlignment: {
50
+ name: string;
51
+ control: string;
52
+ options: string[];
53
+ if: {
54
+ arg: string;
55
+ eq: string;
56
+ };
57
+ };
58
+ buttonText: {
59
+ name: string;
60
+ if: {
61
+ arg: string;
62
+ eq: string;
63
+ };
64
+ };
65
+ };
66
+ render: (args: InboxResourceListItemStoryArgs) => React.JSX.Element;
67
+ };
@@ -0,0 +1 @@
1
+ export { default } from './InboxResourceListItem';
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import './InboxSurveyListItem.css';
3
+ import { InboxSurvey } from '@careevolution/mydatahelps-js';
4
+ import '@fortawesome/fontawesome-svg-core/styles.css';
5
+ export type InboxSurveyVariant = 'default' | 'expanded';
6
+ export interface InboxSurveyListItemProps {
7
+ survey: InboxSurvey;
8
+ onClick: () => void;
9
+ variant?: InboxSurveyVariant;
10
+ surveyActive?: boolean;
11
+ innerRef?: React.Ref<HTMLDivElement>;
12
+ }
13
+ export default function (props: InboxSurveyListItemProps): React.JSX.Element | null;
@@ -0,0 +1,72 @@
1
+ import React from 'react';
2
+ import InboxSurveyListItem, { InboxSurveyVariant } from './InboxSurveyListItem';
3
+ import { InboxItemStatus } from '@careevolution/mydatahelps-js';
4
+ declare const _default: {
5
+ title: string;
6
+ component: typeof InboxSurveyListItem;
7
+ parameters: {
8
+ layout: string;
9
+ };
10
+ };
11
+ export default _default;
12
+ interface InboxSurveyListItemStoryArgs {
13
+ name: string;
14
+ status: InboxItemStatus;
15
+ description?: string;
16
+ dueDate?: number;
17
+ hasSavedProgress?: boolean;
18
+ variant?: InboxSurveyVariant;
19
+ surveyActive?: boolean;
20
+ }
21
+ export declare const Default: {
22
+ args: {
23
+ variant: string;
24
+ status: string;
25
+ name: string;
26
+ description: string;
27
+ dueDate: undefined;
28
+ hasSavedProgress: boolean;
29
+ surveyActive: boolean;
30
+ };
31
+ argTypes: {
32
+ variant: {
33
+ control: string;
34
+ options: string[];
35
+ };
36
+ status: {
37
+ control: string;
38
+ options: string[];
39
+ };
40
+ description: {
41
+ if: {
42
+ arg: string;
43
+ eq: string;
44
+ };
45
+ };
46
+ dueDate: {
47
+ name: string;
48
+ control: string;
49
+ if: {
50
+ arg: string;
51
+ eq: string;
52
+ };
53
+ };
54
+ hasSavedProgress: {
55
+ name: string;
56
+ control: string;
57
+ if: {
58
+ arg: string;
59
+ eq: string;
60
+ };
61
+ };
62
+ surveyActive: {
63
+ name: string;
64
+ control: string;
65
+ if: {
66
+ arg: string;
67
+ eq: string;
68
+ };
69
+ };
70
+ };
71
+ render: (args: InboxSurveyListItemStoryArgs) => React.JSX.Element;
72
+ };
@@ -0,0 +1 @@
1
+ export { default, InboxSurveyVariant } from './InboxSurveyListItem';
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import './Resource.css';
3
+ import '@fortawesome/fontawesome-svg-core/styles.css';
4
+ export type ResourceImageAlignment = 'left' | 'center' | 'right';
5
+ export interface ResourceProps {
6
+ imageUrl?: string;
7
+ title: string;
8
+ subTitle?: string;
9
+ imageAlignment?: ResourceImageAlignment;
10
+ buttonText?: string;
11
+ onClick: () => void;
12
+ innerRef?: React.Ref<HTMLDivElement>;
13
+ }
14
+ export default function (props: ResourceProps): React.JSX.Element;
@@ -0,0 +1,36 @@
1
+ import React from 'react';
2
+ import Resource, { ResourceProps } from './Resource';
3
+ declare const _default: {
4
+ title: string;
5
+ component: typeof Resource;
6
+ parameters: {
7
+ layout: string;
8
+ };
9
+ };
10
+ export default _default;
11
+ export declare const Default: {
12
+ args: {
13
+ title: string;
14
+ subTitle: string;
15
+ imageUrl: any;
16
+ imageAlignment: string;
17
+ buttonText: string;
18
+ };
19
+ argTypes: {
20
+ subTitle: {
21
+ name: string;
22
+ };
23
+ imageUrl: {
24
+ name: string;
25
+ };
26
+ imageAlignment: {
27
+ name: string;
28
+ control: string;
29
+ options: string[];
30
+ };
31
+ buttonText: {
32
+ name: string;
33
+ };
34
+ };
35
+ render: (args: ResourceProps) => React.JSX.Element;
36
+ };
@@ -0,0 +1 @@
1
+ export { default, ResourceImageAlignment } from './Resource';
@@ -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";
@@ -17,6 +18,7 @@ export { default as NotesInput } from "./NotesInput";
17
18
  export { default as ProgressBar } from "./ProgressBar";
18
19
  export { default as ProgressBarStep } from "./ProgressBar/ProgressBarStep";
19
20
  export { default as ProgressRing } from "./ProgressRing";
21
+ export { default as Resource, ResourceImageAlignment } from "./Resource";
20
22
  export { default as RotatingText, RotatingTextEntry } from "./RotatingText";
21
23
  export { default as Section } from "./Section";
22
24
  export { default as SegmentedControl } from "./SegmentedControl";
@@ -34,3 +36,7 @@ export { default as UnstyledButton } from "./UnstyledButton";
34
36
  export { default as ValueSelector } from "./ValueSelector";
35
37
  export { default as ViewHeader } from "./ViewHeader";
36
38
  export { default as WeekCalendar } from "./WeekCalendar";
39
+ export { default as InboxCompletedListItem } from "./InboxCompletedListItem";
40
+ export { default as InboxMessageListItem } from "./InboxMessageListItem";
41
+ export { default as InboxResourceListItem } from "./InboxResourceListItem";
42
+ export { default as InboxSurveyListItem, InboxSurveyVariant } from "./InboxSurveyListItem";
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import './InboxHistoryView.css';
3
+ export interface InboxHistoryViewProps {
4
+ previewState?: 'default';
5
+ colorScheme?: 'light' | 'dark' | 'auto';
6
+ messageViewerUrl: string;
7
+ }
8
+ export default function (props: InboxHistoryViewProps): React.JSX.Element;
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import InboxHistoryView from './InboxHistoryView';
3
+ declare const _default: {
4
+ title: string;
5
+ component: typeof InboxHistoryView;
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 './InboxHistoryView';
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import './InboxMessageView.css';
3
+ import { InboxMessage } from '@careevolution/mydatahelps-js';
4
+ export interface InboxMessageViewProps {
5
+ previewState?: InboxMessage;
6
+ colorScheme?: 'light' | 'dark' | 'auto';
7
+ resourceImageAlignment?: 'left' | 'center' | 'right';
8
+ resourceButtonText?: string;
9
+ }
10
+ export default function (props: InboxMessageViewProps): React.JSX.Element;
11
+ export declare function viewInboxMessage(message: InboxMessage, url: string): void;
@@ -0,0 +1,48 @@
1
+ import React from 'react';
2
+ import InboxMessageView from './InboxMessageView';
3
+ declare const _default: {
4
+ title: string;
5
+ component: typeof InboxMessageView;
6
+ parameters: {
7
+ layout: string;
8
+ };
9
+ };
10
+ export default _default;
11
+ interface InboxMessageViewStoryArgs {
12
+ title: string;
13
+ content: string;
14
+ hasRelatedResources?: boolean;
15
+ resourceImageAlignment?: 'left' | 'center' | 'right';
16
+ resourceButtonText?: string;
17
+ }
18
+ export declare const Default: {
19
+ args: {
20
+ title: string;
21
+ content: string;
22
+ hasRelatedResources: boolean;
23
+ resourceImageAlignment: string;
24
+ resourceButtonText: string;
25
+ };
26
+ argTypes: {
27
+ hasRelatedResources: {
28
+ name: string;
29
+ };
30
+ resourceImageAlignment: {
31
+ name: string;
32
+ control: string;
33
+ options: string[];
34
+ if: {
35
+ arg: string;
36
+ eq: boolean;
37
+ };
38
+ };
39
+ resourceButtonText: {
40
+ name: string;
41
+ if: {
42
+ arg: string;
43
+ eq: boolean;
44
+ };
45
+ };
46
+ };
47
+ render: (args: InboxMessageViewStoryArgs) => React.JSX.Element;
48
+ };
@@ -0,0 +1 @@
1
+ export { default, viewInboxMessage } from './InboxMessageView';
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import './InboxView.css';
3
+ import { InboxSurveyVariant, ResourceImageAlignment } from '../../presentational';
4
+ export interface InboxViewProps {
5
+ previewState?: 'default';
6
+ colorScheme?: 'auto' | 'light' | 'dark';
7
+ surveyVariant?: InboxSurveyVariant;
8
+ resourceImageAlignment?: ResourceImageAlignment;
9
+ messageViewerUrl: string;
10
+ historyViewerUrl: string;
11
+ }
12
+ export default function (props: InboxViewProps): React.JSX.Element;
@@ -0,0 +1,27 @@
1
+ import React from 'react';
2
+ import InboxView, { InboxViewProps } from './InboxView';
3
+ declare const _default: {
4
+ title: string;
5
+ component: typeof InboxView;
6
+ parameters: {
7
+ layout: string;
8
+ };
9
+ };
10
+ export default _default;
11
+ export declare const Default: {
12
+ args: {
13
+ surveyVariant: string;
14
+ resourceImageAlignment: string;
15
+ };
16
+ argTypes: {
17
+ surveyVariant: {
18
+ control: string;
19
+ options: string[];
20
+ };
21
+ resourceImageAlignment: {
22
+ control: string;
23
+ options: string[];
24
+ };
25
+ };
26
+ render: (args: InboxViewProps) => React.JSX.Element;
27
+ };
@@ -0,0 +1 @@
1
+ export { default } from './InboxView';
@@ -12,3 +12,6 @@ export { default as MedicationsView } from "./MedicationsView";
12
12
  export { default as NotificationsView } from "./NotificationsView";
13
13
  export { default as SurveyTasksView } from "./SurveyTasksView";
14
14
  export { default as NewPointsView, NewPointsViewProps, NewPointsEntry, showNewPoints } from "./NewPointsView";
15
+ export { default as InboxView } from "./InboxView";
16
+ export { default as InboxHistoryView } from "./InboxHistoryView";
17
+ export { default as InboxMessageView } from "./InboxMessageView";
@@ -0,0 +1,8 @@
1
+ import { Guid, InboxItem, InboxItemQueryParameters, InboxItemUpdateResult } from "@careevolution/mydatahelps-js";
2
+ export interface InboxDataService {
3
+ loadInboxItems: (parameters: InboxItemQueryParameters) => Promise<InboxItem[]>;
4
+ loadInboxItem: (id: Guid) => Promise<InboxItem | undefined>;
5
+ markItemRead: (inboxItem: InboxItem) => Promise<InboxItemUpdateResult>;
6
+ }
7
+ declare const service: InboxDataService;
8
+ export default service;
@@ -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[]>;
@@ -0,0 +1,2 @@
1
+ import { SurveyAnswer, SurveyAnswersQuery } from "@careevolution/mydatahelps-js";
2
+ export default function (props: SurveyAnswersQuery): Promise<SurveyAnswer[]>;
@@ -5,4 +5,6 @@ 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';
8
10
  export * from './helpers/Initialization';