avo 1.19.1.pre.10 → 1.20.2.pre.2

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 (45) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +3 -1
  3. data/Gemfile.lock +5 -3
  4. data/app/assets/builds/avo.css +16 -0
  5. data/app/assets/builds/avo.js +317 -234
  6. data/app/assets/builds/avo.js.map +2 -2
  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_edit_component.html.erb +5 -2
  21. data/app/components/avo/views/resource_index_component.html.erb +3 -3
  22. data/app/components/avo/views/resource_index_component.rb +8 -0
  23. data/app/components/avo/views/resource_new_component.html.erb +8 -1
  24. data/app/controllers/avo/application_controller.rb +11 -14
  25. data/app/controllers/avo/base_controller.rb +1 -5
  26. data/app/controllers/avo/relations_controller.rb +4 -4
  27. data/app/controllers/avo/search_controller.rb +0 -1
  28. data/app/javascript/js/controllers/fields/belongs_to_field_controller.js +96 -33
  29. data/app/javascript/js/controllers/search_controller.js +83 -17
  30. data/app/views/avo/partials/_global_search.html.erb +0 -1
  31. data/app/views/avo/partials/_javascript.html.erb +1 -0
  32. data/app/views/avo/partials/_resource_search.html.erb +0 -1
  33. data/db/factories.rb +12 -0
  34. data/lib/avo/fields/base_field.rb +1 -1
  35. data/lib/avo/fields/belongs_to_field.rb +19 -2
  36. data/lib/avo/fields/file_field.rb +2 -0
  37. data/lib/avo/fields/files_field.rb +2 -0
  38. data/lib/avo/licensing/pro_license.rb +2 -1
  39. data/lib/avo/services/authorization_service.rb +3 -0
  40. data/lib/avo/version.rb +1 -1
  41. data/lib/generators/avo/templates/locales/avo.en.yml +1 -0
  42. data/public/avo-assets/avo.css +16 -0
  43. data/public/avo-assets/avo.js +317 -234
  44. data/public/avo-assets/avo.js.map +2 -2
  45. metadata +5 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1618da266ed143055270d6efe40cbc1672b074977668186ba979dd062e28c296
4
- data.tar.gz: 03600d5cf52bc8cba85970ce6f7c7dceeba01747c17fff374a22ed4137048fc1
3
+ metadata.gz: a674dcf4fc813cc44eb1338ee81a79cf18f4e32fa43c3043fd9b379e90e0287d
4
+ data.tar.gz: aa4d972f61fc521cbd3aba2c1130f2d5488c542f6b96f55e125a45cd678790d4
5
5
  SHA512:
6
- metadata.gz: 80856cc4b3c4e164570d5209140e09bfb617c90db0500652b577500a3ed675a96ec14b4944b5e4339849820860fe9f100a971fe414205352e8a37a7983b51bae
7
- data.tar.gz: 3bc19b1c7feb5e06e485648c8ea30f46ddce97ff591c71c69ca0bfef7ac73b384001d202022f5004437a1cffa2c17ec94167160c5136c8e99d977e02df5ef601
6
+ metadata.gz: 15c38ab033891c33e2051f002f6aba6646b775f760e8e1457db83c5eb3abd95c37f75ec6a3352d6cda8f4d660c765f480ae9c33b65634c320d551a06b5bd8084
7
+ data.tar.gz: 3279dad375d248984016e9cc91c55d8c8338d1404ee0e89177df15d2d8e782147a2e7c29e3a41b79a3a84afcf87cb08a255c2084f048819c535e833b20c60ec7
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.19.1.pre.10)
4
+ avo (1.20.2.pre.2)
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)
@@ -239,7 +240,7 @@ GEM
239
240
  ast (~> 2.4.1)
240
241
  pg (1.3.1)
241
242
  public_suffix (4.0.6)
242
- puma (5.5.2)
243
+ puma (5.6.2)
243
244
  nio4r (~> 2.0)
244
245
  pundit (2.1.1)
245
246
  activesupport (>= 3.0.0)
@@ -419,6 +420,7 @@ DEPENDENCIES
419
420
  fuubar
420
421
  gem-release
421
422
  hotwire-rails
423
+ htmlbeautifier
422
424
  httparty
423
425
  image_processing (~> 1.2)
424
426
  iso
@@ -429,7 +431,7 @@ DEPENDENCIES
429
431
  meta-tags
430
432
  net-smtp
431
433
  pg (>= 0.18, < 2.0)
432
- puma (~> 5.5.1)
434
+ puma (~> 5.6.2)
433
435
  pundit
434
436
  rails (~> 6.1.0)
435
437
  rails-controller-testing
@@ -6402,6 +6402,14 @@ progress[value]::-moz-progress-bar{
6402
6402
  top:-1px
6403
6403
  }
6404
6404
 
6405
+ .left-auto{
6406
+ left:auto
6407
+ }
6408
+
6409
+ .right-3{
6410
+ right:0.75rem
6411
+ }
6412
+
6405
6413
  .z-10{
6406
6414
  z-index:10
6407
6415
  }
@@ -6571,6 +6579,14 @@ progress[value]::-moz-progress-bar{
6571
6579
  margin-left:0.5rem
6572
6580
  }
6573
6581
 
6582
+ .mr-px{
6583
+ margin-right:1px
6584
+ }
6585
+
6586
+ .-mt-2{
6587
+ margin-top:-0.5rem
6588
+ }
6589
+
6574
6590
  .ml-6{
6575
6591
  margin-left:1.5rem
6576
6592
  }