Commit graph

21 commits

Author SHA1 Message Date
Eduardo B. A
9bdcc7943d
improvement: Add option to not reset on validate (#94)
* Add option to reset or not values on validate field changes

* Adds a test to it

* Adds some documentation about the reset_on_change? flag

---------

Co-authored-by: Eduardo <sezdocs@dev-distrobox.fedora.local>
2023-04-25 16:48:50 -06:00
Darren Black
d22a48a514
Fix remove_component (#86) 2023-03-28 03:21:41 -04:00
Zach Daniel
7e634c1d25 chore: fix build 2022-12-21 03:52:08 -05:00
Zach Daniel
ecdce6e894 improvement: add to_filter_map/1 to filter_form 2022-12-21 03:07:07 -05:00
Zach Daniel
882fe2fb65 improvement: clear filter form value when field changes 2022-10-04 00:54:50 -04:00
Frank Dugan III
e1f283636e
fix: select first public attribute as field when remapping path
fix: update_predicate correctly handles existing predicate
2022-09-30 16:40:23 -04:00
Frank Dugan III
8f59f15bea
fix: nested groups have correct form names (#54) 2022-09-28 14:34:50 -04:00
Frank Dugan III
b088969315
feat: append predicate path w/ field when relationship (#53) 2022-09-26 19:32:49 -04:00
Zach Daniel
72a2965107 fix: properly parse string paths in FilterForm
improvement: add `update_predicate/3`
2022-08-13 15:10:47 -04:00
Zach Daniel
6f011a55fe chore: update tests/docs 2021-12-28 22:30:06 -05:00
Zach Daniel
b590e8ff72 fix: check for operators first
improvement: don't return ids by default
2021-12-06 14:17:30 -05:00
Zach Daniel
b8fae705a5 fix: properly set nested names 2021-12-06 01:13:40 -05:00
Zach Daniel
724b0defc2 fix: allow the as option to be set 2021-12-06 01:05:47 -05:00
Zach Daniel
6e21815628 improvement: better default name, just use ids elsewhere 2021-12-06 00:30:00 -05:00
Zach Daniel
076d9fe356 fix: properly set params on validate 2021-12-05 21:51:35 -05:00
Zach Daniel
6f9bc82895 fix: set proper form ids and names 2021-12-05 21:17:26 -05:00
Zach Daniel
4c4ca71609 fix: support only predicate in params 2021-12-05 20:24:08 -05:00
Zach Daniel
8ee53e4bfc improvement: better sanitized parameters
improvement: add params_for_query
2021-12-02 12:52:14 -05:00
Zach Daniel
0687568299 improvement: expose paths for filters
improvement: simple error handling patterns for filter forms
2021-12-02 03:12:18 -05:00
Zach Daniel
6e26f89fd1 feat: new FilterForm for building forms to produce Ash.Filters 2021-12-01 15:28:38 -05:00
Zach Daniel
dcc7edfaa7 WIP on filter_form 2021-11-29 21:40:46 -05:00