avo 3.6.4 → 3.7.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Avo::FieldWrapperComponent < ViewComponent::Base
4
+ include Avo::Concerns::HasResourceStimulusControllers
5
+
4
6
  attr_reader :dash_if_blank
5
7
  attr_reader :compact
6
8
  attr_reader :field
@@ -112,12 +114,4 @@ class Avo::FieldWrapperComponent < ViewComponent::Base
112
114
  def full_width?
113
115
  @full_width
114
116
  end
115
-
116
- private
117
-
118
- def add_stimulus_attributes_for(entity, attributes)
119
- entity.get_stimulus_controllers.split(" ").each do |controller|
120
- attributes["#{controller}-target"] = "#{@field.id.to_s.underscore}_#{@field.type.to_s.underscore}_wrapper".camelize(:lower)
121
- end
122
- end
123
117
  end
@@ -1,9 +1,9 @@
1
- <div class="flex items-start py-1 leading-tight bg-gray-100 text-gray-500 text-xs">
1
+ <%= content_tag :div, class: "flex items-start py-1 leading-tight bg-gray-100 text-gray-500 text-xs", data: @data do %>
2
2
  <div class="py-2 px-6 h-full w-full">
3
- <% if as_html %>
4
- <%= sanitize value %>
3
+ <% if @field.as_html %>
4
+ <%= sanitize @field.value %>
5
5
  <% else %>
6
- <div class="font-semibold uppercase"><%= value %></div>
6
+ <div class="font-semibold uppercase"><%= @field.value %></div>
7
7
  <% end %>
8
8
  </div>
9
- </div>
9
+ <% end %>
@@ -1,11 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Avo::Fields::Common::HeadingComponent < ViewComponent::Base
4
- attr_reader :value
5
- attr_reader :as_html
4
+ include Avo::Concerns::HasResourceStimulusControllers
6
5
 
7
- def initialize(value:, as_html:)
8
- @value = value
9
- @as_html = as_html
6
+ def initialize(field:)
7
+ @field = field
8
+ @view = field.resource.view
9
+
10
+ @data = stimulus_data_attributes
11
+ add_stimulus_attributes_for(field.resource, @data)
10
12
  end
11
13
  end
@@ -1,3 +1,3 @@
1
1
  <div <% if @index == 0 %> class="overflow-hidden rounded-t" <% end %> data-field-id="<%= @field.id %>">
2
- <%= render Avo::Fields::Common::HeadingComponent.new value: @field.value, as_html: @field.as_html %>
2
+ <%= render Avo::Fields::Common::HeadingComponent.new field: @field %>
3
3
  </div>
@@ -1,3 +1,3 @@
1
1
  <div <% if @index == 0 %> class="overflow-hidden rounded-t" <% end %> data-field-id="<%= @field.id %>">
2
- <%= render Avo::Fields::Common::HeadingComponent.new value: @field.value, as_html: @field.as_html %>
2
+ <%= render Avo::Fields::Common::HeadingComponent.new field: @field %>
3
3
  </div>
@@ -1,5 +1,5 @@
1
- <div class="space-x-2 flex flex-row justify-between">
1
+ <%= content_tag :div, class: "space-x-2 flex flex-row justify-between ml-2 has-record-selector:ml-0" do %>
2
2
  <% @resource.render_row_controls(item: singular_resource_name).each do |control| %>
3
3
  <%= render_control control %>
4
4
  <% end %>
5
- </div>
5
+ <% end %>
@@ -22,7 +22,7 @@
22
22
  </div>
23
23
  </div>
24
24
  <div class="flex">
25
- <div class="flex-2 sm:flex sm:items-center sm:justify-between space-y-2 sm:space-y-0 text-center sm:text-left">
25
+ <div class="flex-2 sm:flex sm:items-center sm:justify-between space-y-2 sm:space-y-0 text-center sm:text-left pagy-gem-version-<%= pagy_major_version %>">
26
26
  <% if @resource.pagination_type.default? %>
27
27
  <div class="text-sm text-slate-600 mr-4"><%== helpers.pagy_info @pagy %></div>
28
28
  <% end %>
@@ -42,4 +42,13 @@ class Avo::PaginatorComponent < ViewComponent::Base
42
42
  options.sort.uniq
43
43
  end
44
44
  end
45
+
46
+ def pagy_major_version
47
+ return nil unless defined?(Pagy::VERSION)
48
+ version = Pagy::VERSION&.split(".")&.first&.to_i
49
+
50
+ return "8-or-more" if version >= 8
51
+
52
+ version
53
+ end
45
54
  end
@@ -1,4 +1,5 @@
1
1
  <%= content_tag :div,
2
+ class: class_names('has-record-selector': @resource.record_selector),
2
3
  data: {
3
4
  component_name: self.class.to_s.underscore,
4
5
  model_name: @resource.model_name.to_s,
@@ -8,11 +8,11 @@ module Avo
8
8
  end
9
9
 
10
10
  def get_stimulus_controllers
11
- return "" if view.nil?
11
+ return "" if @view.nil?
12
12
 
13
13
  controllers = []
14
14
 
15
- case view.to_sym
15
+ case @view.to_sym
16
16
  when :show
17
17
  controllers << "resource-show"
18
18
  when :new, :edit
@@ -32,11 +32,17 @@ module Avo
32
32
  }
33
33
 
34
34
  get_stimulus_controllers.split(" ").each do |controller|
35
- attributes["#{controller}-view-value"] = view
35
+ attributes["#{controller}-view-value"] = @view
36
36
  end
37
37
 
38
38
  attributes
39
39
  end
40
+
41
+ def add_stimulus_attributes_for(entity, attributes)
42
+ entity.get_stimulus_controllers.split(" ").each do |controller|
43
+ attributes["#{controller}-target"] = "#{@field.id.to_s.underscore}_#{@field.type.to_s.underscore}_wrapper".camelize(:lower)
44
+ end
45
+ end
40
46
  end
41
47
  end
42
48
  end
@@ -38,7 +38,8 @@ module Avo
38
38
  send PAGINATION_METHOD[pagination_type.to_sym],
39
39
  query,
40
40
  items: index_params[:per_page],
41
- link_extra: "data-turbo-frame=\"#{params[:turbo_frame]}\"",
41
+ link_extra: "data-turbo-frame=\"#{params[:turbo_frame]}\"", # Add extra arguments in pagy 7.
42
+ anchor_string: "data-turbo-frame=\"#{params[:turbo_frame]}\"", # Add extra arguments in pagy 8.
42
43
  params: extra_pagy_params,
43
44
  size: pagination_hash[:size]
44
45
  end
@@ -23,7 +23,7 @@ module Avo
23
23
 
24
24
  # Identify if field is bonded to a rich text model attribute
25
25
  def is_action_text?
26
- return false if record.nil? || !record.respond_to?(id)
26
+ return false if !defined?(ActionText::RichText) || record.nil? || !record.respond_to?(id)
27
27
 
28
28
  record.send(id).is_a?(ActionText::RichText)
29
29
  end
data/lib/avo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Avo
2
- VERSION = "3.6.4" unless const_defined?(:VERSION)
2
+ VERSION = "3.7.1" unless const_defined?(:VERSION)
3
3
  end
data/lib/avo.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require "zeitwerk"
2
+ require "ostruct"
2
3
  require_relative "avo/version"
3
4
  require_relative "avo/engine" if defined?(Rails)
4
5
 
@@ -4696,125 +4696,374 @@ svg.tea #steamR {
4696
4696
  }
4697
4697
  }
4698
4698
 
4699
- .pagy-nav,
4700
- .pagy-nav-js,
4701
- .pagy-combo-nav-js{
4702
- position:relative;
4703
- z-index:0;
4704
- display:flex
4705
- }
4699
+ .pagy-gem-version-7 .pagy-nav,
4700
+ .pagy-gem-version-7 .pagy-nav-js,
4701
+ .pagy-gem-version-7 .pagy-combo-nav-js{
4702
+ position:relative
4703
+ }
4706
4704
 
4707
- .pagy-nav.pagination > :not([hidden]) ~ :not([hidden]),
4708
- .pagy-nav-js.pagination > :not([hidden]) ~ :not([hidden]),
4709
- .pagy-combo-nav-js.pagination > :not([hidden]) ~ :not([hidden]){
4710
- --tw-space-x-reverse:0;
4711
- margin-right:calc(0.5rem * var(--tw-space-x-reverse));
4712
- margin-left:calc(0.5rem * calc(1 - var(--tw-space-x-reverse)))
4713
- }
4705
+ .pagy-gem-version-7 .pagy-nav,
4706
+ .pagy-gem-version-7 .pagy-nav-js,
4707
+ .pagy-gem-version-7 .pagy-combo-nav-js{
4708
+ z-index:0
4709
+ }
4714
4710
 
4715
- .pagy-nav .page a{
4716
- display:block
4717
- }
4711
+ .pagy-gem-version-7 .pagy-nav,
4712
+ .pagy-gem-version-7 .pagy-nav-js,
4713
+ .pagy-gem-version-7 .pagy-combo-nav-js{
4714
+ display:flex
4715
+ }
4718
4716
 
4719
- .pagy-nav .page a,
4720
- .pagy-nav .page.active a,
4721
- .pagy-nav .page.prev.disabled a,
4722
- .pagy-nav .page.next.disabled a,
4723
- .pagy-nav-js .page a,
4724
- .pagy-combo-nav-js .page a,
4725
- .pagy-combo-nav-js .pagy-combo-input a{
4726
- border-radius:0.25rem;
4727
- border-width:1px;
4728
- --tw-border-opacity:1;
4729
- border-color:rgb(172 177 185 / var(--tw-border-opacity));
4730
- --tw-bg-opacity:1;
4731
- background-color:rgb(255 255 255 / var(--tw-bg-opacity));
4732
- padding-left:0.75rem;
4733
- padding-right:0.75rem;
4734
- padding-top:0.25rem;
4735
- padding-bottom:0.25rem;
4736
- font-size:0.875rem;
4737
- line-height:1.25rem;
4738
- font-weight:600;
4739
- --tw-text-opacity:1;
4740
- color:rgb(117 125 138 / var(--tw-text-opacity));
4741
- --tw-shadow:0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
4742
- --tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
4743
- box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
4744
- }
4717
+ .pagy-gem-version-7 .pagy-nav.pagination > :not([hidden]) ~ :not([hidden]),
4718
+ .pagy-gem-version-7 .pagy-nav-js.pagination > :not([hidden]) ~ :not([hidden]),
4719
+ .pagy-gem-version-7 .pagy-combo-nav-js.pagination > :not([hidden]) ~ :not([hidden]){
4720
+ --tw-space-x-reverse:0;
4721
+ margin-right:calc(0.5rem * var(--tw-space-x-reverse));
4722
+ margin-left:calc(0.5rem * calc(1 - var(--tw-space-x-reverse)))
4723
+ }
4745
4724
 
4746
- .pagy-nav .page a:hover,.pagy-nav .page.active a:hover,.pagy-nav .page.prev.disabled a:hover,.pagy-nav .page.next.disabled a:hover,.pagy-nav-js .page a:hover,.pagy-combo-nav-js .page a:hover,.pagy-combo-nav-js .pagy-combo-input a:hover{
4747
- --tw-bg-opacity:1;
4748
- background-color:rgb(214 216 220 / var(--tw-bg-opacity))
4725
+ .pagy-gem-version-7 .pagy-nav .page a{
4726
+ display:block
4749
4727
  }
4750
4728
 
4751
- .pagy-nav .page a:active,.pagy-nav .page.active a:active,.pagy-nav .page.prev.disabled a:active,.pagy-nav .page.next.disabled a:active,.pagy-nav-js .page a:active,.pagy-combo-nav-js .page a:active,.pagy-combo-nav-js .pagy-combo-input a:active{
4752
- --tw-bg-opacity:1;
4753
- background-color:rgb(200 203 208 / var(--tw-bg-opacity))
4729
+ .pagy-gem-version-7 .pagy-nav .page a,
4730
+ .pagy-gem-version-7 .pagy-nav .page.active a,
4731
+ .pagy-gem-version-7 .pagy-nav .page.prev.disabled a,
4732
+ .pagy-gem-version-7 .pagy-nav .page.next.disabled a,
4733
+ .pagy-gem-version-7 .pagy-nav-js .page a,
4734
+ .pagy-gem-version-7 .pagy-combo-nav-js .page a,
4735
+ .pagy-gem-version-7 .pagy-combo-nav-js .pagy-combo-input a{
4736
+ border-radius:0.25rem
4754
4737
  }
4755
4738
 
4756
- .pagy-nav .page.prev.disabled a,
4757
- .pagy-nav-js .page.prev.disabled a,
4758
- .pagy-combo-nav-js .page.prev.disabled a,
4759
- .pagy-nav .page.next.disabled a,
4760
- .pagy-nav-js .page.next.disabled a,
4761
- .pagy-combo-nav-js .page.next.disabled a{
4762
- cursor:default;
4763
- --tw-text-opacity:1;
4764
- color:rgb(172 177 185 / var(--tw-text-opacity));
4765
- }
4739
+ .pagy-gem-version-7 .pagy-nav .page a,
4740
+ .pagy-gem-version-7 .pagy-nav .page.active a,
4741
+ .pagy-gem-version-7 .pagy-nav .page.prev.disabled a,
4742
+ .pagy-gem-version-7 .pagy-nav .page.next.disabled a,
4743
+ .pagy-gem-version-7 .pagy-nav-js .page a,
4744
+ .pagy-gem-version-7 .pagy-combo-nav-js .page a,
4745
+ .pagy-gem-version-7 .pagy-combo-nav-js .pagy-combo-input a{
4746
+ border-width:1px
4747
+ }
4748
+
4749
+ .pagy-gem-version-7 .pagy-nav .page a,
4750
+ .pagy-gem-version-7 .pagy-nav .page.active a,
4751
+ .pagy-gem-version-7 .pagy-nav .page.prev.disabled a,
4752
+ .pagy-gem-version-7 .pagy-nav .page.next.disabled a,
4753
+ .pagy-gem-version-7 .pagy-nav-js .page a,
4754
+ .pagy-gem-version-7 .pagy-combo-nav-js .page a,
4755
+ .pagy-gem-version-7 .pagy-combo-nav-js .pagy-combo-input a{
4756
+ --tw-border-opacity:1;
4757
+ border-color:rgb(172 177 185 / var(--tw-border-opacity))
4758
+ }
4766
4759
 
4767
- .pagy-nav .page.prev.disabled a:hover,.pagy-nav-js .page.prev.disabled a:hover,.pagy-combo-nav-js .page.prev.disabled a:hover,.pagy-nav .page.next.disabled a:hover,.pagy-nav-js .page.next.disabled a:hover,.pagy-combo-nav-js .page.next.disabled a:hover{
4760
+ .pagy-gem-version-7 .pagy-nav .page a,
4761
+ .pagy-gem-version-7 .pagy-nav .page.active a,
4762
+ .pagy-gem-version-7 .pagy-nav .page.prev.disabled a,
4763
+ .pagy-gem-version-7 .pagy-nav .page.next.disabled a,
4764
+ .pagy-gem-version-7 .pagy-nav-js .page a,
4765
+ .pagy-gem-version-7 .pagy-combo-nav-js .page a,
4766
+ .pagy-gem-version-7 .pagy-combo-nav-js .pagy-combo-input a{
4768
4767
  --tw-bg-opacity:1;
4769
4768
  background-color:rgb(255 255 255 / var(--tw-bg-opacity))
4770
4769
  }
4771
4770
 
4772
- .pagy-nav .page.prev.disabled a:hover,.pagy-nav-js .page.prev.disabled a:hover,.pagy-combo-nav-js .page.prev.disabled a:hover,.pagy-nav .page.next.disabled a:hover,.pagy-nav-js .page.next.disabled a:hover,.pagy-combo-nav-js .page.next.disabled a:hover{
4771
+ .pagy-gem-version-7 .pagy-nav .page a,
4772
+ .pagy-gem-version-7 .pagy-nav .page.active a,
4773
+ .pagy-gem-version-7 .pagy-nav .page.prev.disabled a,
4774
+ .pagy-gem-version-7 .pagy-nav .page.next.disabled a,
4775
+ .pagy-gem-version-7 .pagy-nav-js .page a,
4776
+ .pagy-gem-version-7 .pagy-combo-nav-js .page a,
4777
+ .pagy-gem-version-7 .pagy-combo-nav-js .pagy-combo-input a{
4778
+ padding-left:0.75rem;
4779
+ padding-right:0.75rem
4780
+ }
4781
+
4782
+ .pagy-gem-version-7 .pagy-nav .page a,
4783
+ .pagy-gem-version-7 .pagy-nav .page.active a,
4784
+ .pagy-gem-version-7 .pagy-nav .page.prev.disabled a,
4785
+ .pagy-gem-version-7 .pagy-nav .page.next.disabled a,
4786
+ .pagy-gem-version-7 .pagy-nav-js .page a,
4787
+ .pagy-gem-version-7 .pagy-combo-nav-js .page a,
4788
+ .pagy-gem-version-7 .pagy-combo-nav-js .pagy-combo-input a{
4789
+ padding-top:0.25rem;
4790
+ padding-bottom:0.25rem
4791
+ }
4792
+
4793
+ .pagy-gem-version-7 .pagy-nav .page a,
4794
+ .pagy-gem-version-7 .pagy-nav .page.active a,
4795
+ .pagy-gem-version-7 .pagy-nav .page.prev.disabled a,
4796
+ .pagy-gem-version-7 .pagy-nav .page.next.disabled a,
4797
+ .pagy-gem-version-7 .pagy-nav-js .page a,
4798
+ .pagy-gem-version-7 .pagy-combo-nav-js .page a,
4799
+ .pagy-gem-version-7 .pagy-combo-nav-js .pagy-combo-input a{
4800
+ font-size:0.875rem;
4801
+ line-height:1.25rem
4802
+ }
4803
+
4804
+ .pagy-gem-version-7 .pagy-nav .page a,
4805
+ .pagy-gem-version-7 .pagy-nav .page.active a,
4806
+ .pagy-gem-version-7 .pagy-nav .page.prev.disabled a,
4807
+ .pagy-gem-version-7 .pagy-nav .page.next.disabled a,
4808
+ .pagy-gem-version-7 .pagy-nav-js .page a,
4809
+ .pagy-gem-version-7 .pagy-combo-nav-js .page a,
4810
+ .pagy-gem-version-7 .pagy-combo-nav-js .pagy-combo-input a{
4811
+ font-weight:600
4812
+ }
4813
+
4814
+ .pagy-gem-version-7 .pagy-nav .page a,
4815
+ .pagy-gem-version-7 .pagy-nav .page.active a,
4816
+ .pagy-gem-version-7 .pagy-nav .page.prev.disabled a,
4817
+ .pagy-gem-version-7 .pagy-nav .page.next.disabled a,
4818
+ .pagy-gem-version-7 .pagy-nav-js .page a,
4819
+ .pagy-gem-version-7 .pagy-combo-nav-js .page a,
4820
+ .pagy-gem-version-7 .pagy-combo-nav-js .pagy-combo-input a{
4773
4821
  --tw-text-opacity:1;
4774
- color:rgb(172 177 185 / var(--tw-text-opacity))
4822
+ color:rgb(117 125 138 / var(--tw-text-opacity))
4775
4823
  }
4776
4824
 
4777
- .pagy-nav .page.prev.disabled a:active,.pagy-nav-js .page.prev.disabled a:active,.pagy-combo-nav-js .page.prev.disabled a:active,.pagy-nav .page.next.disabled a:active,.pagy-nav-js .page.next.disabled a:active,.pagy-combo-nav-js .page.next.disabled a:active{
4778
- --tw-bg-opacity:1;
4779
- background-color:rgb(255 255 255 / var(--tw-bg-opacity))
4825
+ .pagy-gem-version-7 .pagy-nav .page a,
4826
+ .pagy-gem-version-7 .pagy-nav .page.active a,
4827
+ .pagy-gem-version-7 .pagy-nav .page.prev.disabled a,
4828
+ .pagy-gem-version-7 .pagy-nav .page.next.disabled a,
4829
+ .pagy-gem-version-7 .pagy-nav-js .page a,
4830
+ .pagy-gem-version-7 .pagy-combo-nav-js .page a,
4831
+ .pagy-gem-version-7 .pagy-combo-nav-js .pagy-combo-input a{
4832
+ --tw-shadow:0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
4833
+ --tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
4834
+ box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)
4780
4835
  }
4781
4836
 
4782
- .pagy-nav .page.prev.disabled a:active,.pagy-nav-js .page.prev.disabled a:active,.pagy-combo-nav-js .page.prev.disabled a:active,.pagy-nav .page.next.disabled a:active,.pagy-nav-js .page.next.disabled a:active,.pagy-combo-nav-js .page.next.disabled a:active{
4837
+ .pagy-gem-version-7 .pagy-nav .page a:hover,.pagy-gem-version-7 .pagy-nav .page.active a:hover,.pagy-gem-version-7 .pagy-nav .page.prev.disabled a:hover,.pagy-gem-version-7 .pagy-nav .page.next.disabled a:hover,.pagy-gem-version-7 .pagy-nav-js .page a:hover,.pagy-gem-version-7 .pagy-combo-nav-js .page a:hover,.pagy-gem-version-7 .pagy-combo-nav-js .pagy-combo-input a:hover{
4838
+ --tw-bg-opacity:1;
4839
+ background-color:rgb(214 216 220 / var(--tw-bg-opacity))
4840
+ }
4841
+
4842
+ .pagy-gem-version-7 .pagy-nav .page a:active,.pagy-gem-version-7 .pagy-nav .page.active a:active,.pagy-gem-version-7 .pagy-nav .page.prev.disabled a:active,.pagy-gem-version-7 .pagy-nav .page.next.disabled a:active,.pagy-gem-version-7 .pagy-nav-js .page a:active,.pagy-gem-version-7 .pagy-combo-nav-js .page a:active,.pagy-gem-version-7 .pagy-combo-nav-js .pagy-combo-input a:active{
4843
+ --tw-bg-opacity:1;
4844
+ background-color:rgb(200 203 208 / var(--tw-bg-opacity))
4845
+ }
4846
+
4847
+ .pagy-gem-version-7 .pagy-nav .page.prev.disabled a,
4848
+ .pagy-gem-version-7 .pagy-nav-js .page.prev.disabled a,
4849
+ .pagy-gem-version-7 .pagy-combo-nav-js .page.prev.disabled a,
4850
+ .pagy-gem-version-7 .pagy-nav .page.next.disabled a,
4851
+ .pagy-gem-version-7 .pagy-nav-js .page.next.disabled a,
4852
+ .pagy-gem-version-7 .pagy-combo-nav-js .page.next.disabled a{
4853
+ cursor:default
4854
+ }
4855
+
4856
+ .pagy-gem-version-7 .pagy-nav .page.prev.disabled a,
4857
+ .pagy-gem-version-7 .pagy-nav-js .page.prev.disabled a,
4858
+ .pagy-gem-version-7 .pagy-combo-nav-js .page.prev.disabled a,
4859
+ .pagy-gem-version-7 .pagy-nav .page.next.disabled a,
4860
+ .pagy-gem-version-7 .pagy-nav-js .page.next.disabled a,
4861
+ .pagy-gem-version-7 .pagy-combo-nav-js .page.next.disabled a{
4783
4862
  --tw-text-opacity:1;
4784
4863
  color:rgb(172 177 185 / var(--tw-text-opacity))
4785
4864
  }
4786
4865
 
4787
- .pagy-nav .page.active a,
4788
- .pagy-nav-js .page.active a{
4789
- cursor:default;
4790
- --tw-border-opacity:1;
4791
- border-color:rgb(117 125 138 / var(--tw-border-opacity));
4792
- --tw-bg-opacity:1;
4793
- background-color:rgb(117 125 138 / var(--tw-bg-opacity));
4794
- --tw-text-opacity:1;
4795
- color:rgb(255 255 255 / var(--tw-text-opacity));
4796
- }
4866
+ .pagy-gem-version-7 .pagy-nav .page.prev.disabled a:hover,.pagy-gem-version-7 .pagy-nav-js .page.prev.disabled a:hover,.pagy-gem-version-7 .pagy-combo-nav-js .page.prev.disabled a:hover,.pagy-gem-version-7 .pagy-nav .page.next.disabled a:hover,.pagy-gem-version-7 .pagy-nav-js .page.next.disabled a:hover,.pagy-gem-version-7 .pagy-combo-nav-js .page.next.disabled a:hover{
4867
+ --tw-bg-opacity:1;
4868
+ background-color:rgb(255 255 255 / var(--tw-bg-opacity))
4869
+ }
4797
4870
 
4798
- .pagy-nav .page.active a:hover,.pagy-nav-js .page.active a:hover{
4799
- --tw-bg-opacity:1;
4800
- background-color:rgb(117 125 138 / var(--tw-bg-opacity))
4871
+ .pagy-gem-version-7 .pagy-nav .page.prev.disabled a:hover,.pagy-gem-version-7 .pagy-nav-js .page.prev.disabled a:hover,.pagy-gem-version-7 .pagy-combo-nav-js .page.prev.disabled a:hover,.pagy-gem-version-7 .pagy-nav .page.next.disabled a:hover,.pagy-gem-version-7 .pagy-nav-js .page.next.disabled a:hover,.pagy-gem-version-7 .pagy-combo-nav-js .page.next.disabled a:hover{
4872
+ --tw-text-opacity:1;
4873
+ color:rgb(172 177 185 / var(--tw-text-opacity))
4874
+ }
4875
+
4876
+ .pagy-gem-version-7 .pagy-nav .page.prev.disabled a:active,.pagy-gem-version-7 .pagy-nav-js .page.prev.disabled a:active,.pagy-gem-version-7 .pagy-combo-nav-js .page.prev.disabled a:active,.pagy-gem-version-7 .pagy-nav .page.next.disabled a:active,.pagy-gem-version-7 .pagy-nav-js .page.next.disabled a:active,.pagy-gem-version-7 .pagy-combo-nav-js .page.next.disabled a:active{
4877
+ --tw-bg-opacity:1;
4878
+ background-color:rgb(255 255 255 / var(--tw-bg-opacity))
4879
+ }
4880
+
4881
+ .pagy-gem-version-7 .pagy-nav .page.prev.disabled a:active,.pagy-gem-version-7 .pagy-nav-js .page.prev.disabled a:active,.pagy-gem-version-7 .pagy-combo-nav-js .page.prev.disabled a:active,.pagy-gem-version-7 .pagy-nav .page.next.disabled a:active,.pagy-gem-version-7 .pagy-nav-js .page.next.disabled a:active,.pagy-gem-version-7 .pagy-combo-nav-js .page.next.disabled a:active{
4882
+ --tw-text-opacity:1;
4883
+ color:rgb(172 177 185 / var(--tw-text-opacity))
4884
+ }
4885
+
4886
+ .pagy-gem-version-7 .pagy-nav .page.active a,
4887
+ .pagy-gem-version-7 .pagy-nav-js .page.active a{
4888
+ cursor:default
4801
4889
  }
4802
4890
 
4803
- .pagy-nav .page.active a:hover,.pagy-nav-js .page.active a:hover{
4804
- --tw-text-opacity:1;
4805
- color:rgb(255 255 255 / var(--tw-text-opacity))
4891
+ .pagy-gem-version-7 .pagy-nav .page.active a,
4892
+ .pagy-gem-version-7 .pagy-nav-js .page.active a{
4893
+ --tw-border-opacity:1;
4894
+ border-color:rgb(117 125 138 / var(--tw-border-opacity))
4806
4895
  }
4807
4896
 
4808
- .pagy-nav .page.active a:active,.pagy-nav-js .page.active a:active{
4897
+ .pagy-gem-version-7 .pagy-nav .page.active a,
4898
+ .pagy-gem-version-7 .pagy-nav-js .page.active a{
4809
4899
  --tw-bg-opacity:1;
4810
4900
  background-color:rgb(117 125 138 / var(--tw-bg-opacity))
4811
4901
  }
4812
4902
 
4813
- .pagy-nav .page.active a:active,.pagy-nav-js .page.active a:active{
4903
+ .pagy-gem-version-7 .pagy-nav .page.active a,
4904
+ .pagy-gem-version-7 .pagy-nav-js .page.active a{
4814
4905
  --tw-text-opacity:1;
4815
4906
  color:rgb(255 255 255 / var(--tw-text-opacity))
4816
4907
  }
4817
4908
 
4909
+ .pagy-gem-version-7 .pagy-nav .page.active a:hover,.pagy-gem-version-7 .pagy-nav-js .page.active a:hover{
4910
+ --tw-bg-opacity:1;
4911
+ background-color:rgb(117 125 138 / var(--tw-bg-opacity))
4912
+ }
4913
+
4914
+ .pagy-gem-version-7 .pagy-nav .page.active a:hover,.pagy-gem-version-7 .pagy-nav-js .page.active a:hover{
4915
+ --tw-text-opacity:1;
4916
+ color:rgb(255 255 255 / var(--tw-text-opacity))
4917
+ }
4918
+
4919
+ .pagy-gem-version-7 .pagy-nav .page.active a:active,.pagy-gem-version-7 .pagy-nav-js .page.active a:active{
4920
+ --tw-bg-opacity:1;
4921
+ background-color:rgb(117 125 138 / var(--tw-bg-opacity))
4922
+ }
4923
+
4924
+ .pagy-gem-version-7 .pagy-nav .page.active a:active,.pagy-gem-version-7 .pagy-nav-js .page.active a:active{
4925
+ --tw-text-opacity:1;
4926
+ color:rgb(255 255 255 / var(--tw-text-opacity))
4927
+ }
4928
+
4929
+ .pagy-gem-version-8-or-more .pagy.nav{
4930
+ position:relative
4931
+ }
4932
+
4933
+ .pagy-gem-version-8-or-more .pagy.nav{
4934
+ z-index:0
4935
+ }
4936
+
4937
+ .pagy-gem-version-8-or-more .pagy.nav{
4938
+ display:flex
4939
+ }
4940
+
4941
+ .pagy-gem-version-8-or-more .pagy.nav > :not([hidden]) ~ :not([hidden]){
4942
+ --tw-space-x-reverse:0;
4943
+ margin-right:calc(0.5rem * var(--tw-space-x-reverse));
4944
+ margin-left:calc(0.5rem * calc(1 - var(--tw-space-x-reverse)))
4945
+ }
4946
+
4947
+ .pagy-gem-version-8-or-more .pagy.nav a.gap{
4948
+ --tw-text-opacity:1;
4949
+ color:rgb(117 125 138 / var(--tw-text-opacity))
4950
+ }
4951
+
4952
+ .pagy-gem-version-8-or-more .pagy.nav a:not(.gap){
4953
+ display:block
4954
+ }
4955
+
4956
+ .pagy-gem-version-8-or-more .pagy.nav a:not(.gap){
4957
+ border-radius:0.25rem
4958
+ }
4959
+
4960
+ .pagy-gem-version-8-or-more .pagy.nav a:not(.gap){
4961
+ border-width:1px
4962
+ }
4963
+
4964
+ .pagy-gem-version-8-or-more .pagy.nav a:not(.gap){
4965
+ --tw-border-opacity:1;
4966
+ border-color:rgb(172 177 185 / var(--tw-border-opacity))
4967
+ }
4968
+
4969
+ .pagy-gem-version-8-or-more .pagy.nav a:not(.gap){
4970
+ --tw-bg-opacity:1;
4971
+ background-color:rgb(255 255 255 / var(--tw-bg-opacity))
4972
+ }
4973
+
4974
+ .pagy-gem-version-8-or-more .pagy.nav a:not(.gap){
4975
+ padding-left:0.75rem;
4976
+ padding-right:0.75rem
4977
+ }
4978
+
4979
+ .pagy-gem-version-8-or-more .pagy.nav a:not(.gap){
4980
+ padding-top:0.25rem;
4981
+ padding-bottom:0.25rem
4982
+ }
4983
+
4984
+ .pagy-gem-version-8-or-more .pagy.nav a:not(.gap){
4985
+ font-size:0.875rem;
4986
+ line-height:1.25rem
4987
+ }
4988
+
4989
+ .pagy-gem-version-8-or-more .pagy.nav a:not(.gap){
4990
+ font-weight:600
4991
+ }
4992
+
4993
+ .pagy-gem-version-8-or-more .pagy.nav a:not(.gap){
4994
+ --tw-text-opacity:1;
4995
+ color:rgb(117 125 138 / var(--tw-text-opacity))
4996
+ }
4997
+
4998
+ .pagy-gem-version-8-or-more .pagy.nav a:not(.gap){
4999
+ --tw-shadow:0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
5000
+ --tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
5001
+ box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)
5002
+ }
5003
+
5004
+ .pagy-gem-version-8-or-more .pagy.nav a:not(.gap):hover{
5005
+ --tw-bg-opacity:1;
5006
+ background-color:rgb(214 216 220 / var(--tw-bg-opacity))
5007
+ }
5008
+
5009
+ .pagy-gem-version-8-or-more .pagy.nav a:not(.gap):active{
5010
+ --tw-bg-opacity:1;
5011
+ background-color:rgb(200 203 208 / var(--tw-bg-opacity))
5012
+ }
5013
+
5014
+ .pagy-gem-version-8-or-more .pagy.nav a:not(.gap).current{
5015
+ cursor:default
5016
+ }
5017
+
5018
+ .pagy-gem-version-8-or-more .pagy.nav a:not(.gap).current{
5019
+ --tw-border-opacity:1;
5020
+ border-color:rgb(117 125 138 / var(--tw-border-opacity))
5021
+ }
5022
+
5023
+ .pagy-gem-version-8-or-more .pagy.nav a:not(.gap).current{
5024
+ --tw-bg-opacity:1;
5025
+ background-color:rgb(117 125 138 / var(--tw-bg-opacity))
5026
+ }
5027
+
5028
+ .pagy-gem-version-8-or-more .pagy.nav a:not(.gap).current{
5029
+ --tw-text-opacity:1;
5030
+ color:rgb(255 255 255 / var(--tw-text-opacity))
5031
+ }
5032
+
5033
+ .pagy-gem-version-8-or-more .pagy.nav a:not(.gap).current:hover{
5034
+ --tw-bg-opacity:1;
5035
+ background-color:rgb(117 125 138 / var(--tw-bg-opacity))
5036
+ }
5037
+
5038
+ .pagy-gem-version-8-or-more .pagy.nav a:not(.gap).current:hover{
5039
+ --tw-text-opacity:1;
5040
+ color:rgb(255 255 255 / var(--tw-text-opacity))
5041
+ }
5042
+
5043
+ .pagy-gem-version-8-or-more .pagy.nav a:not(.gap).current:active{
5044
+ --tw-bg-opacity:1;
5045
+ background-color:rgb(117 125 138 / var(--tw-bg-opacity))
5046
+ }
5047
+
5048
+ .pagy-gem-version-8-or-more .pagy.nav a:not(.gap).current:active{
5049
+ --tw-text-opacity:1;
5050
+ color:rgb(255 255 255 / var(--tw-text-opacity))
5051
+ }
5052
+
5053
+ .pagy-gem-version-8-or-more .pagy.nav a:not(.gap)[aria-disabled="true"]:not(.current){
5054
+ cursor:default
5055
+ }
5056
+
5057
+ .pagy-gem-version-8-or-more .pagy.nav a:not(.gap)[aria-disabled="true"]:not(.current){
5058
+ --tw-bg-opacity:1;
5059
+ background-color:rgb(227 229 232 / var(--tw-bg-opacity))
5060
+ }
5061
+
5062
+ .pagy-gem-version-8-or-more .pagy.nav a:not(.gap)[aria-disabled="true"]:not(.current){
5063
+ --tw-text-opacity:1;
5064
+ color:rgb(172 177 185 / var(--tw-text-opacity))
5065
+ }
5066
+
4818
5067
  .breadcrumbs{
4819
5068
  position:relative;
4820
5069
  font-size:0.875rem;
@@ -10733,6 +10982,10 @@ trix-editor {
10733
10982
  width:100%
10734
10983
  }
10735
10984
 
10985
+ .has-record-selector .has-record-selector\:ml-0{
10986
+ margin-left:0px
10987
+ }
10988
+
10736
10989
  @media (min-width: 495px){
10737
10990
  .xs\:grid-cols-2{
10738
10991
  grid-template-columns:repeat(2, minmax(0, 1fr))