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 +4 -4
- data/lib/phlexi/form/builder.rb +2 -13
- data/lib/phlexi/form/theme.rb +6 -0
- data/lib/phlexi/form/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7467adbbe9a8093e99978671b26fd071b8c85907f87eda8b1e01afc806af0f3
|
4
|
+
data.tar.gz: c116107c7c52c277e2793bf8f7705daa7d4aac256823f228becfd8e0acfd5f13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe774524b8ba765e58e49d2e2e42ab6996de479b89d75b79f4560ce1696aa84d48d8f89e5dc035bbcb08196238f23306eaa60ea474b8fc08e9dde109d3e07329
|
7
|
+
data.tar.gz: 56894aa62eb3b1b667500097602d4743643f28cbc3a5ab6d917c1cabeec0afea6dcdaac4039da20f94eadf149355f6bd996aa5fad6254ef6baabff68009612e6
|
data/lib/phlexi/form/builder.rb
CHANGED
@@ -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, :
|
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
|
data/lib/phlexi/form/theme.rb
CHANGED
@@ -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,
|
data/lib/phlexi/form/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2025-02-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: phlex
|