Commit graph

145 commits

Author SHA1 Message Date
Zach Daniel
9b37c31d46 chore: release 2.1.1 2024-07-31 20:59:58 -04:00
Zach Daniel
6164026962 test: remove unused variable in tests 2024-06-24 22:16:39 -04:00
Roberts Guļāns
2970af46e6
test: test atom type wrapper (#208) 2024-06-10 10:40:33 -04:00
Zach Daniel
a655cdb85f fix: various fixes for union form handling 2024-06-07 18:48:54 -04:00
Zach Daniel
15afafee09 fix: properly fill union values on update 2024-06-07 15:59:29 -04:00
Roberts Guļāns
e333471888
test: form value fill for union (#205) 2024-06-07 14:34:28 -04:00
Roberts Guļāns
8f9209e250
union test cases (#204) 2024-06-06 16:15:45 -04:00
Zach Daniel
3ae44d7cad improvement: honor _union_type when applying input 2024-06-06 13:58:46 -04:00
Roberts Guļāns
2a74d91618
test: unions test case for primitive subtype (#203) 2024-06-06 13:12:39 -04:00
Zach Daniel
4e9bccb7ed fix: various union param handling fixes 2024-06-04 14:32:02 -04:00
Roberts Guļāns
98aedc8d78
Union test case extended (#202)
* test_case for nested union types

* union tests extended
2024-06-04 12:23:43 -04:00
Roberts Guļāns
ac622715bb
test_case for nested union types (#199) 2024-06-03 23:23:44 -04:00
danielatdpg
e199d465b7
fix: make sure that _index is correctly updated before and after removal for sparse forms (#196) (#197) 2024-05-29 10:54:13 -04:00
Zach Daniel
0682d37391 chore: update splode, handle new ets features 2024-04-25 22:35:57 -04:00
Zach Daniel
055d20e930 fix: ensure nested form names are remapped on remove form 2024-04-23 10:14:38 -04:00
Minsub Kim
8ac1351f98
test: update nested form name correctly when remove form in the middle (#164) 2024-04-23 09:47:51 -04:00
Minsub Kim
ffcba2e00b
test: add deeply nested form with params (#162) 2024-04-22 10:51:48 -04:00
Zach Daniel
c526768670 improvement: remove unknown keys option from embedded attributes
docs: update upgrade docs to reflect change of skip_unknown_attributes
2024-04-17 00:18:59 +01:00
Zach Daniel
1f511de8ca improvement: add error hints for NoFormConfigured errors 2024-04-11 18:47:31 -04:00
Darren Black
01ca583443 improvement!: upgrade to Ash 3.0
Co-Authored By: Zach Daniel
2024-03-28 19:12:13 -04:00
Zach Daniel
99a3a4915f fix: get casted values from form (requires Ash 2.20+) 2024-03-11 12:35:44 -04:00
Pierre Le Gall
b92b04c77f
improvement: #133 use resource defined Api (#134) 2024-02-21 10:07:17 -05:00
Zach Daniel
c5c1a23514 feat: update to latest phoenix_html 2024-01-21 13:00:44 -05:00
Nduati Kuria
ae1a2d0aa2
Fix: do_decode_path for string paths (#127)
* Raise InvalidPath exception instead of "Invalid Path: #{original_path}" string

* Add regression test
2024-01-14 14:17:56 -05:00
Zach Daniel
fceed874e6 fix: remove system added error vars to ensure deduplication works properly 2023-12-28 15:42:47 -05:00
Robert Graff
57dfbab56e
nested form errors should not multiply (#123) 2023-12-28 14:46:31 -05:00
Zach Daniel
9c2539a312 improvement: carry over nested errors on creation, validation and submission 2023-11-29 19:45:34 -05:00
Zach Daniel
63042cc84c chore: format 2023-11-29 18:48:57 -05:00
Robert Graff
c0f883d048
test: Add test for errors appearing on inputs_for forms (#120) 2023-11-29 18:41:34 -05:00
Zach Daniel
c292848c57 improvement: properly return nested errors with for_path: :all 2023-11-28 15:54:30 -05:00
Zach Daniel
bace1b1ec4 chore: format 2023-11-28 14:34:02 -05:00
Robert Graff
a098a830b1
test: Nested form errors for argument attribute (#119) 2023-11-28 14:32:38 -05:00
Zach Daniel
6ddddf7316 improvement: properly get invalid values provided to forms 2023-11-27 19:48:02 -05:00
Zach Daniel
91218dd24e fix: check for values in changeset params 2023-09-27 18:56:55 -04:00
Zach Daniel
e39558a7dd fix: undo previous change for only_touched? on form submit 2023-09-18 19:06:54 -04:00
Zach Daniel
3a7d436079 fix: properly track form params for nested unions
fix: produce type errors for wrapped union values
2023-08-13 05:46:42 -07:00
Zach Daniel
e295fb72f7 improvement: tests and better behavior for union forms 2023-08-12 21:29:37 -07:00
Zach Daniel
a3436fcc32 improvement: initial stab at support for forms against unions 2023-08-12 19:54:35 -07:00
Zach Daniel
22611cd4e1 improvement: add support for target and only_touched? validate opts
chore: update elixir/erlang versions
2023-07-19 00:35:58 -04:00
Zach Daniel
98d717e3ca chore: properly address test message 2023-04-30 23:03:12 -04:00
Zach Daniel
8921df95be chore: update test for newer versions of ash 2023-04-30 22:48:04 -04:00
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
057e7fd426 improvement: support auto? options as auto?: [...] 2023-03-20 10:20:30 -04:00
Zach Daniel
340af977f9 improvement: return phoenix forms if phoenix forms are given
this is done to support the new pattern in phoenix of assigning the html
form instead of the underlying data structure
2023-03-05 17:23:43 -05:00
Amos King
bb39ba3f03
Fixes default values on dead forms (#74) 2023-02-20 18:32:04 -05:00
Egor Kislitsyn
351f46e5af
improvement: accept multiple fields in AshPhoenix.Form.clear_value/2 (#67) 2023-01-05 13:51:03 -05:00
Egor Kislitsyn
bd3a6fbb1f
fix: properly clear value in Form.clear_value/2 (#66) 2023-01-05 12:39:42 -05: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