[AAE-19610] Add specific date range settings to search filter (#9250)

* [AAE-19610] add specific date range settings to search filter

* [AAE-19610] remove unnecessary properties

* [AAE-19610] fix missing property bug

* [AAE-19610] fix lint issues
This commit is contained in:
Diogo Bastos
2024-01-18 15:01:20 +00:00
committed by GitHub
parent b46d468f76
commit e1fcaed12d
9 changed files with 171 additions and 5 deletions

View File

@@ -32,6 +32,11 @@ describe('ContentNodeSelectorPanelService', () => {
expect(contentNodeSelectorPanelService.isTypeSupported('d:date')).toEqual(true);
});
it('should support datetime type', () => {
expect(contentNodeSelectorPanelService.modelPropertyTypeToSearchFilterTypeMap.get('d:datetime')).toEqual('datetime-range');
expect(contentNodeSelectorPanelService.isTypeSupported('d:datetime')).toEqual(true);
});
it('should return false for an unsupported type', () => {
expect(contentNodeSelectorPanelService.isTypeSupported('d:unsupported')).toEqual(false);
});