Zach Daniel
89f1a20afb
docs: add small example
2023-10-09 16:05:32 -04:00
De Wet Blomerus
0a1dfb7f92
docs: Add |> to_form()
to the end of the pipeline for Liveview >= 1.18.2 ( #103 )
2023-10-05 08:44:10 -04:00
Zach Daniel
bbc22d3c53
fix: make opts optional on for_action/3
2023-10-02 10:29:48 -04:00
Zach Daniel
91218dd24e
fix: check for values in changeset params
2023-09-27 18:56:55 -04:00
Zach Daniel
698ecfbec4
fix: properly supply api for context opts
2023-09-26 15:05:10 -04:00
Zach Daniel
e39558a7dd
fix: undo previous change for only_touched?
on form submit
2023-09-18 19:06:54 -04:00
C. R. Oldham
6d9a7d59e9
fix: remove stray } from liveview generator ( #101 )
2023-09-14 16:53:17 -04:00
Zach Daniel
c6ad0f9795
fix: honor ash context opts
2023-09-13 10:44:34 -04:00
Zach Daniel
63bc1e1086
chore: remove unused variable
2023-08-15 13:16:44 -07:00
Zach Daniel
7b4ac44e35
chore: dialyzer
2023-08-15 11:50:09 -07:00
Zach Daniel
7acd7cdeff
improvement: support providing an actor
2023-08-15 11:06:47 -07:00
Zach Daniel
39f8358055
improvement: initial stab at mix ash.gen.live
2023-08-14 23:19:56 -07: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
f4f8897e9f
chore: set form type outside of updater
2023-08-12 20:05:06 -07:00
Zach Daniel
a3436fcc32
improvement: initial stab at support for forms against unions
2023-08-12 19:54:35 -07:00
Zach Daniel
c8f1b73567
fix: support only_touched? on submit as well
2023-08-01 00:23:09 -04:00
Zach Daniel
76363af83c
fix: sanitize path for touched only
2023-08-01 00:13:52 -04:00
Zach Daniel
ce0e348d00
fix: remove warning on Map.take
2023-08-01 00:07:36 -04: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
Robert Graff
900c5916a2
Improve form documentation ( #97 )
2023-07-16 08:24:52 -04:00
Zach Daniel
dc41746061
fix: handle single types against to many forms
2023-07-13 18:21:23 -04:00
Zach Daniel
a47b3fca2f
fix: more fixes for accidentally list form data
2023-07-13 17:10:34 -04:00
Zach Daniel
021d2fb0fb
chore: unwrap list data
2023-07-13 16:57:56 -04:00
Zach Daniel
638ec3f93c
fix: don't raise on unknown inputs for filters
2023-06-26 11:38:59 -04:00
Alan Heywood
b7a9ea6502
fix: fix Logger deprecations for elixir 1.15 ( #96 )
...
Use Logger.warning instead of Logger.warn, which is deprecated.
This project now requires at least elixir 1.11
2023-06-23 13:37:19 +12:00
Zach Daniel
77d6acc518
fix: undo incorrect change and apply correct change for accessing_from
2023-05-25 17:32:08 -04:00
Zach Daniel
f412b43115
fix: use proper accessing_from
in nested read actions
2023-05-25 17:04:22 -04:00
Zach Daniel
fc76f3237a
chore: fix credo
2023-04-25 21:47:52 -06: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
Eduardo B. A
265555cddb
fix: Remove the id field from params_for_query reply ( #93 )
...
Co-authored-by: Eduardo <sezdocs@dev-distrobox.fedora.local>
2023-04-25 15:59:04 -06:00
Zach Daniel
8702c48350
fix: better params generation
2023-04-25 12:58:04 -06:00
Zach Daniel
43e2c00ace
fix: don't do constraints in argument casting
2023-04-25 12:43:39 -06:00
Zach Daniel
3aa9ad71b4
improvement: set accessing_from
when making new forms
2023-04-24 08:51:02 -06:00
Zach Daniel
467760c3f1
improvement: set accessing_from
context on forms
2023-04-24 08:23:37 -06:00
Darren Black
3d7b0b205f
docs: Small tweaks to form docs ( #92 )
2023-04-09 20:59:10 -04:00
Darren Black
ac9b090061
Update form docs to use heex and latest phoenix components ( #91 )
2023-04-09 20:17:40 -04:00
Darren Black
f4485721da
improvement: Rename to_filter! ( #90 )
2023-03-30 09:51:29 -04:00
Darren Black
025554af93
Filter form docs ( #89 )
2023-03-30 02:27:01 -04:00
Darren Black
d22a48a514
Fix remove_component ( #86 )
2023-03-28 03:21:41 -04:00
Darren Black
1a1ff1a568
Fix: form_for deprecation warning ( #84 )
2023-03-28 00:45:00 -04:00
Kevin Mathew
0dea54b575
doc: Add the missing action
argument to function call ( #85 )
2023-03-28 00:44:21 -04:00
Darren Black
f9b352709a
Fix return when form has error when handling phoenix form ( #83 )
2023-03-23 18:01:20 -04:00
Zach Daniel
5d4703414b
docs: auto? docs improvements
2023-03-20 10:22:07 -04:00
Zach Daniel
057e7fd426
improvement: support auto? options as auto?: [...]
2023-03-20 10:20:30 -04:00
Zach Daniel
11d108cfff
fix: use initial form options on failed submit ( #82 )
2023-03-19 11:25:58 -04:00
Mylan Connolly
6f19cb42dc
Fix usage documentation ( #81 )
2023-03-16 10:59:33 -04:00
Zach Daniel
b74ae55446
fix: properly handle submit results when given phoenix form
2023-03-14 16:35:11 -04:00
Zach Daniel
3caecf30de
chore: format
2023-03-09 14:47:58 -05:00
George Anderson
336b3c051f
fix: Patch for new Form Access Protocol ( #77 )
2023-03-09 14:39:53 -05:00
George Anderson
9c55b18a2c
fix: Remove line causing errors ( #76 )
2023-03-09 14:05:17 -05: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
Darren Black
0ed138ab20
fix: Support LV 0.15 ( #73 )
2023-02-16 22:19:46 -05:00
Zach Daniel
e3b7725312
improvement: support latest ash
2023-01-28 09:18:35 -05:00
Zach Daniel
f5e338cd9d
improvement: update to new ash docs patterns
2023-01-18 01:02:14 -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
9e0121c786
fix: handle raised errors when comparing values
2022-12-30 12:48:52 -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
Zach Daniel
cb9fc8758b
chore: sidestep dialyzer
2022-12-20 23:06:13 -05:00
Zach Daniel
b205c9bb4f
fix: ensure that params is always a map in Phoenix.HTML.Form
...
chore: remove unfinished guide
2022-12-20 22:59:01 -05:00
Zach Daniel
6bf3aa2fd6
improvement: add clear_value/1
2022-12-20 22:18:55 -05:00
Zach Daniel
4eaa082c73
chore: remove unused alias
2022-12-20 21:59:29 -05:00
Zach Daniel
bd7115f90b
improvement: add update_forms_at_path/4 and
touch/2`
2022-12-20 18:12:22 -05:00
Zach Daniel
20a3114f43
fix: update to latest ash and resolve warning
2022-12-20 03:19:32 -05:00
Zach Daniel
44c9ffb04c
improvement: add prepare_source
option for seeding changesets
...
fix: small logic bug when setting param value
2022-12-15 16:40:24 -05:00
Zach Daniel
07df35a243
fix: transform params before providing them for a field value
2022-12-07 20:24:51 -05:00
Zach Daniel
61a0379841
improvement: add more exceptions to plug exceptions
2022-12-05 01:24:09 -05:00
Rebecca Le
ac3e2dc9ac
feat: add custom HTTP status codes for specific types of errors that can be thrown ( #62 )
2022-11-23 03:42:06 -05:00
Zach Daniel
7b8130eee9
improvement: use new docs
2022-11-03 09:45:54 -07:00
Zach Daniel
87cd90cfc0
improvement: properly pass actor and tenant down to nested changesets
2022-11-02 20:37:41 -07:00
Zach Daniel
5ffcd1916e
fix: properly handle single values in value_is_key
relationships
2022-11-01 03:12:06 -04:00
Zach Daniel
c1976e1eaa
fix: properly honor value_is_key
option
2022-10-31 19:43:23 -04:00
Zach Daniel
701512f23b
fix: properly retain sorting of list forms
2022-10-27 22:43:20 -05:00
Zach Daniel
bc06804393
fix: specify @derive
in proper place
2022-10-09 23:23:58 -04:00
Zach Daniel
72b4de3f4f
fix: infinite loop in inspect
...
test: test new form errors
2022-10-09 23:22:13 -04:00
Zach Daniel
ee0668bbcd
improvement: handle %Phoenix.HTML.Form{}
inputs in some cases
...
will raise much better errors when incorrect input is provided
improvement: require `%AshPhoenix.Form{}` inputs in some cases
will raise much better errors when incorrect input is provided
2022-10-09 22:59:22 -04:00
Zach Daniel
ce2a2f2ffa
improvement: carry over negated on validate for groups
2022-10-07 12:02:16 -04:00
Zach Daniel
6fb3b7ac9f
fix: populate hidden fields from server-side form by default
2022-10-06 22:33:36 -04:00
Zach Daniel
609a4fbe4a
fix: don't sanitize arguments out of predicate form
2022-10-05 20:28:32 -04:00
Zach Daniel
1f245f14b2
improvement: support calculation arguments in FilterForm
2022-10-05 16:15:22 -04:00
Zach Daniel
84d110afdb
chore: fix lint again
2022-10-04 16:51:39 -04:00
Zach Daniel
69bd4560cb
chore: fix lint
2022-10-04 16:44:18 -04:00
Zach Daniel
28d149d7c1
fix: change filter form value even if value doesn't match
2022-10-04 16:43:16 -04: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
Zach Daniel
0478c31270
improvement: add update
and destroy
types to add_form
2022-09-28 03:28:26 -04:00
Zach Daniel
6759794d60
fix: properly synthesize nested action errors
2022-09-28 02:11:42 -04:00
Zach Daniel
4f545f4360
improvement: support latest phoenix/surface
2022-09-27 18:37:27 -04:00
Zach Daniel
3b56ee5d2c
improvement: support latest phoenix
2022-09-27 18:37:27 -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
75f07d1235
fix: only impl Phoenix.HTML.Safe if it hasn't already been
2022-09-15 18:46:21 -04:00
Zach Daniel
b64cd13941
improvement: support latest ash
2022-09-14 13:21:36 -04:00
ymijorski
02f4b54690
improvement: decimal protocols ( #51 )
2022-09-12 12:20:19 -04:00
ymijorski
effbc60ebc
fix: argument mismatch when calling handle_forms ( #50 )
2022-09-08 12:10:32 -04:00
Zach Daniel
47fba77237
fix: call get_function/3
2022-08-30 17:44:57 -06:00
Zach Daniel
c9192a4905
chore: bump pre version
...
docs: add/tweak docs
chore: update ash
2022-08-30 17:40:03 -06:00