Skip to content

Commit 05de32f

Browse files
committed
Number and date facets might be nullable #11113 #12092
If a facet is nullable, then two new options "avec" and "sans" are available for the end-user.
1 parent 0e27ef5 commit 05de32f

File tree

3 files changed

+16
-10
lines changed

3 files changed

+16
-10
lines changed

client/app/shared/natural-search/natural-search-facets.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,18 @@ const creationDate: DropdownFacet<TypeDateConfiguration> = {
100100
display: 'Date de création',
101101
field: 'creationDate',
102102
component: TypeDateComponent,
103+
configuration: {
104+
nullable: true,
105+
},
103106
};
104107

105108
const updateDate: DropdownFacet<TypeDateConfiguration> = {
106109
display: 'Date de modification',
107110
field: 'updateDate',
108111
component: TypeDateComponent,
112+
configuration: {
113+
nullable: true,
114+
},
109115
};
110116

111117
export function users(): NaturalSearchFacets {

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
"@angular/router": "^20.3.7",
2727
"@apollo/client": "^3.13.7",
2828
"@ecodev/fab-speed-dial": "^20.0.0",
29-
"@ecodev/natural": "^65.0.2",
30-
"@ecodev/natural-editor": "^65.0.2",
29+
"@ecodev/natural": "^65.0.4",
30+
"@ecodev/natural-editor": "^65.0.4",
3131
"@ecodev/natural-layout": "^2.0.2",
3232
"@graphql-codegen/cli": "^6.0.0",
3333
"@graphql-codegen/typescript-apollo-angular": "^4.0.1",

yarn.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -908,10 +908,10 @@
908908
dependencies:
909909
tslib "^2.8.1"
910910

911-
"@ecodev/natural-editor@^65.0.2":
912-
version "65.0.2"
913-
resolved "https://registry.yarnpkg.com/@ecodev/natural-editor/-/natural-editor-65.0.2.tgz#4787d691749f434747b030e8ce54dc1234d690c9"
914-
integrity sha512-0feg+8n5eflNv8SC1ITPz1cTjJFUGpBTlAvXQ5LgZ13F7P+Fme47qXiu7D+c+mOZKWOIfmSrO+3vwWLVm3hZeA==
911+
"@ecodev/natural-editor@^65.0.4":
912+
version "65.0.4"
913+
resolved "https://registry.yarnpkg.com/@ecodev/natural-editor/-/natural-editor-65.0.4.tgz#78b5787bdf23e2a48a2033aea304718d7b48ec1e"
914+
integrity sha512-+OleNC8AJz7uVldMVgOvEFTYhkaq58ljxJm5TV8gqtVYXv3bp71N2aarkU0RBnGg95jhDVVi/XrESxycSjnjsQ==
915915
dependencies:
916916
prosemirror-commands "^1.5.2"
917917
prosemirror-dropcursor "^1.8.1"
@@ -933,10 +933,10 @@
933933
resolved "https://registry.yarnpkg.com/@ecodev/natural-layout/-/natural-layout-2.0.2.tgz#e2c64c2ddb3c60793a39236b52624fde323e610a"
934934
integrity sha512-BV75kFQmpfuSBNQ1jyKu+IdGkFTMESjPrtKrEyc3MqcmVhV5IiYU0LXTaghLZozuZgCT9HfMOnEsh05aS2j9uQ==
935935

936-
"@ecodev/natural@^65.0.2":
937-
version "65.0.2"
938-
resolved "https://registry.yarnpkg.com/@ecodev/natural/-/natural-65.0.2.tgz#568a392fa6d5c388f0b9c5aa8335b517445a5fd1"
939-
integrity sha512-rgdQMJiYdieiKioNJusvJ11imgRMIHzBFKdCxX7Zcb9hXhHG3xml6ejDC27GBEp2ILJ0ToLfqmVVNADC+447Rg==
936+
"@ecodev/natural@^65.0.4":
937+
version "65.0.4"
938+
resolved "https://registry.yarnpkg.com/@ecodev/natural/-/natural-65.0.4.tgz#ace199a79e21546dce3063fb0c1bd801a24e91e9"
939+
integrity sha512-zbnazvzfT5HhM5Z5ieAsqALiCjF4JJAJ+1mU+3hzLrLUnEypG5nccnBxCKsZktekijtWYVOQHXVCn3oUHblz/A==
940940
dependencies:
941941
extract-files "^13.0.0"
942942
tslib "^2.8.1"

0 commit comments

Comments
 (0)