Default value calculation

* If there is no default value defined calculate it (`min + (max-min)/2`) instead setting
it to 0
* Same behavior as native element