avo 2.13.6.pre.2 → 2.14.1

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 (49) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -3
  3. data/README.md +7 -11
  4. data/app/components/avo/button_component.rb +1 -1
  5. data/app/components/avo/fields/common/progress_bar_component.html.erb +8 -0
  6. data/app/components/avo/fields/common/progress_bar_component.rb +15 -0
  7. data/app/components/avo/fields/common/single_file_viewer_component.html.erb +1 -2
  8. data/app/components/avo/fields/common/single_file_viewer_component.rb +12 -0
  9. data/app/components/avo/fields/progress_bar_field/index_component.html.erb +1 -6
  10. data/app/components/avo/fields/progress_bar_field/show_component.html.erb +1 -6
  11. data/app/components/avo/filters_component.html.erb +1 -1
  12. data/app/components/avo/filters_component.rb +11 -1
  13. data/app/components/avo/index/resource_table_component.html.erb +37 -2
  14. data/app/components/avo/index/resource_table_component.rb +15 -1
  15. data/app/components/avo/item_switcher_component.rb +1 -1
  16. data/app/components/avo/tab_group_component.html.erb +4 -4
  17. data/app/components/avo/tab_group_component.rb +7 -1
  18. data/app/components/avo/tab_switcher_component.html.erb +28 -8
  19. data/app/components/avo/tab_switcher_component.rb +3 -1
  20. data/app/components/avo/views/resource_index_component.html.erb +3 -6
  21. data/app/components/avo/views/resource_index_component.rb +3 -2
  22. data/app/controllers/avo/actions_controller.rb +17 -4
  23. data/app/helpers/avo/resources_helper.rb +1 -1
  24. data/app/javascript/js/controllers/action_controller.js +11 -2
  25. data/app/javascript/js/controllers/item_select_all_controller.js +42 -4
  26. data/app/javascript/js/controllers/tabs_controller.js +13 -9
  27. data/app/views/avo/actions/show.html.erb +2 -1
  28. data/app/views/avo/base/index.html.erb +1 -0
  29. data/app/views/avo/partials/_table_header.html.erb +1 -1
  30. data/app/views/avo/partials/_view_toggle_button.html.erb +2 -2
  31. data/lib/avo/concerns/has_fields.rb +2 -2
  32. data/lib/avo/configuration.rb +2 -0
  33. data/lib/avo/fields/base_field.rb +1 -1
  34. data/lib/avo/fields/concerns/is_required.rb +15 -1
  35. data/lib/avo/services/encryption_service.rb +47 -0
  36. data/lib/avo/tab_group.rb +3 -1
  37. data/lib/avo/tab_group_builder.rb +4 -4
  38. data/lib/avo/version.rb +1 -1
  39. data/lib/generators/avo/templates/initializer/avo.tt +1 -0
  40. data/lib/generators/avo/templates/locales/avo.en.yml +5 -1
  41. data/lib/generators/avo/templates/locales/avo.fr.yml +4 -0
  42. data/lib/generators/avo/templates/locales/avo.nb-NO.yml +5 -0
  43. data/lib/generators/avo/templates/locales/avo.pt-BR.yml +5 -0
  44. data/lib/generators/avo/templates/locales/avo.ro.yml +6 -0
  45. data/public/avo-assets/avo.css +44 -4
  46. data/public/avo-assets/avo.js +43 -43
  47. data/public/avo-assets/avo.js.map +2 -2
  48. metadata +7 -5
  49. data/app/views/avo/partials/_tabs_toggle.html.erb +0 -20
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.13.6.pre.2
4
+ version: 2.14.1
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-08-26 00:00:00.000000000 Z
12
+ date: 2022-08-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -1438,6 +1438,8 @@ files:
1438
1438
  - app/components/avo/fields/common/heading_component.rb
1439
1439
  - app/components/avo/fields/common/key_value_component.html.erb
1440
1440
  - app/components/avo/fields/common/key_value_component.rb
1441
+ - app/components/avo/fields/common/progress_bar_component.html.erb
1442
+ - app/components/avo/fields/common/progress_bar_component.rb
1441
1443
  - app/components/avo/fields/common/single_file_viewer_component.html.erb
1442
1444
  - app/components/avo/fields/common/single_file_viewer_component.rb
1443
1445
  - app/components/avo/fields/common/status_viewer_component.html.erb
@@ -1723,7 +1725,6 @@ files:
1723
1725
  - app/views/avo/partials/_sidebar_extra.html.erb
1724
1726
  - app/views/avo/partials/_sortable_component.html.erb
1725
1727
  - app/views/avo/partials/_table_header.html.erb
1726
- - app/views/avo/partials/_tabs_toggle.html.erb
1727
1728
  - app/views/avo/partials/_view_toggle_button.html.erb
1728
1729
  - app/views/avo/private/_links_and_buttons.html.erb
1729
1730
  - app/views/avo/private/design.html.erb
@@ -1865,6 +1866,7 @@ files:
1865
1866
  - lib/avo/resources/controls/items_holder.rb
1866
1867
  - lib/avo/resources/controls/link_to.rb
1867
1868
  - lib/avo/services/authorization_service.rb
1869
+ - lib/avo/services/encryption_service.rb
1868
1870
  - lib/avo/services/uri_service.rb
1869
1871
  - lib/avo/svg_finder.rb
1870
1872
  - lib/avo/tab.rb
@@ -1971,9 +1973,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
1971
1973
  version: 2.4.0
1972
1974
  required_rubygems_version: !ruby/object:Gem::Requirement
1973
1975
  requirements:
1974
- - - ">"
1976
+ - - ">="
1975
1977
  - !ruby/object:Gem::Version
1976
- version: 1.3.1
1978
+ version: '0'
1977
1979
  requirements: []
1978
1980
  rubygems_version: 3.3.3
1979
1981
  signing_key:
@@ -1,20 +0,0 @@
1
- <div class="flex">
2
- <div class="button-group">
3
- <% tabs.each do |tab| %>
4
- <% is_active_view = tab.name.to_s == active_tab_name.to_s %>
5
- <%= a_link resource_path(resource: @resource, model: @resource.model, keep_query_params: true, active_tab_name: tab.name, tab_turbo_frame: group.turbo_frame_id),
6
- color: is_active_view ? :gray : :primary,
7
- rounded: false,
8
- size: :sm,
9
- class: is_active_view ? ' bg-gray-100 border-gray-300' : ' z-20',
10
- title: tab.description || tab.name,
11
- data: {
12
- tippy: 'tooltip',
13
- 'turbo-frame': group.turbo_frame_id,
14
- control: "view-type-toggle-#{tab}"
15
- } do %>
16
- <%= tab.name %>
17
- <% end %>
18
- <% end %>
19
- </div>
20
- </div>