avo 1.21.0.pre.1 → 1.22.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 (45) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +3 -1
  3. data/Gemfile.lock +61 -61
  4. data/README.md +1 -1
  5. data/app/assets/svgs/x.svg +3 -0
  6. data/app/components/avo/fields/belongs_to_field/autocomplete_component.html.erb +29 -0
  7. data/app/components/avo/fields/belongs_to_field/autocomplete_component.rb +77 -0
  8. data/app/components/avo/fields/belongs_to_field/edit_component.html.erb +73 -46
  9. data/app/components/avo/fields/belongs_to_field/edit_component.rb +37 -0
  10. data/app/components/avo/navigation_link_component.html.erb +1 -1
  11. data/app/components/avo/navigation_link_component.rb +2 -1
  12. data/app/components/avo/views/resource_index_component.html.erb +1 -1
  13. data/app/controllers/avo/application_controller.rb +16 -14
  14. data/app/controllers/avo/base_controller.rb +1 -4
  15. data/app/controllers/avo/relations_controller.rb +4 -4
  16. data/app/controllers/avo/search_controller.rb +0 -1
  17. data/app/javascript/js/controllers/fields/belongs_to_field_controller.js +96 -33
  18. data/app/javascript/js/controllers/fields/date_field_controller.js +10 -2
  19. data/app/javascript/js/controllers/item_selector_controller.js +29 -19
  20. data/app/javascript/js/controllers/search_controller.js +88 -17
  21. data/app/views/avo/partials/_global_search.html.erb +0 -1
  22. data/app/views/avo/partials/_javascript.html.erb +1 -0
  23. data/app/views/avo/partials/_logo.html.erb +3 -1
  24. data/app/views/avo/partials/_resource_search.html.erb +0 -1
  25. data/app/views/avo/partials/_turbo_frame_wrap.html.erb +7 -1
  26. data/app/views/avo/sidebar/_sidebar.html.erb +1 -3
  27. data/db/factories.rb +11 -3
  28. data/lib/avo/base_resource.rb +16 -14
  29. data/lib/avo/fields/base_field.rb +1 -1
  30. data/lib/avo/fields/belongs_to_field.rb +19 -2
  31. data/lib/avo/fields/files_field.rb +2 -1
  32. data/lib/avo/fields/key_value_field.rb +28 -8
  33. data/lib/avo/licensing/pro_license.rb +2 -1
  34. data/lib/avo/version.rb +1 -1
  35. data/lib/generators/avo/templates/locales/avo.en.yml +2 -0
  36. data/lib/generators/avo/templates/locales/avo.nb-NO.yml +1 -0
  37. data/lib/generators/avo/templates/locales/avo.pt-BR.yml +1 -0
  38. data/lib/generators/avo/templates/locales/avo.ro.yml +1 -0
  39. data/public/avo-assets/avo.css +20 -4
  40. data/public/avo-assets/avo.js +330 -237
  41. data/public/avo-assets/avo.js.map +2 -2
  42. metadata +7 -7
  43. data/app/assets/builds/avo.css +0 -8590
  44. data/app/assets/builds/avo.js +0 -87755
  45. data/app/assets/builds/avo.js.map +0 -7
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.0.pre.1
4
+ version: 1.22.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-11 00:00:00.000000000 Z
12
+ date: 2022-02-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -206,9 +206,6 @@ files:
206
206
  - Gemfile.lock
207
207
  - README.md
208
208
  - Rakefile
209
- - app/assets/builds/avo.css
210
- - app/assets/builds/avo.js
211
- - app/assets/builds/avo.js.map
212
209
  - app/assets/config/avo_manifest.js
213
210
  - app/assets/images/avo/logo.png
214
211
  - app/assets/stylesheets/avo.css
@@ -273,12 +270,15 @@ files:
273
270
  - app/assets/svgs/view-list.svg
274
271
  - app/assets/svgs/x-circle-sm.svg
275
272
  - app/assets/svgs/x-circle.svg
273
+ - app/assets/svgs/x.svg
276
274
  - app/components/avo/edit/field_wrapper_component.html.erb
277
275
  - app/components/avo/edit/field_wrapper_component.rb
278
276
  - app/components/avo/fields/badge_field/index_component.html.erb
279
277
  - app/components/avo/fields/badge_field/index_component.rb
280
278
  - app/components/avo/fields/badge_field/show_component.html.erb
281
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
282
282
  - app/components/avo/fields/belongs_to_field/edit_component.html.erb
283
283
  - app/components/avo/fields/belongs_to_field/edit_component.rb
284
284
  - app/components/avo/fields/belongs_to_field/index_component.html.erb
@@ -710,9 +710,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
710
710
  version: '0'
711
711
  required_rubygems_version: !ruby/object:Gem::Requirement
712
712
  requirements:
713
- - - ">"
713
+ - - ">="
714
714
  - !ruby/object:Gem::Version
715
- version: 1.3.1
715
+ version: '0'
716
716
  requirements: []
717
717
  rubygems_version: 3.3.3
718
718
  signing_key: