avo 1.12.4 → 1.13.3

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 (35) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/app/packs/js/controllers/search_controller.js +4 -1
  4. data/app/views/avo/base/_filters.html.erb +4 -0
  5. data/app/views/avo/partials/_global_search.html.erb +1 -1
  6. data/app/views/avo/sidebar/_sidebar.html.erb +1 -1
  7. data/lib/avo/version.rb +1 -1
  8. data/lib/generators/avo/templates/locales/avo.en.yml +3 -0
  9. data/lib/generators/avo/templates/locales/avo.nb-NO.yml +2 -0
  10. data/lib/generators/avo/templates/locales/avo.pt-BR.yml +3 -0
  11. data/lib/generators/avo/templates/locales/avo.ro.yml +3 -0
  12. data/public/avo-packs/css/{application-7eb08582.css → application-2b4685ca.css} +4 -4
  13. data/public/avo-packs/css/application-2b4685ca.css.br +0 -0
  14. data/public/avo-packs/css/{application-7eb08582.css.gz → application-2b4685ca.css.gz} +0 -0
  15. data/public/avo-packs/css/{application-7eb08582.css.map → application-2b4685ca.css.map} +1 -1
  16. data/public/avo-packs/css/application-2b4685ca.css.map.br +0 -0
  17. data/public/avo-packs/css/application-2b4685ca.css.map.gz +0 -0
  18. data/public/avo-packs/js/application-6dbb940fca2e811fb7d5.js +26 -0
  19. data/public/avo-packs/js/{application-24899bdd53fce059b07e.js.LICENSE.txt → application-6dbb940fca2e811fb7d5.js.LICENSE.txt} +0 -0
  20. data/public/avo-packs/js/application-6dbb940fca2e811fb7d5.js.br +0 -0
  21. data/public/avo-packs/js/application-6dbb940fca2e811fb7d5.js.gz +0 -0
  22. data/public/avo-packs/js/application-6dbb940fca2e811fb7d5.js.map +1 -0
  23. data/public/avo-packs/js/application-6dbb940fca2e811fb7d5.js.map.br +0 -0
  24. data/public/avo-packs/js/application-6dbb940fca2e811fb7d5.js.map.gz +0 -0
  25. data/public/avo-packs/manifest.json +15 -15
  26. metadata +15 -15
  27. data/public/avo-packs/css/application-7eb08582.css.br +0 -0
  28. data/public/avo-packs/css/application-7eb08582.css.map.br +0 -0
  29. data/public/avo-packs/css/application-7eb08582.css.map.gz +0 -0
  30. data/public/avo-packs/js/application-24899bdd53fce059b07e.js +0 -26
  31. data/public/avo-packs/js/application-24899bdd53fce059b07e.js.br +0 -0
  32. data/public/avo-packs/js/application-24899bdd53fce059b07e.js.gz +0 -0
  33. data/public/avo-packs/js/application-24899bdd53fce059b07e.js.map +0 -1
  34. data/public/avo-packs/js/application-24899bdd53fce059b07e.js.map.br +0 -0
  35. data/public/avo-packs/js/application-24899bdd53fce059b07e.js.map.gz +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7e8bc3c19aa70a07d9d2ba4b779d6f4f24146dfd76a1446f0df2bb72938b8eec
4
- data.tar.gz: df19bae0196f3dc0faedbb60102eccf43c77767ae1a45b0d43c7aa6217a2eaa3
3
+ metadata.gz: 9f8f8a16bb27f36fe69f33aa950e7250aed0faf2f7ca7aa9e9e77058ddc95ea9
4
+ data.tar.gz: 90dceb9b36ca44a2be8382c9f285bbece7c34141280b7bb704341f1cd77a31bb
5
5
  SHA512:
6
- metadata.gz: a1764050ff1502455419121d19de96a3e8de7211312d8572bb4500866aa847b7ed98ac8f3d3f2b63c8f624f1de6ca392ccb55181d928130ce047c1ab1f7b8aaf
7
- data.tar.gz: f3a08b1a5ad5ef0e41d18eafee7b069a696a94044275d52b300153fa8fca718cfb03e56ba5401d4043d94e717621ac475177858c427cdd855219bae5be8d85b0
6
+ metadata.gz: bc1ee697399f753ff66d1a6f4d08bb2561d1ba6daf4d25557cd6d504fdd6bb66d30c68557f5dce79d4f5463f18fb54b449bd7fc111fbddfcce0850b2ad8fc61f
7
+ data.tar.gz: a82b35d6f342e7edbaf1ec51ad67133bb33c64b4f641eefb433b00d68145545eb73ba3bd8241f9670ae395017deecc2aff19023fd2040a9f0a2183e3c7f00210
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- avo (1.12.4)
4
+ avo (1.13.3)
5
5
  active_link_to
6
6
  addressable
7
7
  breadcrumbs_on_rails
@@ -212,7 +212,7 @@ GEM
212
212
  nokogiri (1.11.7-x86_64-linux)
213
213
  racc (~> 1.4)
214
214
  orm_adapter (0.5.0)
215
- pagy (4.10.1)
215
+ pagy (4.11.0)
216
216
  parallel (1.20.1)
217
217
  parser (3.0.0.0)
218
218
  ast (~> 2.4.1)
@@ -105,7 +105,10 @@ export default class extends Controller {
105
105
 
106
106
  autocomplete({
107
107
  container: this.autocompleteTarget,
108
- placeholder: 'Search',
108
+ placeholder: this.translationKeys.placeholder,
109
+ translations: {
110
+ detachedCancelButtonText: this.translationKeys.cancel_button,
111
+ },
109
112
  openOnFocus: true,
110
113
  detachedMediaQuery: '',
111
114
  getSources: ({ query }) => {
@@ -7,7 +7,11 @@
7
7
  'data-action': 'click->toggle-panel#togglePanel',
8
8
  'data-tippy': 'tooltip' do
9
9
  %>
10
+
10
11
  <%= svg 'filter' %> <%= t 'avo.filters' %>
12
+ <% if params[:filters].present? %>
13
+ <div class="ml-1">(<%=JSON.parse(Base64.decode64(params[:filters])).count%> applied)</div>
14
+ <% end %>
11
15
  <% end %>
12
16
 
13
17
  <div
@@ -2,7 +2,7 @@
2
2
  <div class="inline-block"
3
3
  data-search-target="autocomplete"
4
4
  data-search-resource="global"
5
- data-translation-keys='{"no_item_found": "<%= I18n.translate 'avo.no_item_found' %>"}'
5
+ data-translation-keys='{"no_item_found": "<%= I18n.translate 'avo.no_item_found' %>", "placeholder": "<%= I18n.translate 'avo.search.placeholder' %>", "cancel_button": "<%= I18n.translate 'avo.search.cancel_button' %>"}'
6
6
  data-debounce-timeout='<%= Avo.configuration.search_debounce %>'
7
7
  >
8
8
  </div>
@@ -12,7 +12,7 @@
12
12
 
13
13
  <div class="w-full">
14
14
  <% Avo::App.resources_navigation(_current_user).each do |resource| %>
15
- <%= render Avo::NavigationLinkComponent.new label: resource.name.pluralize.humanize, path: resources_path(resource.model_class) %>
15
+ <%= render Avo::NavigationLinkComponent.new label: resource.plural_name.humanize, path: resources_path(resource.model_class) %>
16
16
  <% end %>
17
17
 
18
18
  <% sidebar_partials = Avo::App.get_sidebar_partials %>
data/lib/avo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Avo
2
- VERSION = "1.12.4"
2
+ VERSION = "1.13.3"
3
3
  end
@@ -80,3 +80,6 @@ en:
80
80
  other: 'users'
81
81
  reset_filters: 'Reset filters'
82
82
  not_authorized: 'You are not authorized to perform this action.'
83
+ search:
84
+ placeholder: 'Search'
85
+ cancel_button: 'Cancel'
@@ -78,3 +78,5 @@ nb-NO:
78
78
  other: 'brukere'
79
79
  reset_filters: 'Nullstill filter'
80
80
  not_authorized: 'Du er ikke autorisert til å gjøre denne handlingen.'
81
+ search_placeholder: 'Søk'
82
+ search_cancel_button: 'Avbryt'
@@ -79,3 +79,6 @@ pt-BR:
79
79
  other: 'usuários'
80
80
  reset_filters: 'Limpar filtros'
81
81
  not_authorized: 'Você não está autorizado à executar essa ação.'
82
+ search:
83
+ placeholder: 'Procurar'
84
+ cancel_button: 'Cancelar'
@@ -67,3 +67,6 @@ ro:
67
67
  zero: 'utilizatori'
68
68
  one: 'utilizator'
69
69
  other: 'utilizatori'
70
+ search:
71
+ placeholder: 'Cauta'
72
+ cancel_button: 'Anulare'
@@ -4848,6 +4848,9 @@ progress[value]::-moz-progress-bar {
4848
4848
  .mr-2 {
4849
4849
  margin-right: 0.5rem
4850
4850
  }
4851
+ .ml-1 {
4852
+ margin-left: 0.25rem
4853
+ }
4851
4854
  .mb-0 {
4852
4855
  margin-bottom: 0px
4853
4856
  }
@@ -4881,9 +4884,6 @@ progress[value]::-moz-progress-bar {
4881
4884
  .-mt-10 {
4882
4885
  margin-top: -2.5rem
4883
4886
  }
4884
- .ml-1 {
4885
- margin-left: 0.25rem
4886
- }
4887
4887
  .mr-6 {
4888
4888
  margin-right: 1.5rem
4889
4889
  }
@@ -6246,4 +6246,4 @@ html, body{
6246
6246
  }
6247
6247
 
6248
6248
 
6249
- /*# sourceMappingURL=application-7eb08582.css.map*/
6249
+ /*# sourceMappingURL=application-2b4685ca.css.map*/