Initial working version for simple component.
Updated.
Added defaults to the custom rules for testing.