Open sergei-maertens opened 3 months ago
@sergei-maertens can you let your mind go over this. I tried to incorporate all features.
The AddressNL-component features these fields:
A. postalcode, housenumber B. houseletter, housenumber-addition C. city, streetname
The letters are referenced in the text below.
To discuss: Registration
--OR--
<property name>.postalcode, <property name>.housenumber, ... etc.
--OR --
<property name>.postalcode, <property name>.housenumber, ... etc.
In regular mode:
Show A, B and C-fields as editable (C-fields only if enabled to show)
If BRK-validation is enabled: Trigger after A and B-fields are filled in.
In Autofill mode:
Show A and B-fields as editable fields
Show C-fields as read-only fields
When A-fields filled in, derive C-fields
If the C-fields cannot be derived (service offline, invalid address) make the C-fields editable
If the C-fields can be derived, make the C-fields read-only
If BRK-validation is enabled: Trigger after A and B-fields are filled in.
In Prefill mode:
Show A, B and C-fields as read-only
Prefill allows you to select a plugin and an attribute-set:
If prefill fails, make A, B and C-fields editable (C-fields only if enabled to show)
If BRK-validation is enabled: Trigger upon submit/next step
[x] (#4423)
[ ] #2566 (blocked, refine on July 15th)
[ ] Validate (or show validation errors) only when a field has been touched
Allow specifying validation regular expressions for nested fields - we can leverage the JSON nature for this (#4420):
4418
4430
[ ] 💄 addressNL should be able to hide label
[ ] 💄 addressNL label should not show "(not required)" - only the fields within the component -> discuss, the component as a whole is not required, and within that some fields are also optional.
[ ] addressNL street and city should not be disabled by default when "derive" is set, if BAG service is not working user should be able to fill this in themselves -> see #2566, belongs to above item too
[ ] Styling of the
<address>
content - this is now the browser default which is italic and looks out of place -> I believe the Utrecht community components have something for this