@myhealth-belgium/webcomponent-vaccinations 0.1.4 → 1.0.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/CHANGELOG.md +24 -0
- package/README.md +46 -16
- package/html2canvas.esm-DgdJBc_o.mjs +4871 -0
- package/index-2eNTDrRN.mjs +111437 -0
- package/index.d.ts +3 -0
- package/index.es-B6GomsM_.mjs +6674 -0
- package/lib/components/vaccinations-web.component.d.ts +14 -0
- package/lib/main.d.ts +4 -0
- package/lib/mock/vaccinations-mock.d.ts +2 -0
- package/lib/services/vaccinations-webcomponent.service.d.ts +14 -0
- package/main.mjs +5 -0
- package/main.umd.js +3058 -0
- package/package.json +8 -8
- package/purify.es-DHbHSKL1.mjs +528 -0
- package/styles.css +1 -1
- package/assets/main-BzHalDr6.js +0 -1380
- package/assets/polyfills-C4iAblqc.js +0 -2
- package/main.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
# 1.0.1
|
|
2
|
+
|
|
3
|
+
**Bug fixes:**
|
|
4
|
+
|
|
5
|
+
- Specified main entry file in `package.json` so the package is installed and loads correctly.
|
|
6
|
+
- Added `cdk-scroll-view-height` input parameter, and added docs for it.
|
|
7
|
+
- Fixed `onprint` not working as intended, now emits a working base64.
|
|
8
|
+
|
|
9
|
+
# 1.0.0
|
|
10
|
+
|
|
11
|
+
**Bug fixes:**
|
|
12
|
+
|
|
13
|
+
- Updated README.md
|
|
14
|
+
- Added cards on small screen.
|
|
15
|
+
- Updated to be compliant with [integration library](https://www.npmjs.com/package/@smals-belgium/myhealth-wc-integration) 5.0.0.
|
|
16
|
+
- Reworked build process to export TypeScript declartion (`index.d.ts`) file.
|
|
17
|
+
- Renamed the package & webcomponent from `mh-webcomponent-vaccinations` to `mh-web-component-vaccinations` to be compliant with requirements.
|
|
18
|
+
|
|
19
|
+
# 0.1.5
|
|
20
|
+
|
|
21
|
+
**Bug fixes:**
|
|
22
|
+
|
|
23
|
+
- Fix issue with Authorizatiion header showing incorrectly.
|
|
24
|
+
|
|
1
25
|
# 0.1.4
|
|
2
26
|
|
|
3
27
|
**Bug fixes:**
|
package/README.md
CHANGED
|
@@ -6,39 +6,62 @@ All MyHealth webcomponents implement the [MyHealth - Web Component Integration](
|
|
|
6
6
|
|
|
7
7
|
## Usage
|
|
8
8
|
|
|
9
|
-
To use the MyHealth Webcomponent Vaccinations,
|
|
9
|
+
To use the MyHealth Webcomponent Vaccinations, import and call the package's boostrap into your application:
|
|
10
10
|
|
|
11
11
|
```ts
|
|
12
|
-
import '@myhealth-belgium/
|
|
13
|
-
```
|
|
12
|
+
import { manifest, bootstrap } from '@myhealth-belgium/web-component-vaccinations';
|
|
14
13
|
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
// Call bootstrap function with your HostSettings & HostServices
|
|
15
|
+
bootstrap({ settings: SETTINGS, services: SERVICES });
|
|
16
|
+
|
|
17
|
+
// Place the webcomponent in your HTML for it to render
|
|
18
|
+
return <mh-web-component-vaccinations print={printToPdf($event)}></mh-web-component-vaccinations>;
|
|
17
19
|
```
|
|
18
20
|
|
|
19
|
-
|
|
21
|
+
To integrate the design-kit, also import the webcomponent's styles in your code. For more information, see **Design kit integration**.
|
|
20
22
|
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
version="${hostSpecVersion}"
|
|
24
|
-
language="${Language.EN}"
|
|
25
|
-
config-name="${Configuration.DEMO}"
|
|
26
|
-
services="${services}"
|
|
27
|
-
></mh-webcomponent-vaccinations>
|
|
23
|
+
```ts
|
|
24
|
+
import '@myhealth-belgium/web-component-vaccinations/styles.css';
|
|
28
25
|
```
|
|
29
26
|
|
|
27
|
+
### Bootstrap settings and services
|
|
28
|
+
|
|
29
|
+
The `bootstrap()` function is called with 2 objects, `HostSettings` and `HostServices`. These follow the guidelines provided by the [MyHealth - Web Component Integration](https://www.npmjs.com/package/@smals-belgium/myhealth-wc-integration).
|
|
30
|
+
|
|
31
|
+
The `HostSettings` will define the component's inputs, however these can be overriden by passing these settings as attributes to the component's HTML implementation.
|
|
32
|
+
|
|
33
|
+
### Manifest, inputs & outputs
|
|
34
|
+
|
|
35
|
+
Each MyHealth webcomponent provides a `manifest` constant that is compliant with the guidelines provided by the [MyHealth - Web Component Integration](https://www.npmjs.com/package/@smals-belgium/myhealth-wc-integration).
|
|
36
|
+
|
|
37
|
+
The manifest can be viewed to see the component(s) inside the package, as well as required additional inputs and outputs that the component may emit.
|
|
38
|
+
|
|
39
|
+
#### Vaccinations component
|
|
40
|
+
|
|
41
|
+
`tagName`: `<mh-web-component-vaccinations />`
|
|
42
|
+
|
|
43
|
+
| Property | Type | Required | Description |
|
|
44
|
+
| ------------------------ | -------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
45
|
+
| `user-language` | `UserLanguage` | No | The language for the webcomponent interface. Automatically updates the translation service when changed. |
|
|
46
|
+
| `config-name` | `ConfigName` | No | The configuration name that determines the environment and API endpoints. Set to `"demo"` to use mock data instead of API calls. |
|
|
47
|
+
| `cdk-scroll-view-height` | `string` | No | The height of the CDK scroll with cards that is displayed on mobile. Injected as CSS and should thus be a number followed by any [CSS size unit](https://developer.mozilla.org/en-US/docs/Learn_web_development/Core/Styling_basics/Values_and_units). F.e.: `500px`. |
|
|
48
|
+
|
|
49
|
+
| Event | Type | Required | Description |
|
|
50
|
+
| --------- | ------------ | -------- | --------------------------------------- |
|
|
51
|
+
| `onprint` | `printEvent` | **Yes** | Emits content that neesd to be printed. |
|
|
52
|
+
|
|
30
53
|
### Mock data
|
|
31
54
|
|
|
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"`.
|
|
55
|
+
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"`, or configure it in `HostSettings`.
|
|
33
56
|
When in demo mode, the webcomponent will not make API calls and use standard mock data instead.
|
|
34
57
|
|
|
35
|
-
|
|
58
|
+
## Design kit integration
|
|
36
59
|
|
|
37
60
|
As stated before, all MyHealth webcomponents use the [MyHealth - Angular design kit](https://www.npmjs.com/package/@myhealth-belgium/design-kit) package.
|
|
38
61
|
|
|
39
62
|
This means all webcomponents use the core functionality of the design kit, and override the Material components that the webcomponent consumes.
|
|
40
63
|
|
|
41
|
-
By default, importing `@myhealth-belgium/
|
|
64
|
+
By default, importing `@myhealth-belgium/web-component-vaccinations/styles.css` will execute the mixins below.
|
|
42
65
|
|
|
43
66
|
```scss
|
|
44
67
|
@include mh.core();
|
|
@@ -48,3 +71,10 @@ By default, importing `@myhealth-belgium/webcomponent-vaccinations/styles.css` w
|
|
|
48
71
|
```
|
|
49
72
|
|
|
50
73
|
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).
|
|
74
|
+
|
|
75
|
+
<hr>
|
|
76
|
+
|
|
77
|
+
This package is owned and maintained by:
|
|
78
|
+
|
|
79
|
+
> [FPS Health](https://www.health.belgium.be/en), Food Chain Safety & Environment
|
|
80
|
+
> [Av. Galilée 5 bus 2, 1210 Brussels](https://share.google/UrNwQwxN1O5eFZQaO)
|