Releases: Chrico/wp-fields
Releases · Chrico/wp-fields
2.3.2
2.3.1
Improvements on Form
- Don't submit any data in case the Form is disabled.
- Don't allow re-submit of submitted forms.
- Allow inserting
$inputData
where theForm::name()
is within that collection. - Set "submitted"-state in
Form::submit()
after$inputData
is assigned to Elements.
2.3.0
Element
- Introduce new methods
Element::withParent()
andElement::parent()
to keep track of the parentCollectionElement
/Form
and track "submission"-state on all Elements. - Introduced new method which prepares the "id" and "name" for rendering to take the Element parents into account.
Form, CollectionElement, Element
Reduced amount of methods which are overwritten and ensure that with*()
methods are not callable after submission.
2.2.0
Improvements
- Element // ensure that
withOptions()
calls internallywithOption()
. - Element // ensure that
withAttributes()
calls internallywithAttribute()
.
Testing
- ElementFactoryTest // removes randomness from test cases.
- workflows/php-qa.yml // execute all steps in parallel.
- Add output for phpunit.
2.1.5
2.1.4
2.1.3
2.1.2
2.1.1
2.1.0
ChoiceList
Refactor internal structure to support "disabled"-attribute for checkbox, radio and options and allow in future to add more settings like "help"-text.
View
Complete refactor of markup to move away from <table>
and be more flexible with styling elements. All elements on output will now have the "type" as modifier on the wrapper. Additionally the <label>
and Element
itself will now also have a CSS class including the type.
View/Button
Introduce new "reset"- and "button"-types which will render a <button>
Element
Filter- and Validator-callbacks now will get the Element itself as second parameter.
QoL
- Cleanup variables and docBlocks.
- Update documentation