avo 3.11.9 → 3.11.10

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: 95ed3c490102f236611ef61554c7f9f52475a5af2dd772ca5c520a07b14cc039
4
- data.tar.gz: c019b70a43ef1176cebd6522619987f8b7a961a1b8cda4775f1d0304d0726f29
3
+ metadata.gz: ee5f9113b37053e43065a7acaf34cde1cba9e2b297c88c64f6c79f8717995b50
4
+ data.tar.gz: 4dab827b95239e51d02b237c245b6293e17df89dab56dc91e4646035478058ec
5
5
  SHA512:
6
- metadata.gz: ed49311c6bd0f97ba58ec73f13f9f1f523ab8fff7112d9fc4891b30b02f1f251324040061db06c2d476f4db3109b2d4ea392fd05e213a7754dadddfc170eef9e
7
- data.tar.gz: aeaf279a6dc17e01d4073ef7bbdec098996a95d2f057e88c3c68b168f8713c9d893a03efdfdbead547a323cc24dc0f51a7a2b282844ad360f2e7454b276f2ca7
6
+ metadata.gz: 1a6e5969e163adacdf017c015c861f84852daddcf11910d969b07981d7bc701ab06b1d4671edb478ed6f33a3e6b5f054396fd4dda5f28e770c8f6b1489031daf
7
+ data.tar.gz: 0e5ae8070c7646318efbda00096ed29541941b85e0827a1e661fd054ccbce77f309ad23fac5cc3f2071d1cf5d05d681085f146e39a164e545a93ff5fe65a2a86
data/Gemfile.lock CHANGED
@@ -105,7 +105,7 @@ GIT
105
105
  PATH
106
106
  remote: .
107
107
  specs:
108
- avo (3.11.9)
108
+ avo (3.11.10)
109
109
  actionview (>= 6.1)
110
110
  active_link_to
111
111
  activerecord (>= 6.1)
@@ -4,7 +4,9 @@ class Avo::PaginatorComponent < Avo::BaseComponent
4
4
  prop :resource, _Nilable(Avo::BaseResource)
5
5
  prop :parent_record, _Nilable(ActiveRecord::Base)
6
6
  prop :pagy, _Nilable(Pagy)
7
- prop :turbo_frame, _Nilable(String)
7
+ prop :turbo_frame, _Nilable(_Union(String, Symbol)) do |frame|
8
+ frame.present? ? CGI.escapeHTML(frame) : :_top
9
+ end
8
10
  prop :index_params, _Nilable(Hash)
9
11
  prop :discreet_pagination, _Nilable(_Boolean)
10
12
 
@@ -79,7 +79,7 @@
79
79
  <% if view_type.to_sym == :table || view_type.to_sym == :map %>
80
80
  <% if @records.present? %>
81
81
  <div class="mt-4 w-full">
82
- <%= render Avo::PaginatorComponent.new pagy: @pagy, turbo_frame: @turbo_frame || "none", index_params: @index_params, resource: @resource, parent_record: @parent_record, discreet_pagination: field&.discreet_pagination %>
82
+ <%= render Avo::PaginatorComponent.new pagy: @pagy, turbo_frame: @turbo_frame, index_params: @index_params, resource: @resource, parent_record: @parent_record, discreet_pagination: field&.discreet_pagination %>
83
83
  </div>
84
84
  <% end %>
85
85
  <% end %>
@@ -88,7 +88,7 @@
88
88
  <%= render Avo::Index::ResourceGridComponent.new(resources: @resources, resource: @resource, reflection: @reflection, parent_record: @parent_record, parent_resource: @parent_resource, actions: @actions) %>
89
89
  </div>
90
90
  <div class="mt-6">
91
- <%= render Avo::PaginatorComponent.new pagy: @pagy, turbo_frame: @turbo_frame || "none", index_params: @index_params, resource: @resource, parent_record: @parent_record, discreet_pagination: field&.discreet_pagination %>
91
+ <%= render Avo::PaginatorComponent.new pagy: @pagy, turbo_frame: @turbo_frame, index_params: @index_params, resource: @resource, parent_record: @parent_record, discreet_pagination: field&.discreet_pagination %>
92
92
  </div>
93
93
  <% end %>
94
94
  <% end %>
data/lib/avo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Avo
2
- VERSION = "3.11.9" unless const_defined?(:VERSION)
2
+ VERSION = "3.11.10" unless const_defined?(:VERSION)
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avo
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.11.9
4
+ version: 3.11.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Marin