avo 1.20.1 → 1.21.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 (36) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +3 -1
  3. data/Gemfile.lock +5 -3
  4. data/app/assets/svgs/x.svg +3 -0
  5. data/app/components/avo/fields/belongs_to_field/autocomplete_component.html.erb +22 -0
  6. data/app/components/avo/fields/belongs_to_field/autocomplete_component.rb +33 -0
  7. data/app/components/avo/fields/belongs_to_field/edit_component.html.erb +39 -33
  8. data/app/components/avo/fields/common/files_list_viewer_component.html.erb +1 -1
  9. data/app/components/avo/fields/common/multiple_file_viewer_component.html.erb +2 -0
  10. data/app/components/avo/fields/common/multiple_file_viewer_component.rb +2 -1
  11. data/app/components/avo/fields/common/single_file_viewer_component.html.erb +2 -0
  12. data/app/components/avo/fields/common/single_file_viewer_component.rb +2 -1
  13. data/app/components/avo/fields/file_field/edit_component.html.erb +1 -1
  14. data/app/components/avo/fields/file_field/index_component.html.erb +3 -1
  15. data/app/components/avo/fields/file_field/show_component.html.erb +1 -1
  16. data/app/components/avo/resource_component.rb +1 -0
  17. data/app/components/avo/views/resource_index_component.html.erb +1 -1
  18. data/app/controllers/avo/relations_controller.rb +4 -4
  19. data/app/controllers/avo/search_controller.rb +0 -1
  20. data/app/javascript/js/controllers/fields/belongs_to_field_controller.js +96 -33
  21. data/app/javascript/js/controllers/search_controller.js +83 -17
  22. data/app/views/avo/partials/_global_search.html.erb +0 -1
  23. data/app/views/avo/partials/_javascript.html.erb +1 -0
  24. data/app/views/avo/partials/_resource_search.html.erb +0 -1
  25. data/db/factories.rb +4 -0
  26. data/lib/avo/fields/base_field.rb +1 -1
  27. data/lib/avo/fields/belongs_to_field.rb +19 -2
  28. data/lib/avo/fields/file_field.rb +2 -0
  29. data/lib/avo/fields/files_field.rb +2 -0
  30. data/lib/avo/licensing/pro_license.rb +2 -1
  31. data/lib/avo/version.rb +1 -1
  32. data/lib/generators/avo/templates/locales/avo.en.yml +1 -0
  33. data/public/avo-assets/avo.css +16 -0
  34. data/public/avo-assets/avo.js +317 -234
  35. data/public/avo-assets/avo.js.map +2 -2
  36. metadata +5 -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: 1.20.1
4
+ version: 1.21.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-02-07 00:00:00.000000000 Z
12
+ date: 2022-02-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -270,12 +270,15 @@ files:
270
270
  - app/assets/svgs/view-list.svg
271
271
  - app/assets/svgs/x-circle-sm.svg
272
272
  - app/assets/svgs/x-circle.svg
273
+ - app/assets/svgs/x.svg
273
274
  - app/components/avo/edit/field_wrapper_component.html.erb
274
275
  - app/components/avo/edit/field_wrapper_component.rb
275
276
  - app/components/avo/fields/badge_field/index_component.html.erb
276
277
  - app/components/avo/fields/badge_field/index_component.rb
277
278
  - app/components/avo/fields/badge_field/show_component.html.erb
278
279
  - app/components/avo/fields/badge_field/show_component.rb
280
+ - app/components/avo/fields/belongs_to_field/autocomplete_component.html.erb
281
+ - app/components/avo/fields/belongs_to_field/autocomplete_component.rb
279
282
  - app/components/avo/fields/belongs_to_field/edit_component.html.erb
280
283
  - app/components/avo/fields/belongs_to_field/edit_component.rb
281
284
  - app/components/avo/fields/belongs_to_field/index_component.html.erb