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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0d06dd0755e21a576932b06f557812c5c09ae4ee105c56709d70485b48348c68
4
- data.tar.gz: 45b6f89a2ba9cc081aac1e0f861858c98e70298c6ccdb8cee3bef3f155276808
3
+ metadata.gz: ba9d821289fe3059e6cfc94bfe52b16ccb574f58be2bf4ab8fa850e9ceb55a02
4
+ data.tar.gz: 03253b9ba8afce580db6405eda3c2e2eb509ad4ff9f759063e8289850d6bf836
5
5
  SHA512:
6
- metadata.gz: 97f412c15ce8f2ca1f198061877df3da68e8f0a33dc8f95f3d8423811e5c0171c67e7d71cb579c830c5b9529a70955ed255122af0ce04ad3f44129532e46b375
7
- data.tar.gz: 29877e6aa69ec90b5ab27927f57f9b843add3de24864370df58e00c853d5f8c41dec6f67295b7ffe96fccee85a6c3918d582b3bddc1dae4b828b5c963186207c
6
+ metadata.gz: 1e5aec93412bbac8df6f67295f85125eee7df648c3d506dfaa46db99798293e8b126e14d56acd0a09bec7036afce715670791ec405e89a73ea420034129e8dab
7
+ data.tar.gz: 470b9bd9e5b7dbeab74a5309ad10ec858e1278c0478c58ad8e1cdfba63533fc05409096b4cb02e5c857875e06d5b5d31e30d49cb2f96bcbfa7795099ac3ee1a8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- avo (2.9.1.pre3)
4
+ avo (2.9.1.pre6)
5
5
  active_link_to
6
6
  addressable
7
7
  breadcrumbs_on_rails
@@ -252,6 +252,8 @@ GEM
252
252
  nokogiri (1.13.4)
253
253
  mini_portile2 (~> 2.8.0)
254
254
  racc (~> 1.4)
255
+ nokogiri (1.13.4-x86_64-linux)
256
+ racc (~> 1.4)
255
257
  orm_adapter (0.5.0)
256
258
  pagy (5.10.1)
257
259
  activesupport
@@ -6354,6 +6354,16 @@ trix-editor .attachment__metadata .attachment__size {
6354
6354
  margin-bottom:0px
6355
6355
  }
6356
6356
 
6357
+ .-mx-2{
6358
+ margin-left:-0.5rem;
6359
+ margin-right:-0.5rem
6360
+ }
6361
+
6362
+ .-my-2{
6363
+ margin-top:-0.5rem;
6364
+ margin-bottom:-0.5rem
6365
+ }
6366
+
6357
6367
  .mx-6{
6358
6368
  margin-left:1.5rem;
6359
6369
  margin-right:1.5rem
@@ -6479,6 +6489,10 @@ trix-editor .attachment__metadata .attachment__size {
6479
6489
  margin-top:0px
6480
6490
  }
6481
6491
 
6492
+ .-mb-8{
6493
+ margin-bottom:-2rem
6494
+ }
6495
+
6482
6496
  .mr-px{
6483
6497
  margin-right:1px
6484
6498
  }
@@ -8885,6 +8899,16 @@ trix-editor {
8885
8899
  }
8886
8900
 
8887
8901
  @media (min-width: 1024px){
8902
+ .lg\:-mx-4{
8903
+ margin-left:-1rem;
8904
+ margin-right:-1rem
8905
+ }
8906
+
8907
+ .lg\:-my-4{
8908
+ margin-top:-1rem;
8909
+ margin-bottom:-1rem
8910
+ }
8911
+
8888
8912
  .lg\:flex{
8889
8913
  display:flex
8890
8914
  }
@@ -8927,6 +8951,10 @@ trix-editor {
8927
8951
  padding:1.5rem
8928
8952
  }
8929
8953
 
8954
+ .lg\:p-4{
8955
+ padding:1rem
8956
+ }
8957
+
8930
8958
  .lg\:px-8{
8931
8959
  padding-left:2rem;
8932
8960
  padding-right:2rem