Skip to content

Commit

Permalink
[ACS-6107] Updated default configuraiton for date-range component in …
Browse files Browse the repository at this point in the history
…extensions to match the required config for the new date range component
  • Loading branch information
swapnil-verma-gl committed Nov 21, 2023
1 parent 23957d7 commit bab5f93
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
8 changes: 5 additions & 3 deletions app/src/app.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -1028,14 +1028,16 @@
{
"id": "createdDateRange",
"name": "SEARCH.SEARCH_HEADER.FILTERS.DATE.TITLE",
"columnKey": "createdAt",
"enabled": true,
"component": {
"selector": "date-range",
"settings": {
"field": "cm:created",
"dateFormat": "DD-MMM-YY",
"maxDate": "today"
"dateFormat": "dd-MMM-yy",
"maxDate": "today",
"displayedLabelsByField": {
"cm:created": "SEARCH.SEARCH_HEADER.FILTERS.DATE.TITLE"
}
}
}
}
Expand Down
18 changes: 12 additions & 6 deletions projects/aca-content/assets/app.extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -1456,7 +1456,7 @@
"name": "SEARCH.CATEGORIES.DATE",
"enabled": true,
"component": {
"selector": "date-range-advanced",
"selector": "date-range",
"settings": {
"field": "cm:created,cm:modified",
"dateFormat": "dd-MMM-yy",
Expand Down Expand Up @@ -1640,7 +1640,7 @@
"name": "SEARCH.CATEGORIES.DATE",
"enabled": true,
"component": {
"selector": "date-range-advanced",
"selector": "date-range",
"settings": {
"field": "cm:created",
"dateFormat": "dd-MMM-yy",
Expand Down Expand Up @@ -1777,7 +1777,7 @@
"name": "SEARCH.CATEGORIES.DATE",
"enabled": true,
"component": {
"selector": "date-range-advanced",
"selector": "date-range",
"settings": {
"allowUpdateOnChange": false,
"hideDefaultAction": true,
Expand All @@ -1801,12 +1801,15 @@
"allowUpdateOnChange": false,
"hideDefaultAction": true,
"field": "cm:from",
"dateFormat": "DD-MMM-YY"
"dateFormat": "dd-MMM-yy",
"displayedLabelsByField": {
"cm:created": "SEARCH.CATEGORIES.EFFECTIVITY_FROM"
}
}
}
},
{
"id": "createdDateRange",
"id": "effectivnessTo",
"name": "SEARCH.CATEGORIES.EFFECTIVITY_TO",
"enabled": true,
"component": {
Expand All @@ -1815,7 +1818,10 @@
"allowUpdateOnChange": false,
"hideDefaultAction": true,
"field": "cm:to",
"dateFormat": "DD-MMM-YY"
"dateFormat": "dd-MMM-yy",
"displayedLabelsByField": {
"cm:created": "SEARCH.CATEGORIES.EFFECTIVITY_FROM"
}
}
}
}
Expand Down

0 comments on commit bab5f93

Please sign in to comment.