avo 3.15.0 → 3.15.1

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: ae93f52de73c039c3819ccc42a1c9ea7e77332de66fe877ff64458466e7c65a4
4
- data.tar.gz: af7dd03efaa6d0e4549a48a0a3415d25429a9ad874b0b406e8cc44d27e9a50f3
3
+ metadata.gz: 20e94afb3f4f8ef61c3ef823e6358d06abfd6ca18f3a77134a64df465b3c695d
4
+ data.tar.gz: 9017bfd4900f33f234c69b67e4be1943c1278dac64df92590635892739d4673b
5
5
  SHA512:
6
- metadata.gz: 1c631726372b5a99334525336c9a3a6fd268e2a0d68546a6f5b036f894f35cd271e4db6b829ffbb17c3f43ffc3db1a2cad88f56ad21454695b3d4f6ae8a3d22d
7
- data.tar.gz: 2e54b39f392e0bbf172d1cf20e0052f1d974c1d9ef6f349dd99c92dbd90d358c4e56c40e84c17c798b13ddb4d898e5c4a342467157161db842d2bee83ba81562
6
+ metadata.gz: e9f709c591d51c60442bfa7d08cff02e5e51c1db6b9b1a64ec3244753d358fa48fb16c0a8e81d763df0e657e98dbaad8d99894dbf58846fd4402662f52777553
7
+ data.tar.gz: 656739f78156385681ff032157f915ac009292357b01317a5555c23f4a7328a9825ae38b390c931b2f3bcf3b0d5cfe47df2081436477448bf42616c45b58fc10
data/Gemfile.lock CHANGED
@@ -107,7 +107,7 @@ GIT
107
107
  PATH
108
108
  remote: .
109
109
  specs:
110
- avo (3.15.0)
110
+ avo (3.15.1)
111
111
  actionview (>= 6.1)
112
112
  active_link_to
113
113
  activerecord (>= 6.1)
@@ -21,7 +21,7 @@
21
21
  <%= helpers.svg "avo/three-dots", class: 'h-4' %>
22
22
  </a>
23
23
  <div
24
- class="hidden absolute flex flex-col inset-auto right-0 -mt-28 bg-white rounded min-w-[200px] shadow-context z-40"
24
+ class="hidden absolute flex flex-col inset-auto right-0 bottom-0 mb-8 bg-white rounded min-w-[200px] shadow-context z-40"
25
25
  data-toggle-target="panel"
26
26
  data-transition-enter="transition ease-in-out duration-100"
27
27
  data-transition-enter-start="transform opacity-0 translate-y-3"
@@ -52,7 +52,7 @@
52
52
  </div>
53
53
  </div>
54
54
  <% if has_dynamic_filters? %>
55
- <%= render Avo::DynamicFilters::FiltersComponent.new resource: resource, turbo_frame: @turbo_frame, dynamic_filters_component_id: dynamic_filters_component_id %>
55
+ <%= render Avo::DynamicFilters::FiltersComponent.new resource: resource, turbo_frame: @turbo_frame, dynamic_filters_component_id: dynamic_filters_component_id, parent_record: @parent_record, parent_resource: @parent_resource %>
56
56
  <% end %>
57
57
  </div>
58
58
  </div>
@@ -316,14 +316,14 @@ module Avo
316
316
 
317
317
  # Pagination
318
318
  @index_params[:page] = params[:page] || page_from_session || 1
319
- @index_params[:per_page] = Avo.configuration.per_page
320
-
321
- if cookies[:per_page].present?
322
- @index_params[:per_page] = cookies[:per_page]
323
- end
319
+ @index_params[:per_page] = cookies[:per_page] || Avo.configuration.per_page
324
320
 
325
321
  if @parent_record.present?
326
- @index_params[:per_page] = Avo.configuration.via_per_page
322
+ per_page_key = "#{@record.to_global_id}.has_many.#{@resource.class.to_s.parameterize}.per_page"
323
+ session[per_page_key] = params[:per_page] || session[per_page_key]
324
+ per_page_from_session = session[per_page_key]
325
+
326
+ @index_params[:per_page] = per_page_from_session || Avo.configuration.via_per_page
327
327
  end
328
328
 
329
329
  if params[:per_page].present?
data/lib/avo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Avo
2
- VERSION = "3.15.0" unless const_defined?(:VERSION)
2
+ VERSION = "3.15.1" unless const_defined?(:VERSION)
3
3
  end
@@ -7660,10 +7660,6 @@ tag.tagify__tag{
7660
7660
  margin-top:-0.5rem
7661
7661
  }
7662
7662
 
7663
- .-mt-28{
7664
- margin-top:-7rem
7665
- }
7666
-
7667
7663
  .-mt-4{
7668
7664
  margin-top:-1rem
7669
7665
  }
@@ -7700,6 +7696,10 @@ tag.tagify__tag{
7700
7696
  margin-bottom:1.25rem
7701
7697
  }
7702
7698
 
7699
+ .mb-8{
7700
+ margin-bottom:2rem
7701
+ }
7702
+
7703
7703
  .ml-0{
7704
7704
  margin-left:0px
7705
7705
  }
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.15.0
4
+ version: 3.15.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Marin
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2024-12-03 00:00:00.000000000 Z
13
+ date: 2024-12-04 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activerecord