IMPROVED

Unified editor for parameter type listcount with multiple values

Values are added by the + button in the table header, every row has its own value select, amount field and delete button.

Validation of the saved form is unified with the treecount editor: a row without a selected value reports No value chosen, a row without an amount reports No quantity defined. A zero quantity is saved now instead of being rejected. After removing all the values a parameter with a non-empty defaultValues configuration is pre-filled with the default values and zero quantities again on the next edit. The saving code is common for both modes, therefore these two behaviour changes are visible in the single value mode too, though its editor looks exactly as before.

A non-numeric amount is stored as zero by the saving code. The quantity field filters now not only typing, but a pasted content as well, in both editor modes exactly as the treecount one does.

Before:

p15215 listcount editor mult before

New:

p15215 listcount editor mult new