avo 3.22.4 → 3.22.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 92ba5820d1bd3a532ab59c9880938a6ef9da86bb55a80b4286318c7c3147e689
4
- data.tar.gz: 3430ce4a68aabc9cb9043d417d541b5d988a59e534eb06ad7fa30c477ab88dcf
3
+ metadata.gz: 5dfcb4af3f2e2fa4791f55eaeadb13ca71a1a7b514cd2895de6199389e85292b
4
+ data.tar.gz: ef3a38acea11bf959afc1533568c74c7b77eebbe1b8b0b6e0118592ad70f0117
5
5
  SHA512:
6
- metadata.gz: 9e5eb36b3db93a466f14c335121751a2f9511f2d39d2072e612569fa4466b25d35098a20d12f29ae7656d7d9d5648126a67f3cf75a5f96f7b4d4eb5d03345230
7
- data.tar.gz: c4a7eb8c986bc9255ac24c254dc5ecdd0fb618e83863b7d7d19468f7f8ee1ee9a9a70bbff65d8547cc060049a5c4fcee919fb1e9fa846fc42e7995ea05562fb2
6
+ metadata.gz: 00c76e27a17c9fbbd8432db7963c29608d384c0713b39c32a073241e445e5d603e0378be5439f580913019f67628be3eb47e9c1de6bf6f46957f5d07904c2b0e
7
+ data.tar.gz: c2c38937f763dfad58c2042f66d45d438c43c4a90a5d397f44c6a0cc45b4be410f1ccd11671394256e3099cef309aa582d85b501a1feacb8a6b61abdf2ea9eff
data/Gemfile CHANGED
@@ -75,7 +75,7 @@ gem "hashid-rails", "~> 1.4", ">= 1.4.1"
75
75
  gem "money-rails", "~> 1.12"
76
76
  gem "pagy", "> 8"
77
77
  gem "csv"
78
- # gem "view_component", "4.0.0"
78
+ gem "view_component", "4.0.0"
79
79
 
80
80
  # =============================================================================
81
81
  # AWS & CLOUD SERVICES
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- avo (3.22.4)
4
+ avo (3.22.5)
5
5
  actionview (>= 6.1)
6
6
  active_link_to
7
7
  activerecord (>= 6.1)
@@ -398,7 +398,6 @@ GEM
398
398
  memory_profiler (1.1.0)
399
399
  meta-tags (2.22.1)
400
400
  actionpack (>= 6.0.0, < 8.1)
401
- method_source (1.1.0)
402
401
  mini_histogram (0.3.1)
403
402
  mini_magick (5.3.0)
404
403
  logger
@@ -684,10 +683,9 @@ GEM
684
683
  unicode-emoji (4.0.4)
685
684
  uri (1.0.3)
686
685
  useragent (0.16.11)
687
- view_component (3.23.2)
688
- activesupport (>= 5.2.0, < 8.1)
686
+ view_component (4.0.0)
687
+ activesupport (>= 7.1.0, < 8.1)
689
688
  concurrent-ruby (~> 1)
690
- method_source (~> 1.0)
691
689
  virtus (2.0.0)
692
690
  axiom-types (~> 0.1)
693
691
  coercible (~> 1.0)
@@ -801,6 +799,7 @@ DEPENDENCIES
801
799
  standard
802
800
  test-prof
803
801
  tzinfo-data
802
+ view_component (= 4.0.0)
804
803
  web-console (>= 3.3.0)
805
804
  webmock
806
805
  zeitwerk
@@ -1,4 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Avo::BlankFieldComponent < Avo::BaseComponent
4
+ # ViewComponent 4.0.0 default initializer does not accept args, so we need to define it since we're calling this with args
5
+ prop :kwargs, kind: :**
4
6
  end
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Avo::Fields::AreaField::ShowComponent < Avo::Fields::ShowComponent
4
+ delegate :area_map, to: :helpers
4
5
  end
@@ -25,7 +25,7 @@
25
25
  class="cursor-not-allowed"
26
26
  <% end %>
27
27
  >
28
- <%= svg "heroicons/outline/plus-circle", class: 'text-gray-400 h-5 hover:text-gray-500' %>
28
+ <%= helpers.svg "heroicons/outline/plus-circle", class: 'text-gray-400 h-5 hover:text-gray-500' %>
29
29
  </a>
30
30
  </div>
31
31
  <% end %>
@@ -8,7 +8,6 @@ module Avo
8
8
  attr_reader :resources
9
9
 
10
10
  def initialize(resources: nil, resource: nil, reflection: nil, parent_record: nil, parent_resource: nil, pagy: nil, query: nil)
11
- super
12
11
  @resources = resources
13
12
  @resource = resource
14
13
  @reflection = reflection
@@ -18,6 +17,8 @@ module Avo
18
17
  @query = query
19
18
  end
20
19
 
20
+ delegate :js_map, to: :helpers
21
+
21
22
  def grid_layout_classes
22
23
  return unless render_table?
23
24
 
@@ -16,7 +16,7 @@
16
16
  <% panel_name_component.with_body do %>
17
17
  <% if @external_link.present? %>
18
18
  <%= link_to @external_link, class: "text-gray-600 hover:text-gray-900 mt-1", title: helpers.t("avo.visit_record_on_external_path"), data: {tippy: :tooltip}, target: :_blank do %>
19
- <%= svg "heroicons/outline/arrow-top-right-on-square", class: "ml-2 text-2xl h-4" %>
19
+ <%= helpers.svg "heroicons/outline/arrow-top-right-on-square", class: "ml-2 text-2xl h-4" %>
20
20
  <% end %>
21
21
  <% end %>
22
22
  <% if @discreet_information.present? %>
@@ -18,7 +18,7 @@
18
18
  <% panel_name_component.with_body do %>
19
19
  <% if reloadable %>
20
20
  <%= button_tag data: { controller: "panel-refresh", action: "click->panel-refresh#refresh" } do %>
21
- <%= svg "heroicons/outline/arrow-path", class: "ml-2 text-2xl h-6 " %>
21
+ <%= helpers.svg "heroicons/outline/arrow-path", class: "ml-2 text-2xl h-6 " %>
22
22
  <% end %>
23
23
  <% end %>
24
24
  <% end %>
data/lib/avo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Avo
2
- VERSION = "3.22.4" unless const_defined?(:VERSION)
2
+ VERSION = "3.22.5" 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.22.4
4
+ version: 3.22.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Marin