avo 2.4.1 → 2.5.0

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.lock +1 -1
  3. data/app/components/avo/edit/field_wrapper_component.html.erb +2 -2
  4. data/app/components/avo/edit/field_wrapper_component.rb +6 -1
  5. data/app/components/avo/fields/belongs_to_field/autocomplete_component.html.erb +3 -0
  6. data/app/components/avo/fields/belongs_to_field/autocomplete_component.rb +4 -0
  7. data/app/components/avo/fields/belongs_to_field/edit_component.html.erb +26 -27
  8. data/app/components/avo/filters_component.html.erb +3 -3
  9. data/app/components/avo/filters_component.rb +2 -1
  10. data/app/components/avo/paginator_component.html.erb +3 -3
  11. data/app/components/avo/paginator_component.rb +3 -3
  12. data/app/components/avo/views/resource_index_component.html.erb +3 -3
  13. data/app/components/avo/views/resource_index_component.rb +10 -3
  14. data/app/controllers/avo/associations_controller.rb +6 -1
  15. data/app/controllers/avo/base_controller.rb +24 -1
  16. data/app/controllers/avo/search_controller.rb +22 -1
  17. data/app/helpers/avo/url_helpers.rb +3 -3
  18. data/app/javascript/js/controllers/filter_controller.js +9 -0
  19. data/app/javascript/js/controllers/search_controller.js +9 -2
  20. data/app/views/avo/base/_boolean_filter.html.erb +23 -15
  21. data/app/views/avo/base/_multiple_select_filter.html.erb +5 -1
  22. data/app/views/avo/base/_select_filter.html.erb +5 -1
  23. data/app/views/avo/base/_text_filter.html.erb +5 -1
  24. data/app/views/avo/base/index.html.erb +1 -0
  25. data/app/views/avo/partials/_sidebar_extra.html.erb +2 -0
  26. data/db/factories.rb +5 -3
  27. data/lib/avo/base_resource.rb +1 -0
  28. data/lib/avo/fields/belongs_to_field.rb +11 -1
  29. data/lib/avo/fields/has_base_field.rb +2 -0
  30. data/lib/avo/filters/base_filter.rb +18 -0
  31. data/lib/avo/hosts/association_scope_host.rb +8 -0
  32. data/lib/avo/services/authorization_service.rb +8 -10
  33. data/lib/avo/version.rb +1 -1
  34. data/lib/generators/avo/eject_generator.rb +2 -3
  35. data/lib/generators/avo/templates/locales/avo.en.yml +2 -1
  36. data/lib/generators/avo/templates/locales/avo.nb-NO.yml +2 -1
  37. data/lib/generators/avo/templates/locales/avo.pt-BR.yml +2 -1
  38. data/lib/generators/avo/templates/locales/avo.ro.yml +2 -1
  39. data/public/avo-assets/avo.js +22 -22
  40. data/public/avo-assets/avo.js.map +2 -2
  41. metadata +3 -2
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: 2.4.1
4
+ version: 2.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Marin
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-04-27 00:00:00.000000000 Z
12
+ date: 2022-05-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -1203,6 +1203,7 @@ files:
1203
1203
  - lib/avo/grid_fields/preview_field.rb
1204
1204
  - lib/avo/grid_fields/title_field.rb
1205
1205
  - lib/avo/has_context.rb
1206
+ - lib/avo/hosts/association_scope_host.rb
1206
1207
  - lib/avo/hosts/base_host.rb
1207
1208
  - lib/avo/hosts/dashboard_card.rb
1208
1209
  - lib/avo/hosts/dashboard_visibility.rb