avo 2.13.1 → 2.13.2.pre.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 (66) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +3 -1
  3. data/app/assets/stylesheets/avo.css +1 -1
  4. data/app/assets/stylesheets/css/fields/progress.css +3 -3
  5. data/app/assets/stylesheets/css/pagination.css +0 -4
  6. data/app/assets/stylesheets/css/search.css +1 -1
  7. data/app/assets/stylesheets/css/sidebar.css +1 -1
  8. data/app/assets/stylesheets/css/tags.css +7 -0
  9. data/app/assets/svgs/failed_to_load.svg +4 -5
  10. data/app/assets/svgs/grid-empty-state.svg +10 -11
  11. data/app/assets/svgs/table-empty-state.svg +11 -12
  12. data/app/components/avo/actions_component.html.erb +2 -2
  13. data/app/components/avo/actions_component.rb +1 -1
  14. data/app/components/avo/button_component.rb +3 -3
  15. data/app/components/avo/fields/boolean_field/edit_component.html.erb +1 -1
  16. data/app/components/avo/fields/progress_bar_field/index_component.html.erb +1 -1
  17. data/app/components/avo/fields/progress_bar_field/show_component.html.erb +1 -1
  18. data/app/components/avo/fields/tags_field/edit_component.html.erb +1 -1
  19. data/app/components/avo/fields/tags_field/show_component.rb +2 -0
  20. data/app/components/avo/profile_item_component.html.erb +1 -1
  21. data/app/components/avo/tab_group_component.html.erb +1 -1
  22. data/app/components/avo/tab_switcher_component.rb +2 -2
  23. data/app/components/avo/views/resource_edit_component.rb +1 -1
  24. data/app/components/avo/views/resource_index_component.html.erb +2 -2
  25. data/app/components/avo/views/resource_index_component.rb +0 -17
  26. data/app/components/avo/views/resource_show_component.html.erb +1 -2
  27. data/app/controllers/avo/base_controller.rb +33 -87
  28. data/app/controllers/avo/search_controller.rb +20 -57
  29. data/app/helpers/avo/resources_helper.rb +2 -2
  30. data/app/javascript/avo.js +0 -1
  31. data/app/javascript/js/controllers/fields/trix_field_controller.js +4 -3
  32. data/app/javascript/js/controllers/item_selector_controller.js +1 -1
  33. data/app/javascript/js/controllers/menu_controller.js +2 -2
  34. data/app/javascript/js/controllers/search_controller.js +15 -42
  35. data/app/views/avo/associations/new.html.erb +2 -3
  36. data/app/views/avo/base/_multiple_select_filter.html.erb +1 -1
  37. data/app/views/avo/base/_text_filter.html.erb +1 -1
  38. data/app/views/avo/partials/_branding.html.erb +5 -0
  39. data/app/views/avo/partials/_header.html.erb +1 -1
  40. data/app/views/avo/partials/_logo.html.erb +2 -2
  41. data/app/views/avo/partials/_resource_search.html.erb +0 -6
  42. data/app/views/avo/private/_links_and_buttons.html.erb +1 -1
  43. data/app/views/avo/private/design.html.erb +3 -3
  44. data/app/views/layouts/avo/application.html.erb +1 -0
  45. data/lib/avo/concerns/has_editable_controls.rb +1 -1
  46. data/lib/avo/configuration/branding.rb +57 -0
  47. data/lib/avo/configuration.rb +5 -0
  48. data/lib/avo/fields/base_field.rb +1 -1
  49. data/lib/avo/fields/has_base_field.rb +0 -2
  50. data/lib/avo/licensing/pro_license.rb +1 -0
  51. data/lib/avo/version.rb +1 -1
  52. data/lib/generators/avo/templates/initializer/avo.tt +13 -0
  53. data/lib/generators/avo/templates/resource/resource.tt +1 -1
  54. data/public/avo-assets/avo.css +286 -248
  55. data/public/avo-assets/avo.js +47 -47
  56. data/public/avo-assets/avo.js.map +2 -2
  57. metadata +6 -13
  58. data/app/components/avo/button_component.html.erb +0 -1
  59. data/app/helpers/avo/actions_helper.rb +0 -4
  60. data/app/helpers/avo/attachments_helper.rb +0 -4
  61. data/app/views/kaminari/_first_page.html.erb +0 -3
  62. data/app/views/kaminari/_last_page.html.erb +0 -3
  63. data/app/views/kaminari/_next_page.html.erb +0 -9
  64. data/app/views/kaminari/_page.html.erb +0 -12
  65. data/app/views/kaminari/_prev_page.html.erb +0 -9
  66. data/lib/avo/hosts/search_scope_host.rb +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: 2.13.1
4
+ version: 2.13.2.pre.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-19 00:00:00.000000000 Z
12
+ date: 2022-08-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -801,7 +801,6 @@ files:
801
801
  - app/components/avo/base_component.rb
802
802
  - app/components/avo/blank_field_component.html.erb
803
803
  - app/components/avo/blank_field_component.rb
804
- - app/components/avo/button_component.html.erb
805
804
  - app/components/avo/button_component.rb
806
805
  - app/components/avo/card_component.html.erb
807
806
  - app/components/avo/card_component.rb
@@ -1057,9 +1056,7 @@ files:
1057
1056
  - app/controllers/avo/reorder_controller.rb
1058
1057
  - app/controllers/avo/resources_controller.rb
1059
1058
  - app/controllers/avo/search_controller.rb
1060
- - app/helpers/avo/actions_helper.rb
1061
1059
  - app/helpers/avo/application_helper.rb
1062
- - app/helpers/avo/attachments_helper.rb
1063
1060
  - app/helpers/avo/resources_helper.rb
1064
1061
  - app/helpers/avo/url_helpers.rb
1065
1062
  - app/javascript/avo.js
@@ -1127,6 +1124,7 @@ files:
1127
1124
  - app/views/avo/home/failed_to_load.html copy.erb
1128
1125
  - app/views/avo/home/failed_to_load.html.erb
1129
1126
  - app/views/avo/home/index.html.erb
1127
+ - app/views/avo/partials/_branding.html.erb
1130
1128
  - app/views/avo/partials/_custom_tools_alert.html.erb
1131
1129
  - app/views/avo/partials/_footer.html.erb
1132
1130
  - app/views/avo/partials/_global_search.html.erb
@@ -1146,11 +1144,6 @@ files:
1146
1144
  - app/views/avo/private/design.html.erb
1147
1145
  - app/views/avo/sidebar/_license_warning.html.erb
1148
1146
  - app/views/avo/sidebar/_license_warnings.html.erb
1149
- - app/views/kaminari/_first_page.html.erb
1150
- - app/views/kaminari/_last_page.html.erb
1151
- - app/views/kaminari/_next_page.html.erb
1152
- - app/views/kaminari/_page.html.erb
1153
- - app/views/kaminari/_prev_page.html.erb
1154
1147
  - app/views/layouts/avo/_filter_wrapper.html.erb
1155
1148
  - app/views/layouts/avo/application.html.erb
1156
1149
  - avo.gemspec
@@ -1183,6 +1176,7 @@ files:
1183
1176
  - lib/avo/concerns/is_resource_item.rb
1184
1177
  - lib/avo/concerns/model_class_constantized.rb
1185
1178
  - lib/avo/configuration.rb
1179
+ - lib/avo/configuration/branding.rb
1186
1180
  - lib/avo/configuration/resource_configuration.rb
1187
1181
  - lib/avo/dashboards/base_dashboard.rb
1188
1182
  - lib/avo/dashboards/base_divider.rb
@@ -1244,7 +1238,6 @@ files:
1244
1238
  - lib/avo/hosts/dashboard_visibility.rb
1245
1239
  - lib/avo/hosts/ordering.rb
1246
1240
  - lib/avo/hosts/record_host.rb
1247
- - lib/avo/hosts/search_scope_host.rb
1248
1241
  - lib/avo/hosts/view_record_host.rb
1249
1242
  - lib/avo/html/builder.rb
1250
1243
  - lib/avo/items_holder.rb
@@ -1386,9 +1379,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
1386
1379
  version: 2.4.0
1387
1380
  required_rubygems_version: !ruby/object:Gem::Requirement
1388
1381
  requirements:
1389
- - - ">="
1382
+ - - ">"
1390
1383
  - !ruby/object:Gem::Version
1391
- version: '0'
1384
+ version: 1.3.1
1392
1385
  requirements: []
1393
1386
  rubygems_version: 3.3.3
1394
1387
  signing_key:
@@ -1 +0,0 @@
1
- <%= output %>
@@ -1,4 +0,0 @@
1
- module Avo
2
- module ActionsHelper
3
- end
4
- end
@@ -1,4 +0,0 @@
1
- module Avo
2
- module AttachmentsHelper
3
- end
4
- end
@@ -1,3 +0,0 @@
1
- <span class="first">
2
- <%= link_to_unless current_page.first?, t('views.pagination.first').html_safe, url, remote: remote, class: 'relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm leading-5 font-medium rounded-md text-gray-700 bg-white hover:text-gray-500 focus:outline-none focus:shadow-outline-blue focus:border-blue-300 active:bg-gray-100 active:text-gray-700 transition ease-in-out duration-150' %>
3
- </span>
@@ -1,3 +0,0 @@
1
- <span class="last">
2
- <%= link_to_unless current_page.last?, t('views.pagination.last').html_safe, url, remote: remote, class: 'ml-3 relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm leading-5 font-medium rounded-md text-gray-700 bg-white hover:text-gray-500 focus:outline-none focus:shadow-outline-blue focus:border-blue-300 active:bg-gray-100 active:text-gray-700 transition ease-in-out duration-150' %>
3
- </span>
@@ -1,9 +0,0 @@
1
- <% if !current_page.last? %>
2
- <%= link_to url, :id => 'pnnext',:remote => remote do %>
3
- <button type="button" class="-ml-px relative inline-flex items-center px-2 py-2 rounded-r-md border border-gray-300 bg-white text-sm leading-5 font-medium text-gray-500 hover:text-gray-400 focus:z-10 focus:outline-none focus:border-blue-300 focus:shadow-outline-blue active:bg-gray-100 active:text-gray-500 transition ease-in-out duration-150">
4
- <svg class="h-5 w-5" fill="currentColor" viewBox="0 0 20 20">
5
- <path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd"/>
6
- </svg>
7
- </button>
8
- <% end %>
9
- <% end %>
@@ -1,12 +0,0 @@
1
- <% url = resources_path(resource: @resource, page: page, keep_query_params: true) %>
2
- <% if page.current? %>
3
- <button type="button" class="hidden md:inline-flex -ml-px relative items-center px-4 py-2 border bg-gray-100 text-sm leading-5 font-medium text-gray-700 hover:text-gray-500 z-10 outline-none border-primary-300 active:bg-gray-100 transition ease-in-out duration-150">
4
- <%= page %>
5
- </button>
6
- <% else %>
7
- <%= link_to url, :remote => remote do %>
8
- <button type="button" class="hidden md:inline-flex -ml-px relative items-center px-4 py-2 border border-gray-300 bg-white text-sm leading-5 font-medium text-gray-700 hover:text-gray-500 focus:z-10 focus:outline-none focus:border-blue-300 focus:shadow-outline-blue active:bg-gray-100 active:text-gray-700 transition ease-in-out duration-150">
9
- <%= page %>
10
- </button>
11
- <% end %>
12
- <% end %>
@@ -1,9 +0,0 @@
1
- <% if !current_page.first? %>
2
- <%= link_to url, :id => 'pnprev', :remote => remote do %>
3
- <button type="button" class="relative inline-flex items-center px-2 py-2 rounded-l-md border border-gray-300 bg-white text-sm leading-5 font-medium text-gray-500 hover:text-gray-400 focus:z-10 focus:outline-none focus:border-blue-300 focus:shadow-outline-blue active:bg-gray-100 active:text-gray-500 transition ease-in-out duration-150">
4
- <svg class="h-5 w-5" fill="currentColor" viewBox="0 0 20 20">
5
- <path fill-rule="evenodd" d="M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z" clip-rule="evenodd"/>
6
- </svg>
7
- </button>
8
- <% end %>
9
- <% end %>
@@ -1,7 +0,0 @@
1
- module Avo
2
- module Hosts
3
- class SearchScopeHost < BaseHost
4
- option :scope
5
- end
6
- end
7
- end