avo 1.20.1 → 1.20.2.pre.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of avo might be problematic. Click here for more details.

Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +3 -1
  3. data/Gemfile.lock +7 -3
  4. data/app/assets/builds/avo.css +8606 -0
  5. data/app/assets/builds/avo.js +87838 -0
  6. data/app/assets/builds/avo.js.map +7 -0
  7. data/app/assets/svgs/x.svg +3 -0
  8. data/app/components/avo/fields/belongs_to_field/autocomplete_component.html.erb +22 -0
  9. data/app/components/avo/fields/belongs_to_field/autocomplete_component.rb +33 -0
  10. data/app/components/avo/fields/belongs_to_field/edit_component.html.erb +39 -33
  11. data/app/components/avo/fields/common/files_list_viewer_component.html.erb +1 -1
  12. data/app/components/avo/fields/common/multiple_file_viewer_component.html.erb +2 -0
  13. data/app/components/avo/fields/common/multiple_file_viewer_component.rb +2 -1
  14. data/app/components/avo/fields/common/single_file_viewer_component.html.erb +2 -0
  15. data/app/components/avo/fields/common/single_file_viewer_component.rb +2 -1
  16. data/app/components/avo/fields/file_field/edit_component.html.erb +1 -1
  17. data/app/components/avo/fields/file_field/index_component.html.erb +3 -1
  18. data/app/components/avo/fields/file_field/show_component.html.erb +1 -1
  19. data/app/components/avo/resource_component.rb +1 -0
  20. data/app/components/avo/views/resource_index_component.html.erb +1 -1
  21. data/app/controllers/avo/base_controller.rb +1 -2
  22. data/app/controllers/avo/relations_controller.rb +4 -4
  23. data/app/controllers/avo/search_controller.rb +0 -1
  24. data/app/javascript/js/controllers/fields/belongs_to_field_controller.js +96 -33
  25. data/app/javascript/js/controllers/search_controller.js +83 -17
  26. data/app/views/avo/partials/_global_search.html.erb +0 -1
  27. data/app/views/avo/partials/_javascript.html.erb +1 -0
  28. data/app/views/avo/partials/_resource_search.html.erb +0 -1
  29. data/db/factories.rb +4 -0
  30. data/lib/avo/fields/base_field.rb +1 -1
  31. data/lib/avo/fields/belongs_to_field.rb +19 -2
  32. data/lib/avo/fields/file_field.rb +2 -0
  33. data/lib/avo/fields/files_field.rb +2 -0
  34. data/lib/avo/fields/key_value_field.rb +4 -4
  35. data/lib/avo/licensing/pro_license.rb +2 -1
  36. data/lib/avo/version.rb +1 -1
  37. data/lib/generators/avo/templates/locales/avo.en.yml +1 -0
  38. data/public/avo-assets/avo.css +16 -0
  39. data/public/avo-assets/avo.js +317 -234
  40. data/public/avo-assets/avo.js.map +2 -2
  41. metadata +10 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e21fad20822df8f410cc1a6eca03d840949a4acd6bee9e47ea320927fa9c253d
4
- data.tar.gz: 61dc6595933b686526948f1ec9f7b37dfaad833f85928609d6bc296f9d6eb694
3
+ metadata.gz: 1637660ec39f73cf35fe0078d721b17ab5a2aded94fdbf633ce3b63c326c55a0
4
+ data.tar.gz: c990f246d271819abe2f098ecea83bb6b367cad93e6fc0cc0994d54c08e8dc64
5
5
  SHA512:
6
- metadata.gz: 04c07e302dc1cd1ab911edeed99543ab93dd7b8f29ddf460dd42a85e828412b07f3a5f9fd113eeb520185f712b5586f2be89b2cc58271fe3762b26acc7cb3c73
7
- data.tar.gz: '09968da7c74ed31cd98d3fe99ef64578bc26466b30db7d10a087ecc63424e42af2809f20c68df228637c4c54acd80e4144d35e64cb21df5d96833e14894c34f2'
6
+ metadata.gz: 18fb3a1ee203bc93a1863e8138c3a7f7fac5faf4775e92fc7208fce652b1420e8efe9df28482ac30626b2095ebb4981aafaa9d8153fee6a1b5b09a0e30c8eb84
7
+ data.tar.gz: b74310670a84f49c7ba06847e018c9c41542f08376e95650126b74818aeb3fd73acf151647450ba69676e876e517a2a88986ae4d12b2336f027353f4841f7ba8
data/Gemfile CHANGED
@@ -30,7 +30,7 @@ gem "rails", "~> 6.1.0"
30
30
  # Use postgresql as the database for Active Record
31
31
  gem "pg", ">= 0.18", "< 2.0"
32
32
  # Use Puma as the app server
33
- gem "puma", "~> 5.5.1"
33
+ gem "puma", "~> 5.6.2"
34
34
  # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
35
35
  # gem "jbuilder", "~> 2.7"
36
36
  # Use Redis adapter to run Action Cable in production
@@ -77,6 +77,8 @@ group :development do
77
77
  # gem 'ruby-prof'
78
78
 
79
79
  # gem 'pry-rails'
80
+
81
+ gem 'htmlbeautifier'
80
82
  end
81
83
 
82
84
  group :development, :test do
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- avo (1.20.1)
4
+ avo (1.20.2.pre.1)
5
5
  active_link_to
6
6
  addressable
7
7
  breadcrumbs_on_rails
@@ -175,6 +175,7 @@ GEM
175
175
  rails (>= 6.0.0)
176
176
  stimulus-rails
177
177
  turbo-rails
178
+ htmlbeautifier (1.4.1)
178
179
  httparty (0.20.0)
179
180
  mime-types (~> 3.0)
180
181
  multi_xml (>= 0.5.2)
@@ -229,6 +230,8 @@ GEM
229
230
  nokogiri (1.13.1)
230
231
  mini_portile2 (~> 2.7.0)
231
232
  racc (~> 1.4)
233
+ nokogiri (1.13.1-x86_64-linux)
234
+ racc (~> 1.4)
232
235
  orm_adapter (0.5.0)
233
236
  pagy (5.10.1)
234
237
  activesupport
@@ -237,7 +240,7 @@ GEM
237
240
  ast (~> 2.4.1)
238
241
  pg (1.3.1)
239
242
  public_suffix (4.0.6)
240
- puma (5.5.2)
243
+ puma (5.6.2)
241
244
  nio4r (~> 2.0)
242
245
  pundit (2.1.1)
243
246
  activesupport (>= 3.0.0)
@@ -417,6 +420,7 @@ DEPENDENCIES
417
420
  fuubar
418
421
  gem-release
419
422
  hotwire-rails
423
+ htmlbeautifier
420
424
  httparty
421
425
  image_processing (~> 1.2)
422
426
  iso
@@ -427,7 +431,7 @@ DEPENDENCIES
427
431
  meta-tags
428
432
  net-smtp
429
433
  pg (>= 0.18, < 2.0)
430
- puma (~> 5.5.1)
434
+ puma (~> 5.6.2)
431
435
  pundit
432
436
  rails (~> 6.1.0)
433
437
  rails-controller-testing