@myhealth-belgium/webcomponent-therapeutic-relations 0.1.1
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/CHANGELOG.md +19 -0
- package/README.md +50 -0
- package/assets/main-BqK5ZFGh.js +1381 -0
- package/assets/polyfills-C4iAblqc.js +2 -0
- package/main.js +1 -0
- package/package.json +15 -0
- package/styles.css +1 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# 0.1.1
|
|
2
|
+
|
|
3
|
+
**Bug fixes:**
|
|
4
|
+
|
|
5
|
+
- Added local MatSymbols-Rounded file with required symbols for this webcomponent.
|
|
6
|
+
|
|
7
|
+
# 0.1.0
|
|
8
|
+
|
|
9
|
+
Initial version.
|
|
10
|
+
|
|
11
|
+
This version contains the therapeutic relations component as seen in (MyHealth)[https://myhealth.belgium.be/], packaged as a webcomponent.
|
|
12
|
+
|
|
13
|
+
The webcomponent implements the [MyHealth Webcomponent integration library](https://www.npmjs.com/package/@smals-belgium/myhealth-wc-integration) and use the [MyHealth - Angular design kit](https://www.npmjs.com/package/@myhealth-belgium/design-kit) package for styling.
|
|
14
|
+
|
|
15
|
+
It should be noted there is no authorization built into the component yet, so the data retrieved by the webcomponent will always be null and an error will be shown.
|
|
16
|
+
|
|
17
|
+
**New features:**
|
|
18
|
+
|
|
19
|
+
- Therapeutic relations webcomponent with inputs as declared in [MyHealth Webcomponent integration library](https://www.npmjs.com/package/@smals-belgium/myhealth-wc-integration)
|
package/README.md
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# MyHealth Webcomponent Vaccinations
|
|
2
|
+
|
|
3
|
+
The MyHealth Webcomponent Vaccinations provides a comprehensive view of a user's vaccination history.
|
|
4
|
+
|
|
5
|
+
All MyHealth webcomponents implement the [MyHealth - Web Component Integration](https://www.npmjs.com/package/@smals-belgium/myhealth-wc-integration) and use the [MyHealth - Angular design kit](https://www.npmjs.com/package/@myhealth-belgium/design-kit) package for styling.
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
To use the MyHealth Webcomponent Vaccinations, simply import the package's JavaScript and CSS into your application:
|
|
10
|
+
|
|
11
|
+
```ts
|
|
12
|
+
import '@myhealth-belgium/webcomponent-webcomponent-vaccinations';
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
```scss
|
|
16
|
+
@use '@myhealth-belgium/webcomponent-webcomponent-vaccinations/styles.css';
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Then, implement the webcomponent in your HTML according to [MyHealth - Web Component Integration](https://www.npmjs.com/package/@smals-belgium/myhealth-wc-integration)'s guidelines. Example:
|
|
20
|
+
|
|
21
|
+
```html
|
|
22
|
+
<mh-webcomponent-vaccinations
|
|
23
|
+
version="${hostSpecVersion}"
|
|
24
|
+
language="${Language.EN}"
|
|
25
|
+
config-name="${Configuration.DEMO}"
|
|
26
|
+
services="${services}"
|
|
27
|
+
></mh-webcomponent-vaccinations>
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### Mock data
|
|
31
|
+
|
|
32
|
+
There is an option to display simple mock data with this webcomponent by changing the `config-name` attribute passed to the webcomponent to: `config-name="demo"`.
|
|
33
|
+
When in demo mode, the webcomponent will not make API calls and use standard mock data instead.
|
|
34
|
+
|
|
35
|
+
### Design kit integration
|
|
36
|
+
|
|
37
|
+
As stated before, all MyHealth webcomponents use the [MyHealth - Angular design kit](https://www.npmjs.com/package/@myhealth-belgium/design-kit) package.
|
|
38
|
+
|
|
39
|
+
This means all webcomponents use the core functionality of the design kit, and override the Material components that the webcomponent consumes.
|
|
40
|
+
|
|
41
|
+
By default, importing `@myhealth-belgium/webcomponent-webcomponent-vaccinations/styles.css` will execute the mixins below.
|
|
42
|
+
|
|
43
|
+
```scss
|
|
44
|
+
@include mh.core();
|
|
45
|
+
@include mh.override-mat-table();
|
|
46
|
+
@include mh.override-mat-form-field();
|
|
47
|
+
@include mh.override-mat-button();
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
You **can leave out the styling** if you **provide** these **mixins yourself** using the [MyHealth - Angular design kit](https://www.npmjs.com/package/@myhealth-belgium/design-kit).
|