avo 1.21.1.pre.1 → 1.22.1.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 (39) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +61 -61
  3. data/README.md +1 -1
  4. data/app/assets/builds/avo.css +4 -4
  5. data/app/assets/builds/avo.js +40 -18
  6. data/app/assets/builds/avo.js.map +2 -2
  7. data/app/components/avo/fields/belongs_to_field/autocomplete_component.html.erb +14 -7
  8. data/app/components/avo/fields/belongs_to_field/autocomplete_component.rb +54 -10
  9. data/app/components/avo/fields/belongs_to_field/edit_component.html.erb +31 -8
  10. data/app/components/avo/fields/belongs_to_field/edit_component.rb +37 -0
  11. data/app/components/avo/fields/select_field/edit_component.html.erb +3 -3
  12. data/app/components/avo/navigation_link_component.html.erb +1 -1
  13. data/app/components/avo/navigation_link_component.rb +2 -1
  14. data/app/controllers/avo/application_controller.rb +16 -14
  15. data/app/controllers/avo/base_controller.rb +2 -4
  16. data/app/controllers/avo/relations_controller.rb +1 -4
  17. data/app/javascript/avo.js +1 -0
  18. data/app/javascript/js/controllers/fields/belongs_to_field_controller.js +23 -15
  19. data/app/javascript/js/controllers/fields/date_field_controller.js +10 -2
  20. data/app/javascript/js/controllers/item_selector_controller.js +29 -19
  21. data/app/javascript/js/controllers/search_controller.js +8 -3
  22. data/app/views/avo/partials/_logo.html.erb +3 -1
  23. data/app/views/avo/partials/_turbo_frame_wrap.html.erb +7 -1
  24. data/app/views/avo/relations/new.html.erb +1 -1
  25. data/app/views/avo/sidebar/_sidebar.html.erb +1 -3
  26. data/db/factories.rb +9 -5
  27. data/lib/avo/base_resource.rb +16 -14
  28. data/lib/avo/fields/base_field.rb +7 -4
  29. data/lib/avo/fields/belongs_to_field.rb +92 -11
  30. data/lib/avo/fields/key_value_field.rb +28 -8
  31. data/lib/avo/version.rb +1 -1
  32. data/lib/generators/avo/templates/locales/avo.en.yml +1 -0
  33. data/lib/generators/avo/templates/locales/avo.nb-NO.yml +1 -0
  34. data/lib/generators/avo/templates/locales/avo.pt-BR.yml +1 -0
  35. data/lib/generators/avo/templates/locales/avo.ro.yml +1 -0
  36. data/public/avo-assets/avo.css +4 -4
  37. data/public/avo-assets/avo.js +40 -18
  38. data/public/avo-assets/avo.js.map +2 -2
  39. metadata +2 -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.21.1.pre.1
4
+ version: 1.22.1.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-16 00:00:00.000000000 Z
12
+ date: 2022-02-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails