Fixed #21201 -- Enable customization of ClearableFileInput

Adding extra methods into ClearableFileInput widget to enable
easier customization of the widget.
better name: `get_template_substitution_values()`