avo 2.9.1.pre3 → 2.9.1.pre6

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 (41) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +3 -1
  3. data/app/assets/builds/avo.css +28 -0
  4. data/app/assets/builds/avo.js +63 -63
  5. data/app/assets/builds/avo.js.map +2 -2
  6. data/app/components/avo/actions_component.rb +6 -2
  7. data/app/components/avo/fields/common/key_value_component.html.erb +2 -2
  8. data/app/components/avo/fields/common/single_file_viewer_component.rb +1 -1
  9. data/app/components/avo/fields/date_field/edit_component.html.erb +1 -0
  10. data/app/components/avo/fields/date_time_field/edit_component.html.erb +9 -11
  11. data/app/components/avo/fields/date_time_field/index_component.html.erb +1 -9
  12. data/app/components/avo/fields/date_time_field/show_component.html.erb +1 -9
  13. data/app/components/avo/index/ordering/button_component.rb +5 -13
  14. data/app/components/avo/index/resource_controls_component.html.erb +2 -2
  15. data/app/components/avo/index/resource_controls_component.rb +5 -1
  16. data/app/components/avo/views/resource_edit_component.rb +1 -1
  17. data/app/components/avo/views/resource_index_component.rb +2 -2
  18. data/app/controllers/avo/application_controller.rb +24 -3
  19. data/app/javascript/avo.js +5 -1
  20. data/app/javascript/js/controllers/fields/date_field_controller.js +24 -68
  21. data/app/javascript/js/controllers/tabs_controller.js +80 -0
  22. data/app/views/avo/partials/_javascript.html.erb +1 -1
  23. data/config/routes.rb +1 -1
  24. data/lib/avo/app.rb +11 -4
  25. data/lib/avo/base_card.rb +1 -7
  26. data/lib/avo/base_resource.rb +1 -1
  27. data/lib/avo/concerns/handles_field_args.rb +1 -1
  28. data/lib/avo/concerns/model_class_constantized.rb +23 -0
  29. data/lib/avo/dashboards/base_dashboard.rb +1 -1
  30. data/lib/avo/fields/date_field.rb +2 -0
  31. data/lib/avo/fields/date_time_field.rb +9 -13
  32. data/lib/avo/fields/has_base_field.rb +3 -1
  33. data/lib/avo/fields/has_one_field.rb +4 -1
  34. data/lib/avo/menu/builder.rb +8 -7
  35. data/lib/avo/services/uri_service.rb +71 -0
  36. data/lib/avo/version.rb +1 -1
  37. data/lib/avo.rb +1 -0
  38. data/lib/generators/avo/templates/locales/avo.fr.yml +115 -0
  39. data/public/avo-assets/avo.js +63 -63
  40. data/public/avo-assets/avo.js.map +2 -2
  41. metadata +6 -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.9.1.pre3
4
+ version: 2.9.1.pre6
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-06-28 00:00:00.000000000 Z
12
+ date: 2022-07-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -1096,6 +1096,7 @@ files:
1096
1096
  - app/javascript/js/controllers/search_controller.js
1097
1097
  - app/javascript/js/controllers/select_controller.js
1098
1098
  - app/javascript/js/controllers/select_filter_controller.js
1099
+ - app/javascript/js/controllers/tabs_controller.js
1099
1100
  - app/javascript/js/controllers/text_filter_controller.js
1100
1101
  - app/javascript/js/controllers/tippy_controller.js
1101
1102
  - app/javascript/js/controllers/toggle_panel_controller.js
@@ -1179,6 +1180,7 @@ files:
1179
1180
  - lib/avo/concerns/has_model.rb
1180
1181
  - lib/avo/concerns/has_stimulus_controllers.rb
1181
1182
  - lib/avo/concerns/has_tools.rb
1183
+ - lib/avo/concerns/model_class_constantized.rb
1182
1184
  - lib/avo/configuration.rb
1183
1185
  - lib/avo/dashboards/base_dashboard.rb
1184
1186
  - lib/avo/dashboards/base_divider.rb
@@ -1262,6 +1264,7 @@ files:
1262
1264
  - lib/avo/menu/section.rb
1263
1265
  - lib/avo/reloader.rb
1264
1266
  - lib/avo/services/authorization_service.rb
1267
+ - lib/avo/services/uri_service.rb
1265
1268
  - lib/avo/tools_manager.rb
1266
1269
  - lib/avo/version.rb
1267
1270
  - lib/generators/avo/action_generator.rb
@@ -1299,6 +1302,7 @@ files:
1299
1302
  - lib/generators/avo/templates/filters/text_filter.tt
1300
1303
  - lib/generators/avo/templates/initializer/avo.tt
1301
1304
  - lib/generators/avo/templates/locales/avo.en.yml
1305
+ - lib/generators/avo/templates/locales/avo.fr.yml
1302
1306
  - lib/generators/avo/templates/locales/avo.nb-NO.yml
1303
1307
  - lib/generators/avo/templates/locales/avo.pt-BR.yml
1304
1308
  - lib/generators/avo/templates/locales/avo.ro.yml