@smals-belgium-shared/vidis-medication-scheme-list 4.0.0 → 4.0.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 CHANGED
@@ -235,4 +235,7 @@
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__)
package/README.md CHANGED
@@ -40,24 +40,24 @@ The **daily view** is tailored for those who need a more specific, day-to-day br
40
40
 
41
41
  ## Inputs
42
42
 
43
- | Name | Mandatory | Possible values | Description |
44
- |-----------------------------|-----------|------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
45
- | `language` | 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. |
46
- | `configName` | true | `acc`, `prod` | Name of the configuration the application and the components are being deployed to. |
47
- | `services` | true | N/A | Set of services to be consumed by the component. see [USAGE](#Usage). |
48
- | `professional` | true | `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. |
49
- | `ssin` | true | N/A | The patient's SSIN. When `professional` is `false`, this value is ignored and the SSIN is extracted from the authentication token. |
50
- | `offlineDataStorageEnabled` | true | `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. |
51
- | `isOfflineAuthenticated` | true | `true`, `false` | A boolean flag indicating whether the web component is being accessed from an offline state. |
52
- | `exchangeClientId` | true | N/A | The client id used for the token exchange |
53
-
43
+ | Name | Mandatory | Possible values | Description |
44
+ |-----------------------------|-----------|--------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
45
+ | `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. |
46
+ | `configName` | true | `acc`, `prod` | Name of the configuration the application and the components are being deployed to. |
47
+ | `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. |
48
+ | `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`. |
49
+ | `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. |
50
+ | `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. |
51
+ | `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. |
52
+ | `exchangeClientId` | true | N/A | The client ID used for the token exchange. |
54
53
 
55
54
  ## Outputs
56
55
 
57
- | Name | Type | Description |
58
- |----------------------|--------------------------------|---------------------------------------------------------------------------------------------------------------------|
59
- | `onSelectMedication` | { id: string; date?: string; } | Notified with the selected ID code as string, date returned only if daily view |
60
- | `onError` | {reported: boolean} | Emitted after the error dialog closes. reported is true if the user confirmed reporting the error; otherwise false. |
56
+ | Name | Type | Description |
57
+ |-----------|----------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------|
58
+ | `open` | {componentTag: string, props?: {[key: string]: unknown}} | Emitted when the user navigates to a medication scheme detail. Contains the target component tag and the detail event as a prop. |
59
+ | `refresh` | {status: 'request' \| 'success' \| 'fail'} | Emitted during data refresh cycles to indicate the current refresh status. |
60
+ | `onError` | {reported: boolean} | Emitted after the error dialog closes. `reported` is `true` if the user confirmed reporting the error; otherwise `false`. |
61
61
 
62
62
 
63
63
  ## Usage
@@ -35115,7 +35115,7 @@ var fLe = (() => {
35115
35115
  console.log("[MedicationScheme prefetch] done");
35116
35116
  }).catch((t) => {
35117
35117
  console.error("[MedicationScheme prefetch] failed", t);
35118
- }), yde = { list: { tagName: "vidis-medication-scheme-list", component: fLe } }, vLe = uIe(pn.MEDICATION_SCHEME, [{ tagName: yde.list.tagName, events: [lDe, iS] }]), yLe = RDe(yde, xMe, gLe);
35118
+ }), yde = { list: { tagName: "vidis-medication-scheme-list", component: fLe } }, vLe = uIe(pn.MEDICATION_SCHEME, [{ tagName: yde.list.tagName, events: [lDe, iS, "onError"] }]), yLe = RDe(yde, xMe, gLe);
35119
35119
  export {
35120
35120
  yLe as bootstrap,
35121
35121
  vLe as manifest
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smals-belgium-shared/vidis-medication-scheme-list",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "description": "Medication scheme list web component",
5
5
  "main": "medication-scheme-list.js",
6
6
  "types": "types/main.d.ts",