para 0.12.3 → 0.12.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d2e8f3dd97232094cbf6840ad5ec462068c43019dec82f3c872d48bb5f0d8ffa
4
- data.tar.gz: 2b3d6cd3dbfa31daef6cdca4e3e040843f10e350f02c9687dec51f1c641de12c
3
+ metadata.gz: bac06958cd2f4e9d4d35a59338f77934fcb812341d56778e2284f8165a18b978
4
+ data.tar.gz: '085f64e0d60c60e5562219db39a1fdc90d37eaa3e549918bed9a80814ac3acca'
5
5
  SHA512:
6
- metadata.gz: 1c5d0d01332d290463ac6b3c856e2260ee62625ceb9a9e76ea0887f13188ce7df691b23be95e40b20b271a19c5650975844944c6bf1f50262b8677eaa7189d86
7
- data.tar.gz: 29ad0aba0dc5ac675f601e8891641aa28e38649550202a03858c46a9703e2a257a52e09bf5ee21ce74f6ca21e877c141888f081ffdba6b88c69fb1bafa4cadd3
6
+ metadata.gz: 6f32e3e3bd4c33a87ca98f900a0d46d03cc005737eb9131dd3395cb7247e0e926d45ceeefb2c8215f87eda98c19f77dd3e59b841d84dd544e250010fb8422f8f
7
+ data.tar.gz: 748a7875b0783387d1ebb8fbcb545827431e908aedd5381580a6aeed0703acf7354ef9aec4d03899110574e6cdd9071555519d86b441d0b812047bb6c56063af
@@ -11,7 +11,7 @@
11
11
 
12
12
  = form.remove_association_button(allow_destroy_if: allow_destroy_if)
13
13
 
14
- .panel-collapse.form-inputs.collapse{ id: form.nested_resource_dom_id, class: ('in' if uncollapsed && form.object.persisted?), data: { rendered: render_partial, render_path: @component.path(**remote_partial_params), id: form.object.id, :"object-name" => form.object_name, :"model-name" => model.name } }
14
+ .panel-collapse.form-inputs.collapse{ id: form.nested_resource_dom_id, class: ('in' if uncollapsed && form.object.persisted?), data: { is_rendered: (render_partial && "true"), render_path: @component.path(**remote_partial_params), id: form.object.id, :"object-name" => form.object_name, :"model-name" => model.name } }
15
15
  .panel-body{ data: { :"nested-form-container" => true } }
16
16
  - if render_partial
17
17
  = render partial: find_partial_for(model, form.nested_fields_partial_name), locals: { form: form }.merge(nested_locals)
@@ -38,6 +38,11 @@ Para.config do |config|
38
38
  #
39
39
  # config.uncollapse_inset_nested_fields = false
40
40
 
41
+ # Set this to false if you want to define the :file and :image simple form inputs in the
42
+ # app, to customize them.
43
+ #
44
+ # config.load_file_inputs = false
45
+
41
46
  # Set if the Para::Breadcrumb::Controller module should be included into the
42
47
  # app, allowing easy breadcrumbs management in the app.
43
48
  #
data/lib/para/config.rb CHANGED
@@ -49,6 +49,12 @@ module Para
49
49
  mattr_accessor :uncollapse_inset_nested_fields
50
50
  @@uncollapse_inset_nested_fields = true
51
51
 
52
+ # Allow setting `load_file_inputs` to false to disable loading of simple form file
53
+ # inputs from SimpleFormExtension::Inputs module, allowing to use custom file inputs
54
+ # from the app.
55
+ mattr_accessor :load_file_inputs
56
+ @@load_file_inputs = true
57
+
52
58
  # Allows changing default cache store used by Para to store jobs through
53
59
  # the ActiveJob::Status gem
54
60
  #
data/lib/para/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Para
4
- VERSION = '0.12.3'
4
+ VERSION = '0.12.5'
5
5
  end
@@ -8,9 +8,12 @@ module SimpleFormExtension
8
8
  autoload :CollectionCheckBoxesInput
9
9
  autoload :CollectionRadioButtonsInput
10
10
  autoload :ColorInput
11
- autoload :FileInput
12
- autoload :ImageInput
13
11
  autoload :SelectizeInput
14
12
  autoload :SliderInput
13
+
14
+ if Para.config.load_file_inputs
15
+ autoload :FileInput
16
+ autoload :ImageInput
17
+ end
15
18
  end
16
19
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: para
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.3
4
+ version: 0.12.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Valentin Ballestrino
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-22 00:00:00.000000000 Z
11
+ date: 2025-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_decorator
@@ -792,7 +792,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
792
792
  - !ruby/object:Gem::Version
793
793
  version: '0'
794
794
  requirements: []
795
- rubygems_version: 3.5.17
795
+ rubygems_version: 3.5.16
796
796
  signing_key:
797
797
  specification_version: 4
798
798
  summary: Rails admin engine