# Changelog

## v1.0.2 (2025-03-11)
### First release
* Initial release

## v1.0.6 (2025-03-14)
### vidis-delivered-medication-detail:
* Fix package import
### vidis-diarynote:
* Hide filters when there aren't any data

## v1.1.0 (2025-05-07)
* Implementing the demo mode
### vidis-medication-scheme:
* Redesign of the vidis medication scheme web component
* Split up vidis-medication-scheme into a list and detail web component
* Add full list of medication on list view, with filters for 'full list', 'current' and 'future'
### vidis-prescription-list
* Add onPrintPrescriptions output, with parameters:
	* base64Pdf: this is a base64 version of the pdf that needs to be printed
	* printerOptions: this is an object with `name` this is the file name and `orientation` this is the orientation the printing should happen
### vidis-prescription-detail
* Add onPrintDetail output, with parameters:
	* base64Pdf: this is a base64 version of the pdf that needs to be printed
	* printerOptions: this is an object with `name` this is the file name and `orientation` this is the orientation the printing should happen

## v1.1.1 (2025-05-07)
* Technical release. No new features or bug fixes.

## v1.1.2 (2025-05-07)
### vidis-medication-scheme-list:
* Bugfix package.json

## v1.1.3 (2025-05-16)
* Bugfixes

## v2.0.0 (2025-06-06)
* Update to Angular v19
* Update Design Kit to v2.5
* Remove title and back button

### vidis-medication-scheme-list:
* Label correction
* Your filtering is saved when you go back from an other component

### vidis-diarynote-list
* Add getTotalItems output

### vidis-prescription-list
* Add getTotalItems output
* Change `onPrintPrescriptions` output to `onPrint` and type from `{base64Pdf: string, printOptions: {filename: string, orientation: 'portrait'}}` to `{title: string, content: string}`

### vidis-prescription-detail
* Change `onPrintDetail` output to `onPrint` and type from `{base64Pdf: string, printOptions: {filename: string, orientation: 'portrait'}}` to `{title: string, content: string}`

## v3.0.0 (2025-08-06)

* Using external fonts

### vidis-delivered-medication-list:
* Support professional. If professional adds 2 params: key 'professional' = 'true' and 'ssin'= ssinPatient
* Support offline mode.

### vidis-delivered-medication-detail:
* Support professional. If professional adds 2 params: key 'professional' = 'true' and 'ssin'= ssinPatient
* Support offline mode.

### vidis-prescription-list:
* Support professional. If professional add 2 params : key 'professional' = 'true' and 'ssin'= ssinPatient
* Support offline mode.

### vidis-prescription-detail:
* Support professional. If professional add 2 params : key 'professional' = 'true' and 'ssin'= ssinPatient
* Support offline mode.
* prescription reservation :
	* Add a checkbox to include hospital pharmacies
	* Add the type of pharmacy in the screen
	* Add a "select" button on pharmacies, to make it more accessible and obvious to end user

### vidis-diary-note:
* Support offline mode.

## v3.0.1 (2025-08-19)

* Fix demo mode + updating documentation 
* Bugfix offline mode

### vidis-medication-scheme-detail:
* Support offline mode.

### vidis-medication-scheme-list:
* Support offline mode.

## v3.1.0 (2025-09-15)

* Update demo mode + documentation
* Error reporting component.
* Fix loading status that no longer appears.

### vidis-medication-scheme-detail:
* Adding exchangeClientId parametter.
* Error reporting component.
* Adding id to data from backend

### vidis-medication-scheme-list:
* Adding exchangeClientId parametter.
* improve display message for users without medicationscheme (patient and professional).

### vidis-diary-note:
* Adding exchangeClientId parametter.

### vidis-delivered-medication-list:
* Remove patient column from desktop and mobile view.

## v3.2.0 (2025-09-26)

* Bugfix offline mode
### vidis-delivered-medication-list:
* fix spinner loading

## v3.3.0 (2025-10-07)
### vidis-prescription-list:
* Replace dropdown sorting by a toggle sorting
* Bugfix offline mode

## v3.3.1 (2025-10-09)
* Hide CRUD action buttons in offline mode

### vidis-diary-note:
* Disable download attachment in offline mode
* Fix create diarynote when user is connected as mandator

## v3.3.2 (2025-10-24)

* reusable component for all cards on mobile view.

### vidis-medication-scheme-list:
* new design for cards on mobile view.
* Add new disclaimer for mobile view.

## v3.4.0 (2025-11-05)
### vidis-medication-scheme-list:
* Display temporality in medication scheme detail
* Display hour for last apdated infos and disclaimer
* Update message at the bottom of the page (mobile view)
* Display warning when there are incorrect elements in the medication scheme

### vidis-medication-scheme-detail:
* Display temporality in medication scheme detail
* Display warning when there are incorrect elements in the medication scheme

### vidis-diary-note:
* Display hour of creation on diary note card
* Removing sorting and filtering when user is offline
* Emit file name, content and mime type of the diary note attachment

### vidis-prescription-list:
* Adding infinite scrolling to load the new prescriptions
* Removing sorting when user is offline

## v3.4.1 (2025-11-06)

### vidis-delivered-medication-detail:
* Fix leaflet download for ios

## v3.4.2 (2025-12-17)
### vidis-prescription-detail
* Mobile view : Redesign the prescription details page to provide a more structured overview.

### vidis-delivered-medication-list
* redesign of information banner, aligned to design kit
* make banner expanded by default for desktop view and collapsed for mobile view

### vidis-medication-scheme-list:
* Change the type of `onSelectMedication` output : new type `{ id: string; date?: string; }`, old type : `id: string`.
* Mobile view: the if necessary panel is expanded by default and other closed. Same behavior if you change date.

### vidis-medication-scheme-detail:
* Mobile view : Redesign the Medicationscheme details page to provide a more structured overview.
* Remove of `id` input.
* Add of `detail` input, with the type : `{ id: string; date?: string; }`

## v3.5.0 (2026-02-20)
* `onError` to be emitted after reporting an error (in all webcoponents).
### vidis-prescription-detail
* Masanté Demo mode data: Modify instructions in 2 languages
* Bugfix: hide reservation button when prescription is already reserved
* Add 2 new outputs navigate to the new components in mobile view, both have the data for the `info` input:
	* `clickReserve` to navigate to the new reservation component
	* `clickVisibility` to navigate to the new visibility component
* Add 2 new components for reservation and changing visibility of a prescription for mobile view:
	* `vidis-pharmacy-reservation` with input `info` and output `finishReservation`
	* `vidis-prescription-visibility` with input `info` and output `finishVisibility`
* Bugfix: replace ‘patient’ with ‘beneficiary’ in the translation for mobile view

### vidis-diarynote
* Add snackbar confirmation when a note is created
* Redesign of the sorting, adding and filtering diarynote, aligned to design kit
* Redesign of the cards
* Add new spinner when attachments are downloading

### vidis-prescription-list:
* Redesign of the cards
* Improve accessibility for the cards

### vidis-medication-scheme-detail:
* Bugfix: add comment section in the mobile view
* Not permitted value for therapeutic suspension isn't displayed
* Remove if needed tag and in posology

### vidis-medication-scheme-list:
* Add a tag "Last day" on the medication card when it is the last day that patient should take the medication
* Set disclaimer on the top of the page
* Add new tag "Suspended" on medication when it is suspended (definitive and temporary), only visibile on list view and daily view
* fix crash when there is no medicationscheme
* Remove if needed tag

## v3.5.2 (2026-03-13)
### vidis-diary-note:
* Do not display the errors (if exist) when the response is OK.
* Remove the display of the author ssin.
* Update the rule to delete a note (using `ownNote` field).

### vidis-prescription-list:
* Change frequency type (from enum to string)

### vidis-prescription-detail
* Change frequency type (from enum to string)

## v4.0.0 (2026-05-21)
* Migration to V5 specification
* Prefetching of prescriptions
* Prefetching of medication scheme
* Prefetching of delivered medications
* Prefetching of diarynotes

## v4.0.1 (2026-05-27)
* documenting inputs and outputs for all webcomponents

## v4.1.0 (2026-06-10)

* 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.
* Ensure internal content (cards, dropdowns, info alerts, and form elements) remains opaque.

### vidis-prescription-list:
* Bugfix : Cached prescriptions from previous profile remain displayed after profile switch.
* Bugfix : Medication prescriptions list is truncated after scrolling to the bottom then refresh.
* Bugfix : Prescriptions from previous profile briefly displayed after switching profile.

## v4.2.0 (2026-07-15)

### vidis-medication-scheme-list:
* Bugfix: fix horizontal scrolling on iOS.
* Replace the filter button toggle group with a dropdown (select).
* Replace the mobile sort dropdown with a sort toggler.
* Redesign of the tabs for current and future schemes.
* Redesign of the daily and weekly view sections. A new menu is added to switch between the different view on mobile

### vidis-prescription-list
* Bugfix : Number of selected prescriptions is correctly updated after a refresh in mobile and desktop views.
* Using API V3 instead of V2.

### vidis-prescription-detail
* Using API V3 instead of V2, including improved error handling for reservation and visi-flag responses.

### vidis-delivered-medication-list
* Using API V3 instead of V2.
* Display prescriber information in the list view and cards.
* Mobile view : Redesign of the cards.

### vidis-delivered-medication-detail
* Using API V3 instead of V2.
* Display prescriber information in the detail view.

## v4.2.1 (2026-08-14)

* Bugfix : fix Cannot read properties of null (reading 'status') in the error reporting component

### vidis-prescription-list
* Bugfix : secure prescription data

### vidis-prescription-detail
* Fix the bug during the Visibility pharmacy update to make it visible to everyone
* Removing leaflet if medication is a compound

## v5.0.0 (2026-10-16)

* Upgrade project to Angular version 22
* Migrate report error to use API v3
* Fix "This element has insufficient contrast at this conformance level" issues in all web components
* Dynamically update HTML lang attribute to ensure correct screen reader pronunciation
* set the detail button darker for accessibility reasons
* Fix monitoring error report submission ("Null key is not allowed") by renaming 'backendTraceId' to 'traceId'
* Fix missing TypeScript declaration files (`types/main.d.ts`) in all web component packages
* Setting strictTemplate to true in tsconfig
* Setting strictNullChecks to true in tsconfig

### vidis-prescription-list
* Using /api/v3 instead of /v3 for all requests
* Make practitioner null-safe
* Desktop redesign
* Improve accessibility
* Resolve focus loss on sorting control and ensure sort announcements
* Adapt details button to align with other components
* Resolve display of fullname in the printed prescription
* Update mandateType endpoint from /v1 to /v3
* fix reservation pharmacy button for accessibility
* Fix table background color by adjusting it to white
* Improve accessibility for infinite scrolling

### vidis-prescription-detail
* Desktop view Redesign
* Using /api/v3 instead of /v3 for all requests
* Fix screen freeze when phone number is changed in the reservation dialog
* Hospital pharmacy not checked but filtering works
* Update pharmacies endpoint from /v1 to /v3
* Delete prescription was producing a bad request error
* Improve accessibility
* The text below the pharmacy visibility label is now correctly grouped
* Give context to the SSIN number
* Resolve display of fullname in the printed prescription
* Add accessibility translation to cancel button for pharmacy reservation
* Put the accessibility focus on the pharmacy visibility modal when openened
* Reordered the action buttons in dialogs by placing the primary action first and cancel second
* Bugfix accessibility issue on reservation button for mobile view

### vidis-diarynote
* Redesign journal notes-list table for desktop
* Using API V3 instead of V2
* Improve accessibility for deleted diary notes
* Align NIHDI number to correct format
* Fix filter diarynote button for accessibility
* Fix desktop table background color by adjusting it to white
* Reordered the action buttons in dialogs by placing the primary action first and cancel second
* Make the date picker numeric and prevent the entry of letters
* Make the 'Add note' and 'Filter' modals focusable
* Add spacing between card and pagination + pagination and disclaimer
* Fix scrolling on filter modal
* Add cross to empty filter on start date and end date for period
* Add spacing between the pager dropdown and pagination arrows + add spacing around the pagination card

### vidis-delivered-medication-list
* Using /api/v3 instead of /v3 for all requests
* Sorting label adaptations
* Desktop view redesign
* Resolve focus loss on sorting control
* Fix "leaflet Icon Fails Accessibility Validation (Anchor Element Without Accessible Name)"
* Fix design of alert and improve accessibility

### vidis-delivered-medication-detail
* Using /api/v3 instead of /v3 for all requests
* download leaflet: using API V3 instead of V2
* Desktop and mobile views redesign

### vidis-medication-scheme-detail
* Using API V3 instead of V2 for all requests
* Redesign for desktop
* Align NIHDI number to correct format

### vidis-medication-scheme-list
* Desktop redesign of weekly and daily section
* Align NIHDI number to correct format
* Resolve focus loss on sorting control
* Adapt details button to align with other components
* Restore focus and screen reader reading on list cards in mobile view
* Improve view switching controls to comply with accessibility requirements for assistive technology users
* Improve date selector accessibility: the selected date is now correctly announced by screen readers and fully keyboard navigable
* Improve the contrast of the date selector texts
* Styling correction for mobile view
* Using togglers to change view on desktop view
* New icons for the togglers on desktop view and for the menu in mobile view
* Remove "Reasons" field on the mobile view for daily and weekly view to be aligned with desktop view
* Change the colors and remove the icon of the date-picker on mobile view when we are not on the current date
* Years are not displayed in the date-picker on the weekly view when looking for a week that runs over 2 months
* The message when the patient has no medication-scheme is now the correct one
* Using API V3 instead of V2 for all requests
* Secure components against API v3 payload changes and add '-' in case of empty or null value
* Desktop redesign
* Align NIHDI number to correct format
* Remove leaflet icon for weekly and daily view when leaflet is empty
* Restore focus and screen reader reading on "Back to today" date button
* Use darker color for medication intake to improve contrast
* Remove icon on the datepicker and underlining date

## __RELEASE_VERSION__ (__RELEASE_DATE__)
