Contract filters
We added a "Contract Filters" accordion which contains Channel Name and Group filters. We added a button to manually apply the filters, which automatically closes the accordtion to allow more space for reviewing the list of search results.
Widget additions
- Contract filters: 
he-contract-filters - Filter Contract Channel name: 
he-contract-filter-channel-name - Filter Contract Group Id: 
he-contract-filter-group-id - Filter Apply Button: 
he-contract-filters-applybutton 
State additions
filterChannelNamefilterGroupIdfiltersAccordionIsOpen- You can use this new variable from product module and manage the expanded/collapsed state of the accordion.
Services
window.hapi.contract.service.getFilteredContractsin Serviceswindow.hapi.contract.service.getContractshas been changed, check Types section
API
window.hapi.contract.api.getContractsreceives a newfiltersargument in api getContracts, see Api Types
Utils additions
Types
filterChannelName,filterGroupIdandfiltersAccordtionIsOpenin contract state typesContractFilterQueryParamsin typesContractServiceGetFilteredContractsHandlerused as argument forwindow.hapi.contract.service.getFilteredContractsin service types
The following types have been changed:
ContractServiceGetContractsHandlerused as argument forwindow.hapi.contract.service.getContractsin service types has hadqueryParams?: URLSearchParamsadded
i18n additions
| Key | "en" value | "de" value | "nl" value | "fr" value | 
|---|---|---|---|---|
| contracts.filters.channel-name | Channel Name | Kanalname | Kanaalnaam | Nom de chaîne | 
| contracts.filters.channel-name-placeholder | Type a channel name | Geben Sie einen Kanalnamen ein | Typ een kanaalnaam | Saisissez un nom de chaîne | 
| contracts.filters.group-id | Group | Gruppe | Groep | Groupe | 
| contracts.filters.group-id-placeholder | Select a Group | Gruppe auswählen | Selecteer een Groep | Sélectionner un groupe | 
| contracts.filters.apply-filters | Apply Filters | Filter anwenden | Filters toepassen | Appliquer les filtres | 
HTML IDs And Class Additions
As part of this change the following HTML IDs and Class have been added:
contract-filter-channel-name-inputcontract-group-selectcontract-filters-apply-buttonhapi__contracts-filters-apply-buttonhapi__contracts-filters-group-idhapi__contracts-filters-channel-namehapi__contracts-filters