phlexi-form 0.8.2 → 0.8.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5436d0872cd013770ac81aecaf6cd805b44762f5bd32bb3d4a95c6f9d3e936d1
4
- data.tar.gz: dfddac5493ba78744bcc1956e8a7445579a6599631c4f4c00e74d9aa5f3ecd67
3
+ metadata.gz: a7467adbbe9a8093e99978671b26fd071b8c85907f87eda8b1e01afc806af0f3
4
+ data.tar.gz: c116107c7c52c277e2793bf8f7705daa7d4aac256823f228becfd8e0acfd5f13
5
5
  SHA512:
6
- metadata.gz: 1fe41d20bf2b26c29e71ebb932576a4b49751773f60c1d365cd6ad3f01a70dcda7e6dec894418654718fdf2514d860d92e2fad4d25254bbf7fb65151a5f0fefa
7
- data.tar.gz: f32c8922f62bb618034a40dff29554d2171b5b46459c8200388a7162f0072360b5c0091c2fd9bace45923e17b73e086b98b49afe7e2d2be6ff211552f5dd7f47
6
+ metadata.gz: fe774524b8ba765e58e49d2e2e42ab6996de479b89d75b79f4560ce1696aa84d48d8f89e5dc035bbcb08196238f23306eaa60ea474b8fc08e9dde109d3e07329
7
+ data.tar.gz: 56894aa62eb3b1b667500097602d4743643f28cbc3a5ab6d917c1cabeec0afea6dcdaac4039da20f94eadf149355f6bd996aa5fad6254ef6baabff68009612e6
@@ -127,8 +127,9 @@ module Phlexi
127
127
  # @param attributes [Hash] Additional attributes for the radio button.
128
128
  # @return [Components::RadioButton] The radio button component.
129
129
  def radio_button_tag(**, &)
130
- create_component(Components::RadioButton, :radio, **, &)
130
+ create_component(Components::RadioButton, :radio_button, **, &)
131
131
  end
132
+ alias_method :radio_tag, :radio_button_tag
132
133
 
133
134
  # Creates collection radio buttons for the field.
134
135
  #
@@ -175,23 +176,11 @@ module Phlexi
175
176
  raise NotImplementedError, "has_one associations are NOT supported"
176
177
  end
177
178
 
178
- def polymorphic_has_one_tag(**, &)
179
- # TODO: this requires a grouped_select component
180
- # see: Plutonium::Core::Fields::Inputs::PolymorphicBelongsToAssociationInput
181
- raise NotImplementedError, "polymorphic has_one associations are not YET supported"
182
- end
183
-
184
179
  def has_many_tag(**, &)
185
180
  create_component(Components::HasMany, :has_many, **, &)
186
181
  end
187
182
  alias_method :has_and_belongs_to_many_tag, :has_many_tag
188
183
 
189
- def polymorphic_has_many_tag(**, &)
190
- # TODO: this requires a grouped_select component
191
- # see: Plutonium::Core::Fields::Inputs::PolymorphicBelongsToAssociationInput
192
- raise NotImplementedError, "polymorphic has_many associations are not YET supported"
193
- end
194
-
195
184
  def input_array_tag(**, &)
196
185
  create_component(Components::InputArray, :array, **, &)
197
186
  end
@@ -102,6 +102,12 @@ module Phlexi
102
102
  invalid_checkbox: :invalid_input,
103
103
  neutral_checkbox: :neutral_input,
104
104
 
105
+ # Radio
106
+ radio_button: :input,
107
+ valid_radio_button: :valid_input,
108
+ invalid_radio_button: :invalid_input,
109
+ neutral_radio_button: :neutral_input,
110
+
105
111
  # Boolean
106
112
  boolan: :checkbox,
107
113
  valid_boolan: :valid_checkbox,
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Phlexi
4
4
  module Form
5
- VERSION = "0.8.2"
5
+ VERSION = "0.8.5"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phlexi-form
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.8.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Froelich
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-01-03 00:00:00.000000000 Z
11
+ date: 2025-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: phlex