@myhealth-belgium/webcomponent-vaccinations 1.2.0 → 1.4.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 +11 -0
- package/README.md +34 -11
- package/index.d.ts +1 -0
- package/lib/components/vaccinations-legacy-web.component.d.ts +11 -0
- package/lib/components/vaccinations-web.component.d.ts +1 -4
- package/lib/legacy.d.ts +5 -0
- package/main.mjs +42439 -44121
- package/main.umd.js +353 -364
- package/package.json +1 -1
- package/styles.css +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
# 1.4.0
|
|
2
|
+
|
|
3
|
+
- Added the field product description to the list and card of the vaccination
|
|
4
|
+
|
|
5
|
+
# 1.3.0
|
|
6
|
+
|
|
7
|
+
**New features:**
|
|
8
|
+
|
|
9
|
+
- Removed the optional `isLegacy` input in favor of providing two web components, where one is legacy (KMEHR) mode and the other is not (FHIR).
|
|
10
|
+
- Added docs on how to implement the legacy `mh-web-component-vaccinations-legacy` component using the `legacy` MyHealthModule. (Implementation is the same as non-legacy component)
|
|
11
|
+
|
|
1
12
|
# 1.2.0
|
|
2
13
|
|
|
3
14
|
**New features:**
|
package/README.md
CHANGED
|
@@ -15,7 +15,9 @@ import { manifest, bootstrap } from '@myhealth-belgium/web-component-vaccination
|
|
|
15
15
|
bootstrap({ settings: SETTINGS, services: SERVICES });
|
|
16
16
|
|
|
17
17
|
// Place the webcomponent in your HTML for it to render
|
|
18
|
-
return
|
|
18
|
+
return (
|
|
19
|
+
<mh-web-component-vaccinations onprint={printToPdf($event)} full-name="John Doe"></mh-web-component-vaccinations>
|
|
20
|
+
);
|
|
19
21
|
```
|
|
20
22
|
|
|
21
23
|
To integrate the design-kit, also import the webcomponent's styles in your code. For more information, see **Design kit integration**.
|
|
@@ -38,20 +40,41 @@ Each MyHealth webcomponent provides a `manifest` constant that is compliant with
|
|
|
38
40
|
|
|
39
41
|
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.
|
|
40
42
|
|
|
41
|
-
#### Vaccinations component
|
|
43
|
+
#### Vaccinations component (FHIR)
|
|
42
44
|
|
|
43
45
|
`tagName`: `<mh-web-component-vaccinations />`
|
|
44
46
|
|
|
45
|
-
| Property | Type
|
|
46
|
-
| --------------- |
|
|
47
|
-
| `user-language` | `UserLanguage`
|
|
48
|
-
| `config-name` | `ConfigName`
|
|
49
|
-
| `full-name` | `string`
|
|
50
|
-
|
|
|
47
|
+
| Property | Type | Required | Description |
|
|
48
|
+
| --------------- | -------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------- |
|
|
49
|
+
| `user-language` | `UserLanguage` | No | The language for the webcomponent interface. Automatically updates the translation service when changed. |
|
|
50
|
+
| `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. |
|
|
51
|
+
| `full-name` | `string` | No | The user's full name, will be displayed in the PDF on the top right side if it is provided. |
|
|
52
|
+
| Event | Type | Required | Description |
|
|
53
|
+
| --------- | ------------ | -------- | --------------------------------------- |
|
|
54
|
+
| `onprint` | `printEvent` | **Yes** | Emits content that neesd to be printed. |
|
|
51
55
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
56
|
+
### Legacy vaccinations component (KMEHR)
|
|
57
|
+
|
|
58
|
+
`tagName`: `<mh-web-component-vaccinations-legacy />`
|
|
59
|
+
|
|
60
|
+
The implementation for this component is similar to the implementation of the non-legacy component:
|
|
61
|
+
|
|
62
|
+
```ts
|
|
63
|
+
import { legacy } from '@myhealth-belgium/web-component-vaccinations';
|
|
64
|
+
|
|
65
|
+
// Call bootstrap function with your HostSettings & HostServices
|
|
66
|
+
legacy.bootstrap({ settings: SETTINGS, services: SERVICES });
|
|
67
|
+
|
|
68
|
+
// Place the webcomponent in your HTML for it to render
|
|
69
|
+
return (
|
|
70
|
+
<mh-web-component-vaccinations-legacy
|
|
71
|
+
onprint={printToPdf($event)}
|
|
72
|
+
full-name="John Doe"
|
|
73
|
+
></mh-web-component-vaccinations-legacy>
|
|
74
|
+
);
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
All inputs and outputs are identical to the non-legacy component.
|
|
55
78
|
|
|
56
79
|
### Mock data
|
|
57
80
|
|
package/index.d.ts
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { BaseWebComponent } from '@myhealth-belgium/web-component-utils';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class VaccinationsLegacyWebComponent extends BaseWebComponent implements OnInit {
|
|
5
|
+
private readonly vaccinationsService;
|
|
6
|
+
readonly fullName: import("@angular/core").InputSignal<string>;
|
|
7
|
+
ngOnInit(): void;
|
|
8
|
+
printVaccinations(content: string): Promise<void>;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VaccinationsLegacyWebComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VaccinationsLegacyWebComponent, "mh-web-component-vaccinations-legacy", never, { "fullName": { "alias": "fullName"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
11
|
+
}
|
|
@@ -3,12 +3,9 @@ import { BaseWebComponent } from '@myhealth-belgium/web-component-utils';
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class VaccinationsWebComponent extends BaseWebComponent implements OnInit {
|
|
5
5
|
private readonly vaccinationsService;
|
|
6
|
-
private readonly isLegacyDefault;
|
|
7
6
|
readonly fullName: import("@angular/core").InputSignal<string>;
|
|
8
|
-
readonly isLegacy: import("@angular/core").InputSignal<string | boolean>;
|
|
9
|
-
readonly useLegacyMode: import("@angular/core").Signal<boolean>;
|
|
10
7
|
ngOnInit(): void;
|
|
11
8
|
printVaccinations(content: string): Promise<void>;
|
|
12
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<VaccinationsWebComponent, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<VaccinationsWebComponent, "mh-web-component-vaccinations", never, { "fullName": { "alias": "fullName"; "required": false; "isSignal": true; };
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VaccinationsWebComponent, "mh-web-component-vaccinations", never, { "fullName": { "alias": "fullName"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
14
11
|
}
|
package/lib/legacy.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { MyHealthModule, MyHealthModuleBootstrap, MyHealthModuleManifest } from '@smals-belgium/myhealth-wc-integration';
|
|
2
|
+
export declare const legacyTagName: string;
|
|
3
|
+
export declare const manifest: MyHealthModuleManifest;
|
|
4
|
+
export declare const bootstrap: MyHealthModuleBootstrap;
|
|
5
|
+
export declare const legacy: MyHealthModule;
|