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
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.19.1.pre.10
4
+ version: 1.20.2.pre.2
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
@@ -273,12 +273,15 @@ files:
273
273
  - app/assets/svgs/view-list.svg
274
274
  - app/assets/svgs/x-circle-sm.svg
275
275
  - app/assets/svgs/x-circle.svg
276
+ - app/assets/svgs/x.svg
276
277
  - app/components/avo/edit/field_wrapper_component.html.erb
277
278
  - app/components/avo/edit/field_wrapper_component.rb
278
279
  - app/components/avo/fields/badge_field/index_component.html.erb
279
280
  - app/components/avo/fields/badge_field/index_component.rb
280
281
  - app/components/avo/fields/badge_field/show_component.html.erb
281
282
  - app/components/avo/fields/badge_field/show_component.rb
283
+ - app/components/avo/fields/belongs_to_field/autocomplete_component.html.erb
284
+ - app/components/avo/fields/belongs_to_field/autocomplete_component.rb
282
285
  - app/components/avo/fields/belongs_to_field/edit_component.html.erb
283
286
  - app/components/avo/fields/belongs_to_field/edit_component.rb
284
287
  - app/components/avo/fields/belongs_to_field/index_component.html.erb