[ADF-2849] Search Date Range - Set the format of the date from config (#3288)

* format date chosen from the datePicker's calendar

* format date on focusout event

* fix tests & some code refactoring

* more validation messages

* unit tests

* fix typecast error

* move "dateFormat" to be part of the "date range" widget settings block

* fix error on Moment

"...Type 'moment.Moment' is not assignable to type 'moment.Moment'. Two different types with this name exist, but they are unrelated.
          Property 'isLocal' is missing in type 'Moment'..."

* moment - use old version

* change script - use recent version of moment
This commit is contained in:
Suzana Dirla
2018-05-10 16:27:31 +03:00
committed by Eugenio Romano
parent b66154773a
commit 5f004c9972
7 changed files with 157 additions and 17 deletions

View File

@@ -145,7 +145,8 @@
"component": {
"selector": "date-range",
"settings": {
"field": "cm:created"
"field": "cm:created",
"dateFormat": "DD-MMM-YY"
}
}
},