pxs-forms 0.1.4.6 → 0.1.4.7

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: 05eaa7e84b007826b2bdbf1515f85c09d53070d4dbebda132d09763587898678
4
- data.tar.gz: b66d19184d9700a3cbba2a409a3ab89e8c7887873d160328d16b2f41ba212cc8
3
+ metadata.gz: 7956ffdc7dc1d10c99adc67c23a15cb7ee8150e24dfc7d1227f28043181ff01d
4
+ data.tar.gz: '0822906496a3ebb5009b6fa23ffd2cedafada5361b9a8fdec611f9b06ec3d70e'
5
5
  SHA512:
6
- metadata.gz: 6a2316e33ee6747df85654ffe40a469fd51d4f547833e247482bb3e4854d35a9bb54c1f7fb39686b47b8aa126137f5eb6dfa8ad4506b9f03d9248d66be5daaf2
7
- data.tar.gz: 24cb58961e069d8039fa5f33e2ff75a72875d878029fd5a726e376a543ac7ae1a182fa822284b3a2c02094259b4fca4c9a454fa9829f3110db5b1001d9a1e577
6
+ metadata.gz: 66e0c3cd7c14b728ff546c59151bd18bc222b17df221ea04bcab5c04d98a3c9d5760bb724d84475399b9e8db80f0911c2e19720e6e9e366c7be8a7b7262baea1
7
+ data.tar.gz: ba261e5ea8096abb5f5ebcfc6561ddc7555895198795f22e9b562831c597af5920057137dc4f30b065cd8a2466dd44be984a72a0ed49092a51b04750895faaa4
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  ## Unofficial Release
4
4
 
5
+ ## [0.1.4.7] - 2025-04-08
6
+
7
+ - Fix string input not properly invoking string field
8
+ - Fix date field showing a rendundant date select
9
+
5
10
  ## [0.1.4.3-6] - 2025-04-03
6
11
 
7
12
  - Fix I18n missing from a I18n.t function call
@@ -4,6 +4,9 @@ module Pxs
4
4
 
5
5
  def initialize
6
6
  end
7
+
8
+ #todo configuration ideas:
9
+ # use models_helper buttons?
7
10
  end
8
11
  end
9
12
  end
@@ -188,7 +188,7 @@ class ModelFormBuilder < ActionView::Helpers::FormBuilder
188
188
 
189
189
  safe_join [
190
190
  (field_label(attribute, options[:label]) unless options[:label] == false),
191
- @template.text_field(base_input_name, attribute, merge_input_options({class: has_error?(attribute) ? "is-invalid" : nil}, objectify_options(options[:input_html] || {}))),
191
+ string_field(attribute, merge_input_options({class: has_error?(attribute) ? "is-invalid" : nil}, objectify_options(options[:input_html] || {}))),
192
192
  ]
193
193
  end
194
194
  end
@@ -296,16 +296,7 @@ class ModelFormBuilder < ActionView::Helpers::FormBuilder
296
296
  options = { value: object[attribute] }.merge(options)
297
297
  case object_type_for_attribute(attribute)
298
298
  when :date then
299
- safe_join [
300
- @template.date_field(base_input_name, attribute, merge_input_options(options, {data: {datepicker: true}})),
301
- tag.div {
302
- date_select(attribute, {
303
- order: [:year, :month, :day],
304
- start_year: Date.today.year,
305
- end_year: Date.today.year,
306
- }, {data: {date_select: true}})
307
- },
308
- ]
299
+ @template.date_field(base_input_name, attribute, merge_input_options(options, {data: {datepicker: true}}))
309
300
  when :integer then @template.number_field(base_input_name, attribute, options)
310
301
  when :decimal then @template.number_field(base_input_name, attribute, {step: 0.1}.merge(options))
311
302
  when :string
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Pxs
4
4
  module Forms
5
- VERSION = "0.1.4.6"
5
+ VERSION = "0.1.4.7"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pxs-forms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4.6
4
+ version: 0.1.4.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Poubelle
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-04-04 00:00:00.000000000 Z
11
+ date: 2025-04-08 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: