avo 2.21.1.pre.issue1450 → 2.21.1.pre.pr1484

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 (74) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/app/components/avo/empty_state_component.html.erb +1 -1
  4. data/app/components/avo/empty_state_component.rb +12 -10
  5. data/app/components/avo/fields/belongs_to_field/edit_component.rb +1 -1
  6. data/app/components/avo/fields/boolean_field/edit_component.html.erb +1 -1
  7. data/app/components/avo/fields/boolean_group_field/edit_component.html.erb +1 -1
  8. data/app/components/avo/fields/code_field/edit_component.html.erb +2 -2
  9. data/app/components/avo/fields/country_field/edit_component.html.erb +1 -1
  10. data/app/components/avo/fields/date_field/edit_component.html.erb +2 -2
  11. data/app/components/avo/fields/date_time_field/edit_component.html.erb +2 -2
  12. data/app/components/avo/fields/edit_component.rb +4 -0
  13. data/app/components/avo/fields/external_image_field/edit_component.html.erb +1 -1
  14. data/app/components/avo/fields/file_field/edit_component.html.erb +1 -1
  15. data/app/components/avo/fields/files_field/edit_component.html.erb +1 -1
  16. data/app/components/avo/fields/has_one_field/show_component.html.erb +3 -3
  17. data/app/components/avo/fields/markdown_field/edit_component.html.erb +1 -1
  18. data/app/components/avo/fields/markdown_field/show_component.html.erb +1 -1
  19. data/app/components/avo/fields/number_field/edit_component.html.erb +1 -1
  20. data/app/components/avo/fields/password_field/edit_component.html.erb +1 -1
  21. data/app/components/avo/fields/progress_bar_field/edit_component.html.erb +1 -1
  22. data/app/components/avo/fields/select_field/edit_component.html.erb +1 -1
  23. data/app/components/avo/fields/show_component.rb +4 -0
  24. data/app/components/avo/fields/status_field/edit_component.html.erb +1 -1
  25. data/app/components/avo/fields/tags_field/edit_component.html.erb +2 -2
  26. data/app/components/avo/fields/text_field/edit_component.html.erb +1 -1
  27. data/app/components/avo/fields/textarea_field/edit_component.html.erb +1 -1
  28. data/app/components/avo/fields/time_field/edit_component.html.erb +2 -2
  29. data/app/components/avo/fields/trix_field/edit_component.html.erb +3 -2
  30. data/app/components/avo/fields/trix_field/edit_component.rb +5 -1
  31. data/app/components/avo/index/resource_grid_component.html.erb +1 -1
  32. data/app/components/avo/index/resource_table_component.rb +3 -3
  33. data/app/components/avo/paginator_component.html.erb +1 -5
  34. data/app/components/avo/paginator_component.rb +8 -0
  35. data/app/components/avo/resource_component.rb +17 -2
  36. data/app/components/avo/views/resource_index_component.html.erb +1 -1
  37. data/app/controllers/avo/application_controller.rb +2 -2
  38. data/app/controllers/avo/associations_controller.rb +2 -1
  39. data/app/controllers/avo/attachments_controller.rb +4 -0
  40. data/app/controllers/avo/base_controller.rb +10 -4
  41. data/app/controllers/avo/dashboards/cards_controller.rb +1 -1
  42. data/app/controllers/avo/search_controller.rb +11 -5
  43. data/app/javascript/js/controllers/fields/trix_field_controller.js +18 -4
  44. data/app/javascript/js/controllers/item_select_all_controller.js +7 -4
  45. data/app/views/avo/actions/show.html.erb +1 -1
  46. data/app/views/avo/base/_multiple_select_filter.html.erb +1 -1
  47. data/app/views/avo/partials/_resource_search.html.erb +1 -1
  48. data/config/i18n-tasks.yml +1 -1
  49. data/config/initializers/pagy.rb +16 -0
  50. data/lib/avo/base_action.rb +9 -3
  51. data/lib/avo/base_card.rb +5 -2
  52. data/lib/avo/base_resource.rb +3 -2
  53. data/lib/avo/concerns/handles_field_args.rb +8 -1
  54. data/lib/avo/fields/base_field.rb +2 -1
  55. data/lib/avo/fields/concerns/is_disabled.rb +19 -0
  56. data/lib/avo/filters/base_filter.rb +1 -2
  57. data/lib/avo/hosts/resource_record_host.rb +7 -0
  58. data/lib/avo/hosts/visibility_host.rb +0 -1
  59. data/lib/avo/services/authorization_service.rb +2 -2
  60. data/lib/avo/version.rb +1 -1
  61. data/lib/generators/avo/templates/field/components/edit_component.html.erb.tt +1 -1
  62. data/lib/generators/avo/templates/locales/avo.en.yml +3 -2
  63. data/lib/generators/avo/templates/locales/avo.fr.yml +3 -2
  64. data/lib/generators/avo/templates/locales/avo.nb.yml +3 -2
  65. data/lib/generators/avo/templates/locales/avo.nn.yml +3 -2
  66. data/lib/generators/avo/templates/locales/avo.pt-BR.yml +3 -2
  67. data/lib/generators/avo/templates/locales/avo.pt.yml +120 -0
  68. data/lib/generators/avo/templates/locales/avo.ro.yml +56 -55
  69. data/lib/generators/avo/templates/locales/avo.tr.yml +3 -2
  70. data/lib/generators/avo/templates/locales/pagy/nn.yml +15 -0
  71. data/lib/generators/avo/templates/locales/pagy/ro.yml +17 -0
  72. data/public/avo-assets/avo.base.js +65 -65
  73. data/public/avo-assets/avo.base.js.map +2 -2
  74. metadata +7 -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.21.1.pre.issue1450
4
+ version: 2.21.1.pre.pr1484
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-11-28 00:00:00.000000000 Z
12
+ date: 2022-12-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
@@ -1736,6 +1736,7 @@ files:
1736
1736
  - lib/avo/fields/boolean_group_field.rb
1737
1737
  - lib/avo/fields/code_field.rb
1738
1738
  - lib/avo/fields/concerns/has_default.rb
1739
+ - lib/avo/fields/concerns/is_disabled.rb
1739
1740
  - lib/avo/fields/concerns/is_readonly.rb
1740
1741
  - lib/avo/fields/concerns/is_required.rb
1741
1742
  - lib/avo/fields/country_field.rb
@@ -1783,6 +1784,7 @@ files:
1783
1784
  - lib/avo/hosts/dashboard_visibility.rb
1784
1785
  - lib/avo/hosts/ordering.rb
1785
1786
  - lib/avo/hosts/record_host.rb
1787
+ - lib/avo/hosts/resource_record_host.rb
1786
1788
  - lib/avo/hosts/resource_view_record_host.rb
1787
1789
  - lib/avo/hosts/search_scope_host.rb
1788
1790
  - lib/avo/hosts/view_record_host.rb
@@ -1879,8 +1881,11 @@ files:
1879
1881
  - lib/generators/avo/templates/locales/avo.nb.yml
1880
1882
  - lib/generators/avo/templates/locales/avo.nn.yml
1881
1883
  - lib/generators/avo/templates/locales/avo.pt-BR.yml
1884
+ - lib/generators/avo/templates/locales/avo.pt.yml
1882
1885
  - lib/generators/avo/templates/locales/avo.ro.yml
1883
1886
  - lib/generators/avo/templates/locales/avo.tr.yml
1887
+ - lib/generators/avo/templates/locales/pagy/nn.yml
1888
+ - lib/generators/avo/templates/locales/pagy/ro.yml
1884
1889
  - lib/generators/avo/templates/resource/controller.tt
1885
1890
  - lib/generators/avo/templates/resource/resource.tt
1886
1891
  - lib/generators/avo/templates/resource_tools/partial.tt