avo 2.11.1.pre.3 → 2.11.2.pre.2

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 (34) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/app/assets/stylesheets/css/sidebar.css +0 -10
  4. data/app/assets/svgs/failed_to_load.svg +15 -0
  5. data/app/components/avo/common_field_wrapper_component.html.erb +4 -0
  6. data/app/components/avo/fields/date_field/show_component.html.erb +0 -4
  7. data/app/components/avo/fields/trix_field/edit_component.rb +1 -1
  8. data/app/components/avo/index/field_wrapper_component.html.erb +1 -1
  9. data/app/components/avo/index/resource_controls_component.html.erb +3 -0
  10. data/app/components/avo/index/table_row_component.html.erb +14 -5
  11. data/app/components/avo/item_switcher_component.html.erb +1 -1
  12. data/app/components/avo/sidebar_component.html.erb +8 -2
  13. data/app/components/avo/sidebar_component.rb +9 -0
  14. data/app/controllers/avo/application_controller.rb +2 -2
  15. data/app/controllers/avo/base_controller.rb +6 -2
  16. data/app/javascript/js/controllers/fields/key_value_controller.js +3 -1
  17. data/app/javascript/js/controllers/sidebar_controller.js +5 -2
  18. data/app/views/avo/home/failed_to_load.html copy.erb +23 -0
  19. data/app/views/avo/home/failed_to_load.html.erb +9 -15
  20. data/app/views/avo/partials/_table_header.html.erb +12 -5
  21. data/app/views/layouts/avo/application.html.erb +6 -1
  22. data/bin/init +5 -0
  23. data/lib/avo/base_resource.rb +16 -1
  24. data/lib/avo/concerns/has_fields.rb +7 -3
  25. data/lib/avo/concerns/model_class_constantized.rb +1 -1
  26. data/lib/avo/configuration/resource_configuration.rb +21 -0
  27. data/lib/avo/configuration.rb +2 -0
  28. data/lib/avo/items_holder.rb +6 -0
  29. data/lib/avo/panel_builder.rb +1 -0
  30. data/lib/avo/version.rb +1 -1
  31. data/public/avo-assets/avo.css +51 -21
  32. data/public/avo-assets/avo.js +54 -54
  33. data/public/avo-assets/avo.js.map +3 -3
  34. metadata +5 -2
@@ -4551,14 +4551,6 @@ input[type=file][data-direct-upload-url][disabled] {
4551
4551
  }
4552
4552
  }
4553
4553
 
4554
- /* Hide the sidebar by default. */
4555
-
4556
- @media (min-width: 1024px){
4557
- .content-area .avo-sidebar{
4558
- display:none
4559
- }
4560
- }
4561
-
4562
4554
  /* Add padding to the main area to allow for the sidebar to expand. */
4563
4555
 
4564
4556
  @media (min-width: 1024px){
@@ -4567,14 +4559,6 @@ input[type=file][data-direct-upload-url][disabled] {
4567
4559
  }
4568
4560
  }
4569
4561
 
4570
- /* Show the sidebar. */
4571
-
4572
- @media (min-width: 1024px){
4573
- .content-area.sidebar-open .avo-sidebar{
4574
- display:block
4575
- }
4576
- }
4577
-
4578
4562
  .button-spinner {
4579
4563
  width: 24px;
4580
4564
  height: 24px;
@@ -6632,6 +6616,14 @@ trix-editor .attachment__metadata .attachment__size {
6632
6616
  height:2rem
6633
6617
  }
6634
6618
 
6619
+ .h-64{
6620
+ height:16rem
6621
+ }
6622
+
6623
+ .h-52{
6624
+ height:13rem
6625
+ }
6626
+
6635
6627
  .h-6{
6636
6628
  height:1.5rem
6637
6629
  }
@@ -6802,6 +6794,16 @@ trix-editor .attachment__metadata .attachment__size {
6802
6794
  transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))
6803
6795
  }
6804
6796
 
6797
+ .-translate-x-full{
6798
+ --tw-translate-x:-100%;
6799
+ transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))
6800
+ }
6801
+
6802
+ .translate-x-0{
6803
+ --tw-translate-x:0px;
6804
+ transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))
6805
+ }
6806
+
6805
6807
  .-translate-y-full{
6806
6808
  --tw-translate-y:-100%;
6807
6809
  transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))
@@ -7495,6 +7497,11 @@ trix-editor .attachment__metadata .attachment__size {
7495
7497
  padding-bottom:3rem
7496
7498
  }
7497
7499
 
7500
+ .py-4{
7501
+ padding-top:1rem;
7502
+ padding-bottom:1rem
7503
+ }
7504
+
7498
7505
  .py-6{
7499
7506
  padding-top:1.5rem;
7500
7507
  padding-bottom:1.5rem
@@ -7540,16 +7547,19 @@ trix-editor .attachment__metadata .attachment__size {
7540
7547
  padding-right:2.5rem
7541
7548
  }
7542
7549
 
7543
- .py-4{
7544
- padding-top:1rem;
7545
- padding-bottom:1rem
7546
- }
7547
-
7548
7550
  .py-8{
7549
7551
  padding-top:2rem;
7550
7552
  padding-bottom:2rem
7551
7553
  }
7552
7554
 
7555
+ .pb-6{
7556
+ padding-bottom:1.5rem
7557
+ }
7558
+
7559
+ .pb-3{
7560
+ padding-bottom:0.75rem
7561
+ }
7562
+
7553
7563
  .pb-1{
7554
7564
  padding-bottom:0.25rem
7555
7565
  }
@@ -7908,6 +7918,14 @@ trix-editor .attachment__metadata .attachment__size {
7908
7918
  opacity:0.5
7909
7919
  }
7910
7920
 
7921
+ .opacity-0{
7922
+ opacity:0
7923
+ }
7924
+
7925
+ .opacity-100{
7926
+ opacity:1
7927
+ }
7928
+
7911
7929
  .shadow-panel{
7912
7930
  --tw-shadow:0px 4px 8px rgba(0, 0, 0, 0.04), 0px 0px 2px rgba(0, 0, 0, 0.06), 0px 0px 1px rgba(0, 0, 0, 0.04);
7913
7931
  --tw-shadow-colored:0px 4px 8px var(--tw-shadow-color), 0px 0px 2px var(--tw-shadow-color), 0px 0px 1px var(--tw-shadow-color);
@@ -7978,10 +7996,22 @@ trix-editor .attachment__metadata .attachment__size {
7978
7996
  transition-duration:150ms
7979
7997
  }
7980
7998
 
7999
+ .duration-75{
8000
+ transition-duration:75ms
8001
+ }
8002
+
7981
8003
  .ease-in-out{
7982
8004
  transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)
7983
8005
  }
7984
8006
 
8007
+ .ease-out{
8008
+ transition-timing-function:cubic-bezier(0, 0, 0.2, 1)
8009
+ }
8010
+
8011
+ .ease-in{
8012
+ transition-timing-function:cubic-bezier(0.4, 0, 1, 1)
8013
+ }
8014
+
7985
8015
  html, body{
7986
8016
  position:relative;
7987
8017
  height:100%;