@smals-belgium-shared/vidis-delivered-medication-detail 1.1.3 → 2.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 CHANGED
@@ -35,4 +35,24 @@
35
35
  ## v1.1.3 (2025-05-16)
36
36
  * Bugfixes
37
37
 
38
+ ## v2.0.0 (2025-06-06)
39
+ * Update to Angular v19
40
+ * Update Design Kit to v2.5
41
+ * Remove title and back button
42
+
43
+ ### vidis-medication-scheme-list:
44
+ * Label correction
45
+ * Your filtering is saved when you go back from an other component
46
+
47
+ ### vidis-diarynote-list
48
+ * Add getTotalItems output
49
+
50
+ ### vidis-prescription-list
51
+ * Add getTotalItems output
52
+ * Change `onPrintPrescriptions` output to `onPrint` and type from `{base64Pdf: string, printOptions: {filename: string, orientation: 'portrait'}}` to `{title: string, content: string}`
53
+
54
+ ### vidis-prescription-detail
55
+ * Change `onPrintDetail` output to `onPrint` and type from `{base64Pdf: string, printOptions: {filename: string, orientation: 'portrait'}}` to `{title: string, content: string}`
56
+
57
+
38
58
  ## __RELEASE_VERSION__ (__RELEASE_DATE__)
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/README.md CHANGED
@@ -14,6 +14,9 @@ The container application will have to provide the input parameters to provision
14
14
 
15
15
  - A supported browser [by our Web Components](https://angular.dev/reference/versions#browser-support) AND [by eHealth][Supported browsers]
16
16
  - A valid VIDIS token. It could be obtained from [eHealth Token eXchange][eHealth IAM] service. This token must be refreshed periodically in order to be used by VIDIS
17
+ - Notify partners that are using REST APIs so your VIDIS tokens & clients will be trusted :
18
+ - [Vitalink][Vitalink] & their Apigee service – Contact: vitalink-support@smals.be
19
+ - [Farmaflux][Farmaflux] – Contact: vidis@farmaflux.be
17
20
 
18
21
  ⚠️ IE (internet explorer) is not supported. You can include [polyfill scripts ("polyfills")](https://www.webcomponents.org/polyfills) for the browsers that you must support.
19
22
 
@@ -86,12 +89,12 @@ This web component provides users with a comprehensive prescription details. The
86
89
  })
87
90
 
88
91
  // Example on how to listen to output parameter(s), for printing
89
- wc.addEventListener("eventPrintName", (event) => {
92
+ wc.addEventListener("onPrint", (event) => {
90
93
  console.log(`event:`, event)
91
94
  const params = event.detail;
92
95
  console.log('param:', params);
93
96
 
94
- const byteArray = new Uint8Array(atob(params.base64Pdf).split('').map(char => char.charCodeAt(0)))
97
+ const byteArray = new Uint8Array(atob(params.content).split('').map(char => char.charCodeAt(0)))
95
98
  const blob = new Blob([byteArray], {type: 'application/pdf'})
96
99
  const url = window.URL.createObjectURL(blob)
97
100
  window.open(url, '_blank').print()