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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee5f9113b37053e43065a7acaf34cde1cba9e2b297c88c64f6c79f8717995b50
|
4
|
+
data.tar.gz: 4dab827b95239e51d02b237c245b6293e17df89dab56dc91e4646035478058ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a6e5969e163adacdf017c015c861f84852daddcf11910d969b07981d7bc701ab06b1d4671edb478ed6f33a3e6b5f054396fd4dda5f28e770c8f6b1489031daf
|
7
|
+
data.tar.gz: 0e5ae8070c7646318efbda00096ed29541941b85e0827a1e661fd054ccbce77f309ad23fac5cc3f2071d1cf5d05d681085f146e39a164e545a93ff5fe65a2a86
|
data/Gemfile.lock
CHANGED
@@ -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
|
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
|
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