@careevolution/mydatahelps-ui 2.9.1-AsthmaUI.65 → 2.9.1-AsthmaUI.66
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 +3 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/asthma/components/AsthmaLibraryArticles/AsthmaLibraryArticles.d.ts +12 -0
- package/dist/cjs/types/components/asthma/components/AsthmaLibraryArticles/AsthmaLibraryArticles.previewData.d.ts +6 -0
- package/dist/cjs/types/components/asthma/components/AsthmaLibraryArticles/AsthmaLibraryArticles.stories.d.ts +33 -0
- package/dist/cjs/types/components/asthma/components/AsthmaLibraryArticles/index.d.ts +2 -0
- package/dist/cjs/types/components/asthma/components/AsthmaLibraryCategories/AsthmaLibraryCategories.d.ts +10 -0
- package/dist/cjs/types/components/asthma/components/AsthmaLibraryCategories/AsthmaLibraryCategories.previewData.d.ts +6 -0
- package/dist/cjs/types/components/asthma/components/AsthmaLibraryCategories/AsthmaLibraryCategories.stories.d.ts +23 -0
- package/dist/cjs/types/components/asthma/components/AsthmaLibraryCategories/index.d.ts +2 -0
- package/dist/cjs/types/components/asthma/components/index.d.ts +2 -0
- package/dist/cjs/types/components/asthma/helpers/asthma-data.d.ts +2 -1
- package/dist/cjs/types/components/asthma/model/types.d.ts +11 -0
- package/dist/cjs/types/components/asthma/views/AsthmaLibraryCategoryView/AsthmaLibraryCategoryView.d.ts +11 -0
- package/dist/cjs/types/components/asthma/views/AsthmaLibraryCategoryView/AsthmaLibraryCategoryView.previewData.d.ts +6 -0
- package/dist/cjs/types/components/asthma/views/AsthmaLibraryCategoryView/AsthmaLibraryCategoryView.stories.d.ts +34 -0
- package/dist/cjs/types/components/asthma/views/AsthmaLibraryCategoryView/index.d.ts +1 -0
- package/dist/cjs/types/components/presentational/Resource/Resource.d.ts +1 -0
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/asthma/components/AsthmaLibraryArticles/AsthmaLibraryArticles.d.ts +12 -0
- package/dist/esm/types/components/asthma/components/AsthmaLibraryArticles/AsthmaLibraryArticles.previewData.d.ts +6 -0
- package/dist/esm/types/components/asthma/components/AsthmaLibraryArticles/AsthmaLibraryArticles.stories.d.ts +33 -0
- package/dist/esm/types/components/asthma/components/AsthmaLibraryArticles/index.d.ts +2 -0
- package/dist/esm/types/components/asthma/components/AsthmaLibraryCategories/AsthmaLibraryCategories.d.ts +10 -0
- package/dist/esm/types/components/asthma/components/AsthmaLibraryCategories/AsthmaLibraryCategories.previewData.d.ts +6 -0
- package/dist/esm/types/components/asthma/components/AsthmaLibraryCategories/AsthmaLibraryCategories.stories.d.ts +23 -0
- package/dist/esm/types/components/asthma/components/AsthmaLibraryCategories/index.d.ts +2 -0
- package/dist/esm/types/components/asthma/components/index.d.ts +2 -0
- package/dist/esm/types/components/asthma/helpers/asthma-data.d.ts +2 -1
- package/dist/esm/types/components/asthma/model/types.d.ts +11 -0
- package/dist/esm/types/components/asthma/views/AsthmaLibraryCategoryView/AsthmaLibraryCategoryView.d.ts +11 -0
- package/dist/esm/types/components/asthma/views/AsthmaLibraryCategoryView/AsthmaLibraryCategoryView.previewData.d.ts +6 -0
- package/dist/esm/types/components/asthma/views/AsthmaLibraryCategoryView/AsthmaLibraryCategoryView.stories.d.ts +34 -0
- package/dist/esm/types/components/asthma/views/AsthmaLibraryCategoryView/index.d.ts +1 -0
- package/dist/esm/types/components/presentational/Resource/Resource.d.ts +1 -0
- package/dist/index.d.ts +814 -780
- package/package.json +1 -1
package/dist/cjs/types/components/asthma/components/AsthmaLibraryArticles/AsthmaLibraryArticles.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './AsthmaLibraryArticles.css';
|
|
3
|
+
import { AsthmaLibraryArticlesPreviewState } from './AsthmaLibraryArticles.previewData';
|
|
4
|
+
import { ResourceImageAlignment } from '../../../presentational';
|
|
5
|
+
export interface AsthmaLibraryArticlesProps {
|
|
6
|
+
previewState?: AsthmaLibraryArticlesPreviewState;
|
|
7
|
+
categoryConfigUrl: string;
|
|
8
|
+
category: string;
|
|
9
|
+
imageAlignment?: ResourceImageAlignment;
|
|
10
|
+
innerRef?: React.Ref<HTMLDivElement>;
|
|
11
|
+
}
|
|
12
|
+
export default function (props: AsthmaLibraryArticlesProps): React.JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AsthmaLibraryArticle } from '../../model';
|
|
2
|
+
export type AsthmaLibraryArticlesPreviewState = 'no articles' | 'some articles';
|
|
3
|
+
export interface AsthmaLibraryArticlesPreviewData {
|
|
4
|
+
articles: AsthmaLibraryArticle[];
|
|
5
|
+
}
|
|
6
|
+
export declare const previewData: Record<AsthmaLibraryArticlesPreviewState, AsthmaLibraryArticlesPreviewData>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import AsthmaLibraryArticles, { AsthmaLibraryArticlesProps } from './AsthmaLibraryArticles';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof AsthmaLibraryArticles;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
11
|
+
export declare const Default: {
|
|
12
|
+
args: {
|
|
13
|
+
previewState: string;
|
|
14
|
+
articleImageAlignment: string;
|
|
15
|
+
};
|
|
16
|
+
argTypes: {
|
|
17
|
+
previewState: {
|
|
18
|
+
name: string;
|
|
19
|
+
control: string;
|
|
20
|
+
options: string[];
|
|
21
|
+
};
|
|
22
|
+
articleImageAlignment: {
|
|
23
|
+
name: string;
|
|
24
|
+
control: string;
|
|
25
|
+
options: string[];
|
|
26
|
+
if: {
|
|
27
|
+
arg: string;
|
|
28
|
+
eq: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
render: (args: AsthmaLibraryArticlesProps) => React.JSX.Element;
|
|
33
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './AsthmaLibraryCategories.css';
|
|
3
|
+
import { AsthmaLibraryCategoriesPreviewState } from './AsthmaLibraryCategories.previewData';
|
|
4
|
+
export interface AsthmaLibraryCategoriesProps {
|
|
5
|
+
previewState?: AsthmaLibraryCategoriesPreviewState;
|
|
6
|
+
categoryConfigUrl: string;
|
|
7
|
+
categoryViewUrl: string;
|
|
8
|
+
innerRef?: React.Ref<HTMLDivElement>;
|
|
9
|
+
}
|
|
10
|
+
export default function (props: AsthmaLibraryCategoriesProps): React.JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AsthmaLibraryCategory } from '../../model';
|
|
2
|
+
export type AsthmaLibraryCategoriesPreviewState = 'no categories' | 'some categories';
|
|
3
|
+
export interface AsthmaLibraryCategoriesPreviewData {
|
|
4
|
+
categories: AsthmaLibraryCategory[];
|
|
5
|
+
}
|
|
6
|
+
export declare const previewData: Record<AsthmaLibraryCategoriesPreviewState, AsthmaLibraryCategoriesPreviewData>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import AsthmaLibraryCategories, { AsthmaLibraryCategoriesProps } from './AsthmaLibraryCategories';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof AsthmaLibraryCategories;
|
|
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: AsthmaLibraryCategoriesProps) => React.JSX.Element;
|
|
23
|
+
};
|
|
@@ -8,6 +8,8 @@ export { default as AsthmaControlCalendar, AsthmaControlCalendarVariant } from '
|
|
|
8
8
|
export { default as AsthmaControlStatusHeader } from './AsthmaControlStatusHeader';
|
|
9
9
|
export { default as AsthmaDataSummary } from './AsthmaDataSummary';
|
|
10
10
|
export { default as AsthmaFacts } from './AsthmaFacts';
|
|
11
|
+
export { default as AsthmaLibraryArticles, AsthmaLibraryArticlesPreviewState } from './AsthmaLibraryArticles';
|
|
12
|
+
export { default as AsthmaLibraryCategories, AsthmaLibraryCategoriesPreviewState } from './AsthmaLibraryCategories';
|
|
11
13
|
export { default as AsthmaLogEntryDetails, AsthmaLogEntryDetailsPreviewState } from './AsthmaLogEntryDetails';
|
|
12
14
|
export { default as AsthmaLogEntryHeader } from './AsthmaLogEntryHeader';
|
|
13
15
|
export { default as AsthmaLogEntrySummary } from './AsthmaLogEntrySummary';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SurveyAnswer } from '@careevolution/mydatahelps-js';
|
|
2
|
-
import { AsthmaAirQuality, AsthmaBiometric, AsthmaLogEntry, AsthmaParticipant } from '../model';
|
|
2
|
+
import { AsthmaAirQuality, AsthmaBiometric, AsthmaLibraryCategory, AsthmaLogEntry, AsthmaParticipant } from '../model';
|
|
3
3
|
export interface AsthmaDataService {
|
|
4
4
|
loadParticipant(): Promise<AsthmaParticipant>;
|
|
5
5
|
loadLogEntries(fromDate?: Date, toDate?: Date): Promise<AsthmaLogEntry[]>;
|
|
@@ -10,6 +10,7 @@ export interface AsthmaDataService {
|
|
|
10
10
|
saveLogEntry(logEntry: AsthmaLogEntry): Promise<void>;
|
|
11
11
|
loadAndClearAlertTakeover(): Promise<string | undefined>;
|
|
12
12
|
loadSurveyAnswers(surveyNames: string[]): Promise<SurveyAnswer[]>;
|
|
13
|
+
loadLibraryCategories(url: string): Promise<AsthmaLibraryCategory[]>;
|
|
13
14
|
}
|
|
14
15
|
declare const service: AsthmaDataService;
|
|
15
16
|
export default service;
|
|
@@ -62,3 +62,14 @@ export interface AsthmaActionPlan {
|
|
|
62
62
|
id: string;
|
|
63
63
|
url: string;
|
|
64
64
|
}
|
|
65
|
+
export interface AsthmaLibraryArticle {
|
|
66
|
+
title: string;
|
|
67
|
+
subTitle?: string;
|
|
68
|
+
url: string;
|
|
69
|
+
imageUrl?: string;
|
|
70
|
+
}
|
|
71
|
+
export interface AsthmaLibraryCategory {
|
|
72
|
+
title: string;
|
|
73
|
+
category: string;
|
|
74
|
+
articles: AsthmaLibraryArticle[];
|
|
75
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ResourceImageAlignment } from '../../../presentational';
|
|
3
|
+
import { AsthmaLibraryCategoryViewPreviewState } from './AsthmaLibraryCategoryView.previewData';
|
|
4
|
+
export interface AsthmaLibraryCategoryViewProps {
|
|
5
|
+
previewState?: AsthmaLibraryCategoryViewPreviewState;
|
|
6
|
+
colorScheme?: 'light' | 'dark' | 'auto';
|
|
7
|
+
categoryConfigUrl: string;
|
|
8
|
+
category: string;
|
|
9
|
+
articleImageAlignment?: ResourceImageAlignment;
|
|
10
|
+
}
|
|
11
|
+
export default function (props: AsthmaLibraryCategoryViewProps): React.JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AsthmaLibraryArticlesPreviewState } from "../../components";
|
|
2
|
+
export type AsthmaLibraryCategoryViewPreviewState = 'no articles' | 'some articles';
|
|
3
|
+
export interface AsthmaLibraryCategoryViewPreviewData {
|
|
4
|
+
articlesPreviewState: AsthmaLibraryArticlesPreviewState;
|
|
5
|
+
}
|
|
6
|
+
export declare const previewData: Record<AsthmaLibraryCategoryViewPreviewState, AsthmaLibraryCategoryViewPreviewData>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import AsthmaLibraryCategoryView, { AsthmaLibraryCategoryViewProps } from './AsthmaLibraryCategoryView';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof AsthmaLibraryCategoryView;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
11
|
+
export declare const Default: {
|
|
12
|
+
args: {
|
|
13
|
+
previewState: string;
|
|
14
|
+
category: string;
|
|
15
|
+
articleImageAlignment: string;
|
|
16
|
+
};
|
|
17
|
+
argTypes: {
|
|
18
|
+
previewState: {
|
|
19
|
+
name: string;
|
|
20
|
+
control: string;
|
|
21
|
+
options: string[];
|
|
22
|
+
};
|
|
23
|
+
articleImageAlignment: {
|
|
24
|
+
name: string;
|
|
25
|
+
control: string;
|
|
26
|
+
options: string[];
|
|
27
|
+
if: {
|
|
28
|
+
arg: string;
|
|
29
|
+
eq: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
render: (args: AsthmaLibraryCategoryViewProps) => React.JSX.Element;
|
|
34
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './AsthmaLibraryCategoryView';
|