@smals-belgium-shared/vidis-diarynote 4.0.0 → 4.0.2-snapshot.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 +7 -0
- package/README.md +16 -15
- package/diarynote.js +1205 -1203
- package/package.json +1 -1
- package/types/main.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -235,4 +235,11 @@
|
|
|
235
235
|
* Prefetching of delivered medications
|
|
236
236
|
* Prefetching of diarynotes
|
|
237
237
|
|
|
238
|
+
## v4.0.1 (2026-05-27)
|
|
239
|
+
* documenting inputs and outputs for all webcomponents
|
|
240
|
+
|
|
238
241
|
## __RELEASE_VERSION__ (__RELEASE_DATE__)
|
|
242
|
+
|
|
243
|
+
* Adapt Web Component backgrounds to be transparent in lists with cards (prescriptions, delivered medications, journal notes, medication scheme), sort & filter screens, prescription reservation flow, and manage visibility flow.
|
|
244
|
+
* Ensure internal content (cards, dropdowns, info alerts, and form elements) remains opaque.
|
|
245
|
+
|
package/README.md
CHANGED
|
@@ -49,24 +49,25 @@ The main view displays a list of all diary notes that have been created by the p
|
|
|
49
49
|
|
|
50
50
|
## Inputs
|
|
51
51
|
|
|
52
|
-
| Name | Mandatory | Possible values
|
|
53
|
-
|
|
54
|
-
| `
|
|
55
|
-
| `configName` | true | `acc`, `prod`
|
|
56
|
-
| `
|
|
57
|
-
| `professional` |
|
|
58
|
-
| `ssin` |
|
|
59
|
-
| `offlineDataStorageEnabled` |
|
|
60
|
-
| `isOfflineAuthenticated` |
|
|
61
|
-
| `exchangeClientId` |
|
|
52
|
+
| Name | Mandatory | Possible values | Description |
|
|
53
|
+
|-----------------------------|-----------|--------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
54
|
+
| `userLanguage` | true | `en`, `de`, `fr`, `nl` | The language holds the current language as a value, which means it can change over time if the user changes his/her preferred language. The web component adapts the translations based on the value set. The values of the language property are defined in the Language enum. |
|
|
55
|
+
| `configName` | true | `acc`, `prod` | Name of the configuration the application and the components are being deployed to. |
|
|
56
|
+
| `authenticationStatus` | true | `unauthenticated`, `online-authenticated`, `offline-authenticated` | Indicates the authentication state of the current user. When `online-authenticated`, the component can access all backend services. When `offline-authenticated`, the component uses cached data. When `unauthenticated`, no token is fetched from the host application. |
|
|
57
|
+
| `professional` | false | `true`, `false` | Indicates whether the component is being used in a professional context. If set to `true`, the `ssin` input must be provided and will be used to identify the patient. If `false`, the SSIN will be retrieved automatically from the authentication token. Defaults to `false`. |
|
|
58
|
+
| `ssin` | false | N/A | The patient's SSIN. Required when `professional` is `true`. When `professional` is `false`, this value is ignored and the SSIN is extracted from the authentication token. |
|
|
59
|
+
| `offlineDataStorageEnabled` | false | `true`, `false` | A boolean flag indicating whether offline data storage has been enabled by the user. When true, the web component can store and retrieve data locally for offline access. |
|
|
60
|
+
| `isOfflineAuthenticated` | false | `true`, `false` | **Deprecated** since v5.0.2 — use `authenticationStatus` instead. A boolean flag indicating whether the web component is being accessed from an offline state. |
|
|
61
|
+
| `exchangeClientId` | true | N/A | The client ID used for the token exchange. |
|
|
62
62
|
|
|
63
63
|
## Outputs
|
|
64
64
|
|
|
65
|
-
| Name | Type
|
|
66
|
-
|
|
67
|
-
| `getTotalItems` | number
|
|
68
|
-
| `onDownload` | {
|
|
69
|
-
| `
|
|
65
|
+
| Name | Type | Description |
|
|
66
|
+
|-----------------|-----------------------------------------------------|---------------------------------------------------------------------------------------------------------------------|
|
|
67
|
+
| `getTotalItems` | number | Emitted with the total number of diary notes. |
|
|
68
|
+
| `onDownload` | {fileName: string, content: Blob, mimeType: string} | Emitted when a diary note attachment download is triggered. |
|
|
69
|
+
| `refresh` | {status: 'request' \| 'success' \| 'fail'} | Emitted during data refresh cycles to indicate the current refresh status. |
|
|
70
|
+
| `onError` | {reported: boolean} | Emitted after the error dialog closes. `reported` is `true` if the user confirmed reporting the error; otherwise `false`. |
|
|
70
71
|
|
|
71
72
|
|
|
72
73
|
## Usage
|