avo 2.11.1.pre.2 → 2.11.1.pre.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 (45) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/app/assets/stylesheets/avo.css +1 -4
  4. data/app/assets/stylesheets/css/sidebar.css +28 -0
  5. data/app/components/avo/fields/date_field/show_component.html.erb +4 -0
  6. data/app/components/avo/fields/has_one_field/show_component.html.erb +1 -1
  7. data/app/components/avo/fields/has_one_field/show_component.rb +7 -6
  8. data/app/components/avo/fields/text_field/index_component.html.erb +2 -0
  9. data/app/components/avo/fields/text_field/show_component.html.erb +2 -0
  10. data/app/components/avo/index/field_wrapper_component.html.erb +4 -0
  11. data/app/components/avo/index/resource_controls_component.rb +7 -5
  12. data/app/components/avo/index/resource_table_component.html.erb +1 -1
  13. data/app/components/avo/index/resource_table_component.rb +2 -1
  14. data/app/components/avo/index/table_row_component.html.erb +1 -1
  15. data/app/components/avo/index/table_row_component.rb +2 -1
  16. data/app/components/avo/resource_component.rb +11 -5
  17. data/app/components/avo/sidebar_component.html.erb +2 -2
  18. data/app/components/avo/tab_switcher_component.rb +4 -0
  19. data/app/components/avo/views/resource_edit_component.rb +4 -6
  20. data/app/components/avo/views/resource_index_component.html.erb +1 -1
  21. data/app/components/avo/views/resource_index_component.rb +5 -3
  22. data/app/components/avo/views/resource_show_component.html.erb +1 -1
  23. data/app/components/avo/views/resource_show_component.rb +3 -1
  24. data/app/controllers/avo/application_controller.rb +24 -9
  25. data/app/controllers/avo/associations_controller.rb +38 -12
  26. data/app/controllers/avo/base_controller.rb +2 -1
  27. data/app/javascript/js/controllers/sidebar_controller.js +46 -0
  28. data/app/javascript/js/controllers.js +2 -2
  29. data/app/views/avo/base/index.html.erb +1 -0
  30. data/app/views/avo/base/show.html.erb +7 -1
  31. data/app/views/avo/partials/_javascript.html.erb +1 -0
  32. data/app/views/avo/partials/_navbar.html.erb +5 -2
  33. data/app/views/layouts/avo/application.html.erb +3 -3
  34. data/lib/avo/concerns/has_fields.rb +5 -0
  35. data/lib/avo/concerns/has_html_attributes.rb +1 -1
  36. data/lib/avo/fields/has_base_field.rb +11 -0
  37. data/lib/avo/fields/text_field.rb +4 -2
  38. data/lib/avo/services/authorization_service.rb +41 -37
  39. data/lib/avo/version.rb +1 -1
  40. data/lib/avo.rb +1 -0
  41. data/public/avo-assets/avo.css +43 -11
  42. data/public/avo-assets/avo.js +68 -67
  43. data/public/avo-assets/avo.js.map +3 -3
  44. metadata +4 -3
  45. data/app/javascript/js/controllers/mobile_controller.js +0 -9
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.11.1.pre.2
4
+ version: 2.11.1.pre.3
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-07-21 00:00:00.000000000 Z
12
+ date: 2022-07-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -261,6 +261,7 @@ files:
261
261
  - app/assets/stylesheets/css/loader.css
262
262
  - app/assets/stylesheets/css/pagination.css
263
263
  - app/assets/stylesheets/css/search.css
264
+ - app/assets/stylesheets/css/sidebar.css
264
265
  - app/assets/stylesheets/css/spinner.css
265
266
  - app/assets/stylesheets/css/tags.css
266
267
  - app/assets/stylesheets/css/tailwindcss/base.css
@@ -1084,7 +1085,6 @@ files:
1084
1085
  - app/javascript/js/controllers/item_selector_controller.js
1085
1086
  - app/javascript/js/controllers/loading_button_controller.js
1086
1087
  - app/javascript/js/controllers/menu_controller.js
1087
- - app/javascript/js/controllers/mobile_controller.js
1088
1088
  - app/javascript/js/controllers/modal_controller.js
1089
1089
  - app/javascript/js/controllers/multiple_select_filter_controller.js
1090
1090
  - app/javascript/js/controllers/per_page_controller.js
@@ -1094,6 +1094,7 @@ files:
1094
1094
  - app/javascript/js/controllers/search_controller.js
1095
1095
  - app/javascript/js/controllers/select_controller.js
1096
1096
  - app/javascript/js/controllers/select_filter_controller.js
1097
+ - app/javascript/js/controllers/sidebar_controller.js
1097
1098
  - app/javascript/js/controllers/tabs_controller.js
1098
1099
  - app/javascript/js/controllers/text_filter_controller.js
1099
1100
  - app/javascript/js/controllers/tippy_controller.js
@@ -1,9 +0,0 @@
1
- import { Controller } from '@hotwired/stimulus'
2
-
3
- export default class extends Controller {
4
- static targets = ['sidebar']
5
-
6
- toggleSidebar() {
7
- this.sidebarTarget.classList.toggle('hidden')
8
- }
9
- }