avo 3.0.1.beta7 → 3.0.1.beta9

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 (97) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +2 -2
  3. data/Gemfile.lock +23 -25
  4. data/{public/avo-assets/avo.css → app/assets/builds/avo.base.css} +1943 -1552
  5. data/app/assets/builds/avo.base.js +124556 -0
  6. data/app/assets/builds/avo.base.js.map +7 -0
  7. data/app/assets/builds/avo.custom.js +6 -0
  8. data/app/assets/builds/avo.custom.js.map +7 -0
  9. data/app/assets/stylesheets/avo.base.css +1 -0
  10. data/app/assets/stylesheets/css/fields/tags.css +32 -0
  11. data/app/components/avo/actions_component.rb +1 -1
  12. data/app/components/avo/field_wrapper_component.html.erb +1 -1
  13. data/app/components/avo/field_wrapper_component.rb +1 -7
  14. data/app/components/avo/fields/boolean_field/index_component.html.erb +1 -1
  15. data/app/components/avo/fields/common/badge_viewer_component.html.erb +1 -24
  16. data/app/components/avo/fields/common/badge_viewer_component.rb +24 -0
  17. data/app/components/avo/fields/common/boolean_check_component.html.erb +1 -12
  18. data/app/components/avo/fields/common/boolean_check_component.rb +2 -1
  19. data/app/components/avo/fields/common/gravatar_viewer_component.html.erb +1 -1
  20. data/app/components/avo/fields/common/gravatar_viewer_component.rb +2 -2
  21. data/app/components/avo/fields/common/heading_component.html.erb +3 -8
  22. data/app/components/avo/fields/common/heading_component.rb +1 -3
  23. data/app/components/avo/fields/common/key_value_component.html.erb +2 -2
  24. data/app/components/avo/fields/common/key_value_component.rb +2 -2
  25. data/app/components/avo/fields/common/progress_bar_component.rb +3 -9
  26. data/app/components/avo/fields/edit_component.rb +1 -1
  27. data/app/components/avo/fields/external_image_field/index_component.html.erb +1 -1
  28. data/app/components/avo/fields/file_field/index_component.html.erb +2 -2
  29. data/app/components/avo/fields/gravatar_field/index_component.html.erb +1 -1
  30. data/app/components/avo/fields/heading_field/edit_component.html.erb +1 -1
  31. data/app/components/avo/fields/heading_field/show_component.html.erb +1 -1
  32. data/app/components/avo/fields/id_field/index_component.html.erb +1 -1
  33. data/app/components/avo/fields/index_component.rb +1 -1
  34. data/app/components/avo/fields/show_component.rb +1 -1
  35. data/app/components/avo/fields/text_field/index_component.html.erb +1 -1
  36. data/app/components/avo/index/field_wrapper_component.rb +1 -1
  37. data/app/components/avo/index/resource_controls_component.rb +1 -1
  38. data/app/components/avo/index/resource_table_component.rb +3 -9
  39. data/app/components/avo/resource_component.rb +9 -4
  40. data/app/components/avo/sidebar_profile_component.html.erb +4 -4
  41. data/app/components/avo/tab_group_component.html.erb +1 -1
  42. data/app/components/avo/tab_switcher_component.rb +2 -2
  43. data/app/components/avo/views/resource_edit_component.html.erb +9 -20
  44. data/app/components/avo/views/resource_edit_component.rb +5 -5
  45. data/app/components/avo/views/resource_index_component.rb +1 -1
  46. data/app/components/avo/views/resource_show_component.rb +1 -1
  47. data/app/controllers/avo/actions_controller.rb +9 -20
  48. data/app/controllers/avo/application_controller.rb +5 -5
  49. data/app/controllers/avo/base_controller.rb +1 -1
  50. data/app/controllers/avo/search_controller.rb +19 -2
  51. data/app/controllers/concerns/avo/initializes_avo.rb +1 -0
  52. data/app/helpers/avo/url_helpers.rb +1 -1
  53. data/app/views/avo/actions/show.html.erb +1 -1
  54. data/config/routes.rb +4 -3
  55. data/db/factories.rb +1 -1
  56. data/lib/avo/base_action.rb +20 -25
  57. data/lib/avo/base_resource.rb +7 -6
  58. data/lib/avo/concerns/filters_session_handler.rb +3 -3
  59. data/lib/avo/concerns/has_helpers.rb +18 -0
  60. data/lib/avo/concerns/has_items.rb +1 -5
  61. data/lib/avo/concerns/visible_in_different_views.rb +7 -1
  62. data/lib/avo/concerns/visible_items.rb +43 -0
  63. data/lib/avo/configuration.rb +8 -2
  64. data/lib/avo/current.rb +1 -0
  65. data/lib/avo/execution_context.rb +4 -1
  66. data/lib/avo/fields/badge_field.rb +1 -1
  67. data/lib/avo/fields/base_field.rb +21 -44
  68. data/lib/avo/fields/belongs_to_field.rb +1 -1
  69. data/lib/avo/fields/concerns/has_html_attributes.rb +2 -0
  70. data/lib/avo/fields/concerns/use_view_components.rb +45 -0
  71. data/lib/avo/fields/external_image_field.rb +2 -2
  72. data/lib/avo/fields/file_field.rb +2 -2
  73. data/lib/avo/fields/gravatar_field.rb +2 -2
  74. data/lib/avo/fields/has_base_field.rb +2 -2
  75. data/lib/avo/fields/heading_field.rb +5 -13
  76. data/lib/avo/fields/id_field.rb +2 -2
  77. data/lib/avo/fields/text_field.rb +2 -2
  78. data/lib/avo/resources/items/holder.rb +0 -6
  79. data/lib/avo/resources/items/item_group.rb +2 -2
  80. data/lib/avo/resources/items/row.rb +3 -3
  81. data/lib/avo/resources/items/sidebar.rb +1 -1
  82. data/lib/avo/resources/items/tab.rb +2 -2
  83. data/lib/avo/resources/items/tab_group.rb +1 -1
  84. data/lib/avo/resources/resource_manager.rb +6 -1
  85. data/lib/avo/version.rb +1 -1
  86. data/lib/avo/view_inquirer.rb +36 -0
  87. data/lib/avo.rb +9 -0
  88. data/lib/generators/avo/eject_generator.rb +93 -16
  89. data/lib/generators/avo/js/install_generator.rb +2 -2
  90. data/lib/generators/avo/resource_generator.rb +5 -5
  91. data/lib/generators/avo/tailwindcss/install_generator.rb +1 -1
  92. data/lib/generators/avo/templates/initializer/avo.tt +5 -0
  93. data/public/avo-assets/avo.base.css +54 -219
  94. metadata +12 -6
  95. data/config/master.key +0 -1
  96. data/public/avo-assets/avo.js +0 -513
  97. data/public/avo-assets/avo.js.map +0 -7
@@ -6354,6 +6354,44 @@ trix-toolbar .trix-button-group:not(:first-child){
6354
6354
  margin-left:0px
6355
6355
  }
6356
6356
 
6357
+ tags.tagify {
6358
+ --tag-inset-shadow-size: 3em;
6359
+ --tags-border-color: rgb(var(--color-primary-500));
6360
+ --tags-hover-border-color: rgb(var(--color-primary-500));
6361
+ }
6362
+
6363
+ .tagify__dropdown {
6364
+ --tagify-dd-color-primary: rgb(var(--color-primary-500));
6365
+ }
6366
+
6367
+ tags.tagify{
6368
+ padding:0px !important;
6369
+ }
6370
+
6371
+ tags.tagify span.tagify__input{
6372
+ margin-top:0.25rem;
6373
+ margin-bottom:0.25rem
6374
+ }
6375
+
6376
+ tags.tagify span.tagify__input:after {
6377
+ /* The loader is not centered by default. This will make it look better. */
6378
+ margin-top: 0.25rem;
6379
+ }
6380
+
6381
+ tag.tagify__tag{
6382
+ margin-top:0.25rem;
6383
+ margin-bottom:0.25rem;
6384
+ margin-bottom:0px;
6385
+ font-size:0.875rem;
6386
+ line-height:1.25rem
6387
+ }
6388
+
6389
+ /* When the tags field is used to select just one value there's a weird ZeroWidthSpace (\u200B) character that breaks the vertical spacing. */
6390
+
6391
+ [data-tags-field-mode-value="select"] tags.tagify {
6392
+ height: 40px;
6393
+ }
6394
+
6357
6395
  .container{
6358
6396
  width:100%
6359
6397
  }
@@ -6523,10 +6561,6 @@ trix-toolbar .trix-button-group:not(:first-child){
6523
6561
  top:0px
6524
6562
  }
6525
6563
 
6526
- .top-1{
6527
- top:0.25rem
6528
- }
6529
-
6530
6564
  .top-1\/2{
6531
6565
  top:50%
6532
6566
  }
@@ -6595,26 +6629,10 @@ trix-toolbar .trix-button-group:not(:first-child){
6595
6629
  grid-column:span 1 / span 1
6596
6630
  }
6597
6631
 
6598
- .col-span-2{
6599
- grid-column:span 2 / span 2
6600
- }
6601
-
6602
- .col-span-3{
6603
- grid-column:span 3 / span 3
6604
- }
6605
-
6606
6632
  .col-span-4{
6607
6633
  grid-column:span 4 / span 4
6608
6634
  }
6609
6635
 
6610
- .col-span-5{
6611
- grid-column:span 5 / span 5
6612
- }
6613
-
6614
- .col-span-6{
6615
- grid-column:span 6 / span 6
6616
- }
6617
-
6618
6636
  .col-span-full{
6619
6637
  grid-column:1 / -1
6620
6638
  }
@@ -6647,18 +6665,10 @@ trix-toolbar .trix-button-group:not(:first-child){
6647
6665
  float:right
6648
6666
  }
6649
6667
 
6650
- .float-left{
6651
- float:left
6652
- }
6653
-
6654
6668
  .m-0{
6655
6669
  margin:0px
6656
6670
  }
6657
6671
 
6658
- .m-1{
6659
- margin:0.25rem
6660
- }
6661
-
6662
6672
  .-mx-1{
6663
6673
  margin-left:-0.25rem;
6664
6674
  margin-right:-0.25rem
@@ -6674,11 +6684,6 @@ trix-toolbar .trix-button-group:not(:first-child){
6674
6684
  margin-right:-0.5rem
6675
6685
  }
6676
6686
 
6677
- .-mx-4{
6678
- margin-left:-1rem;
6679
- margin-right:-1rem
6680
- }
6681
-
6682
6687
  .-mx-6{
6683
6688
  margin-left:-1.5rem;
6684
6689
  margin-right:-1.5rem
@@ -6689,11 +6694,6 @@ trix-toolbar .trix-button-group:not(:first-child){
6689
6694
  margin-bottom:-0.5rem
6690
6695
  }
6691
6696
 
6692
- .-my-4{
6693
- margin-top:-1rem;
6694
- margin-bottom:-1rem
6695
- }
6696
-
6697
6697
  .mx-3{
6698
6698
  margin-left:0.75rem;
6699
6699
  margin-right:0.75rem
@@ -6704,11 +6704,6 @@ trix-toolbar .trix-button-group:not(:first-child){
6704
6704
  margin-right:1.5rem
6705
6705
  }
6706
6706
 
6707
- .mx-auto{
6708
- margin-left:auto;
6709
- margin-right:auto
6710
- }
6711
-
6712
6707
  .my-0{
6713
6708
  margin-top:0px;
6714
6709
  margin-bottom:0px
@@ -6743,30 +6738,14 @@ trix-toolbar .trix-button-group:not(:first-child){
6743
6738
  margin-bottom:-0.5rem
6744
6739
  }
6745
6740
 
6746
- .-ml-10{
6747
- margin-left:-2.5rem
6748
- }
6749
-
6750
- .-ml-20{
6751
- margin-left:-5rem
6752
- }
6753
-
6754
6741
  .-ml-4{
6755
6742
  margin-left:-1rem
6756
6743
  }
6757
6744
 
6758
- .-ml-px{
6759
- margin-left:-1px
6760
- }
6761
-
6762
6745
  .-mt-1{
6763
6746
  margin-top:-0.25rem
6764
6747
  }
6765
6748
 
6766
- .-mt-10{
6767
- margin-top:-2.5rem
6768
- }
6769
-
6770
6749
  .-mt-12{
6771
6750
  margin-top:-3rem
6772
6751
  }
@@ -6775,10 +6754,6 @@ trix-toolbar .trix-button-group:not(:first-child){
6775
6754
  margin-top:-0.5rem
6776
6755
  }
6777
6756
 
6778
- .-mt-24{
6779
- margin-top:-6rem
6780
- }
6781
-
6782
6757
  .-mt-9{
6783
6758
  margin-top:-2.25rem
6784
6759
  }
@@ -6823,10 +6798,6 @@ trix-toolbar .trix-button-group:not(:first-child){
6823
6798
  margin-left:0.5rem
6824
6799
  }
6825
6800
 
6826
- .ml-20{
6827
- margin-left:5rem
6828
- }
6829
-
6830
6801
  .ml-3{
6831
6802
  margin-left:0.75rem
6832
6803
  }
@@ -6839,10 +6810,6 @@ trix-toolbar .trix-button-group:not(:first-child){
6839
6810
  margin-left:1.5rem
6840
6811
  }
6841
6812
 
6842
- .ml-8{
6843
- margin-left:2rem
6844
- }
6845
-
6846
6813
  .ml-auto{
6847
6814
  margin-left:auto
6848
6815
  }
@@ -7011,10 +6978,6 @@ trix-toolbar .trix-button-group:not(:first-child){
7011
6978
  height:2.5rem
7012
6979
  }
7013
6980
 
7014
- .h-14{
7015
- height:3.5rem
7016
- }
7017
-
7018
6981
  .h-16{
7019
6982
  height:4rem
7020
6983
  }
@@ -7031,18 +6994,10 @@ trix-toolbar .trix-button-group:not(:first-child){
7031
6994
  height:0.75rem
7032
6995
  }
7033
6996
 
7034
- .h-36{
7035
- height:9rem
7036
- }
7037
-
7038
6997
  .h-4{
7039
6998
  height:1rem
7040
6999
  }
7041
7000
 
7042
- .h-40{
7043
- height:10rem
7044
- }
7045
-
7046
7001
  .h-5{
7047
7002
  height:1.25rem
7048
7003
  }
@@ -7059,10 +7014,6 @@ trix-toolbar .trix-button-group:not(:first-child){
7059
7014
  height:16rem
7060
7015
  }
7061
7016
 
7062
- .h-72{
7063
- height:18rem
7064
- }
7065
-
7066
7017
  .h-8{
7067
7018
  height:2rem
7068
7019
  }
@@ -7127,10 +7078,6 @@ trix-toolbar .trix-button-group:not(:first-child){
7127
7078
  min-height:100%
7128
7079
  }
7129
7080
 
7130
- .min-h-inherit{
7131
- min-height:inherit
7132
- }
7133
-
7134
7081
  .min-h-screen{
7135
7082
  min-height:100vh
7136
7083
  }
@@ -7155,10 +7102,6 @@ trix-toolbar .trix-button-group:not(:first-child){
7155
7102
  width:83.333333%
7156
7103
  }
7157
7104
 
7158
- .w-11{
7159
- width:2.75rem
7160
- }
7161
-
7162
7105
  .w-11\/12{
7163
7106
  width:91.666667%
7164
7107
  }
@@ -7215,6 +7158,10 @@ trix-toolbar .trix-button-group:not(:first-child){
7215
7158
  width:100%
7216
7159
  }
7217
7160
 
7161
+ .min-w-0{
7162
+ min-width:0px
7163
+ }
7164
+
7218
7165
  .min-w-\[1rem\]{
7219
7166
  min-width:1rem
7220
7167
  }
@@ -7295,11 +7242,6 @@ trix-toolbar .trix-button-group:not(:first-child){
7295
7242
  border-collapse:collapse
7296
7243
  }
7297
7244
 
7298
- .-translate-x-1{
7299
- --tw-translate-x:-0.25rem;
7300
- 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))
7301
- }
7302
-
7303
7245
  .-translate-x-1\/2{
7304
7246
  --tw-translate-x:-50%;
7305
7247
  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))
@@ -7385,18 +7327,6 @@ trix-toolbar .trix-button-group:not(:first-child){
7385
7327
  grid-template-columns:repeat(2, minmax(0, 1fr))
7386
7328
  }
7387
7329
 
7388
- .grid-cols-3{
7389
- grid-template-columns:repeat(3, minmax(0, 1fr))
7390
- }
7391
-
7392
- .grid-cols-4{
7393
- grid-template-columns:repeat(4, minmax(0, 1fr))
7394
- }
7395
-
7396
- .grid-cols-5{
7397
- grid-template-columns:repeat(5, minmax(0, 1fr))
7398
- }
7399
-
7400
7330
  .grid-cols-6{
7401
7331
  grid-template-columns:repeat(6, minmax(0, 1fr))
7402
7332
  }
@@ -7461,10 +7391,6 @@ trix-toolbar .trix-button-group:not(:first-child){
7461
7391
  justify-content:space-between
7462
7392
  }
7463
7393
 
7464
- .justify-around{
7465
- justify-content:space-around
7466
- }
7467
-
7468
7394
  .justify-evenly{
7469
7395
  justify-content:space-evenly
7470
7396
  }
@@ -7481,10 +7407,6 @@ trix-toolbar .trix-button-group:not(:first-child){
7481
7407
  gap:0.5rem
7482
7408
  }
7483
7409
 
7484
- .gap-3{
7485
- gap:0.75rem
7486
- }
7487
-
7488
7410
  .gap-4{
7489
7411
  gap:1rem
7490
7412
  }
@@ -7493,12 +7415,6 @@ trix-toolbar .trix-button-group:not(:first-child){
7493
7415
  gap:1.5rem
7494
7416
  }
7495
7417
 
7496
- .space-x-0 > :not([hidden]) ~ :not([hidden]){
7497
- --tw-space-x-reverse:0;
7498
- margin-right:calc(0px * var(--tw-space-x-reverse));
7499
- margin-left:calc(0px * calc(1 - var(--tw-space-x-reverse)))
7500
- }
7501
-
7502
7418
  .space-x-1 > :not([hidden]) ~ :not([hidden]){
7503
7419
  --tw-space-x-reverse:0;
7504
7420
  margin-right:calc(0.25rem * var(--tw-space-x-reverse));
@@ -7523,18 +7439,6 @@ trix-toolbar .trix-button-group:not(:first-child){
7523
7439
  margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))
7524
7440
  }
7525
7441
 
7526
- .space-x-8 > :not([hidden]) ~ :not([hidden]){
7527
- --tw-space-x-reverse:0;
7528
- margin-right:calc(2rem * var(--tw-space-x-reverse));
7529
- margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))
7530
- }
7531
-
7532
- .space-y-0 > :not([hidden]) ~ :not([hidden]){
7533
- --tw-space-y-reverse:0;
7534
- margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));
7535
- margin-bottom:calc(0px * var(--tw-space-y-reverse))
7536
- }
7537
-
7538
7442
  .space-y-1 > :not([hidden]) ~ :not([hidden]){
7539
7443
  --tw-space-y-reverse:0;
7540
7444
  margin-top:calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
@@ -7553,12 +7457,6 @@ trix-toolbar .trix-button-group:not(:first-child){
7553
7457
  margin-bottom:calc(0.5rem * var(--tw-space-y-reverse))
7554
7458
  }
7555
7459
 
7556
- .space-y-3 > :not([hidden]) ~ :not([hidden]){
7557
- --tw-space-y-reverse:0;
7558
- margin-top:calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
7559
- margin-bottom:calc(0.75rem * var(--tw-space-y-reverse))
7560
- }
7561
-
7562
7460
  .space-y-4 > :not([hidden]) ~ :not([hidden]){
7563
7461
  --tw-space-y-reverse:0;
7564
7462
  margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));
@@ -7631,6 +7529,10 @@ trix-toolbar .trix-button-group:not(:first-child){
7631
7529
  white-space:nowrap
7632
7530
  }
7633
7531
 
7532
+ .text-ellipsis{
7533
+ text-overflow:ellipsis
7534
+ }
7535
+
7634
7536
  .whitespace-nowrap{
7635
7537
  white-space:nowrap
7636
7538
  }
@@ -7680,16 +7582,6 @@ trix-toolbar .trix-button-group:not(:first-child){
7680
7582
  border-bottom-left-radius:0.25rem
7681
7583
  }
7682
7584
 
7683
- .rounded-l-md{
7684
- border-top-left-radius:0.375rem;
7685
- border-bottom-left-radius:0.375rem
7686
- }
7687
-
7688
- .rounded-r-md{
7689
- border-top-right-radius:0.375rem;
7690
- border-bottom-right-radius:0.375rem
7691
- }
7692
-
7693
7585
  .rounded-t{
7694
7586
  border-top-left-radius:0.25rem;
7695
7587
  border-top-right-radius:0.25rem
@@ -7699,11 +7591,6 @@ trix-toolbar .trix-button-group:not(:first-child){
7699
7591
  border-width:1px
7700
7592
  }
7701
7593
 
7702
- .border-y{
7703
- border-top-width:1px;
7704
- border-bottom-width:1px
7705
- }
7706
-
7707
7594
  .border-b{
7708
7595
  border-bottom-width:1px
7709
7596
  }
@@ -7844,10 +7731,6 @@ trix-toolbar .trix-button-group:not(:first-child){
7844
7731
  border-color:rgb(236 72 153 / var(--tw-border-opacity))
7845
7732
  }
7846
7733
 
7847
- .border-primary-300{
7848
- border-color:rgb(var(--color-primary-300))
7849
- }
7850
-
7851
7734
  .border-primary-500{
7852
7735
  border-color:rgb(var(--color-primary-500))
7853
7736
  }
@@ -7930,11 +7813,6 @@ trix-toolbar .trix-button-group:not(:first-child){
7930
7813
  background-color:rgb(57 158 229 / var(--tw-bg-opacity))
7931
7814
  }
7932
7815
 
7933
- .bg-blue-50{
7934
- --tw-bg-opacity:1;
7935
- background-color:rgb(230 243 252 / var(--tw-bg-opacity))
7936
- }
7937
-
7938
7816
  .bg-blue-500{
7939
7817
  --tw-bg-opacity:1;
7940
7818
  background-color:rgb(8 134 222 / var(--tw-bg-opacity))
@@ -7960,11 +7838,6 @@ trix-toolbar .trix-button-group:not(:first-child){
7960
7838
  background-color:rgb(227 229 232 / var(--tw-bg-opacity))
7961
7839
  }
7962
7840
 
7963
- .bg-gray-200{
7964
- --tw-bg-opacity:1;
7965
- background-color:rgb(200 203 208 / var(--tw-bg-opacity))
7966
- }
7967
-
7968
7841
  .bg-gray-25{
7969
7842
  --tw-bg-opacity:1;
7970
7843
  background-color:rgb(246 246 247 / var(--tw-bg-opacity))
@@ -8049,10 +7922,6 @@ trix-toolbar .trix-button-group:not(:first-child){
8049
7922
  background-color:rgb(var(--color-primary-100))
8050
7923
  }
8051
7924
 
8052
- .bg-primary-400{
8053
- background-color:rgb(var(--color-primary-400))
8054
- }
8055
-
8056
7925
  .bg-primary-500{
8057
7926
  background-color:rgb(var(--color-primary-500))
8058
7927
  }
@@ -8107,10 +7976,6 @@ trix-toolbar .trix-button-group:not(:first-child){
8107
7976
  background-color:rgb(20 184 166 / var(--tw-bg-opacity))
8108
7977
  }
8109
7978
 
8110
- .bg-transparent{
8111
- background-color:transparent
8112
- }
8113
-
8114
7979
  .bg-violet-500{
8115
7980
  --tw-bg-opacity:1;
8116
7981
  background-color:rgb(139 92 246 / var(--tw-bg-opacity))
@@ -8208,11 +8073,6 @@ trix-toolbar .trix-button-group:not(:first-child){
8208
8073
  padding-right:0.5rem
8209
8074
  }
8210
8075
 
8211
- .px-24{
8212
- padding-left:6rem;
8213
- padding-right:6rem
8214
- }
8215
-
8216
8076
  .px-3{
8217
8077
  padding-left:0.75rem;
8218
8078
  padding-right:0.75rem
@@ -8233,11 +8093,6 @@ trix-toolbar .trix-button-group:not(:first-child){
8233
8093
  padding-right:1.5rem
8234
8094
  }
8235
8095
 
8236
- .px-8{
8237
- padding-left:2rem;
8238
- padding-right:2rem
8239
- }
8240
-
8241
8096
  .py-0{
8242
8097
  padding-top:0px;
8243
8098
  padding-bottom:0px
@@ -8258,11 +8113,6 @@ trix-toolbar .trix-button-group:not(:first-child){
8258
8113
  padding-bottom:0.375rem
8259
8114
  }
8260
8115
 
8261
- .py-12{
8262
- padding-top:3rem;
8263
- padding-bottom:3rem
8264
- }
8265
-
8266
8116
  .py-2{
8267
8117
  padding-top:0.5rem;
8268
8118
  padding-bottom:0.5rem
@@ -8330,10 +8180,6 @@ trix-toolbar .trix-button-group:not(:first-child){
8330
8180
  padding-left:0.25rem
8331
8181
  }
8332
8182
 
8333
- .pl-4{
8334
- padding-left:1rem
8335
- }
8336
-
8337
8183
  .pr-0{
8338
8184
  padding-right:0px
8339
8185
  }
@@ -8342,6 +8188,10 @@ trix-toolbar .trix-button-group:not(:first-child){
8342
8188
  padding-right:0.5rem
8343
8189
  }
8344
8190
 
8191
+ .pr-3{
8192
+ padding-right:0.75rem
8193
+ }
8194
+
8345
8195
  .pt-0{
8346
8196
  padding-top:0px
8347
8197
  }
@@ -8495,11 +8345,6 @@ trix-toolbar .trix-button-group:not(:first-child){
8495
8345
  letter-spacing:-0.025em
8496
8346
  }
8497
8347
 
8498
- .\!text-blue-700{
8499
- --tw-text-opacity:1 !important;
8500
- color:rgb(5 80 133 / var(--tw-text-opacity)) !important
8501
- }
8502
-
8503
8348
  .\!text-pink-600{
8504
8349
  --tw-text-opacity:1 !important;
8505
8350
  color:rgb(219 39 119 / var(--tw-text-opacity)) !important
@@ -8740,10 +8585,6 @@ trix-toolbar .trix-button-group:not(:first-child){
8740
8585
  opacity:0.75
8741
8586
  }
8742
8587
 
8743
- .opacity-80{
8744
- opacity:0.8
8745
- }
8746
-
8747
8588
  .shadow{
8748
8589
  --tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
8749
8590
  --tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
@@ -8815,11 +8656,6 @@ trix-toolbar .trix-button-group:not(:first-child){
8815
8656
  filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)
8816
8657
  }
8817
8658
 
8818
- .sepia{
8819
- --tw-sepia:sepia(100%);
8820
- filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)
8821
- }
8822
-
8823
8659
  .filter{
8824
8660
  filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)
8825
8661
  }
@@ -9151,11 +8987,6 @@ trix-editor {
9151
8987
  background-color:rgb(206 231 248 / var(--tw-bg-opacity))
9152
8988
  }
9153
8989
 
9154
- .hover\:bg-blue-500:hover{
9155
- --tw-bg-opacity:1;
9156
- background-color:rgb(8 134 222 / var(--tw-bg-opacity))
9157
- }
9158
-
9159
8990
  .hover\:bg-blue-600:hover{
9160
8991
  --tw-bg-opacity:1;
9161
8992
  background-color:rgb(6 107 178 / var(--tw-bg-opacity))
@@ -10398,6 +10229,10 @@ trix-editor {
10398
10229
  width:66.666667%
10399
10230
  }
10400
10231
 
10232
+ .md\:w-full{
10233
+ width:100%
10234
+ }
10235
+
10401
10236
  .md\:grid-cols-3{
10402
10237
  grid-template-columns:repeat(3, minmax(0, 1fr))
10403
10238
  }
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: 3.0.1.beta7
4
+ version: 3.0.1.beta9
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: 2023-08-17 00:00:00.000000000 Z
12
+ date: 2023-09-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
@@ -220,6 +220,11 @@ files:
220
220
  - Gemfile.lock
221
221
  - README.md
222
222
  - Rakefile
223
+ - app/assets/builds/avo.base.css
224
+ - app/assets/builds/avo.base.js
225
+ - app/assets/builds/avo.base.js.map
226
+ - app/assets/builds/avo.custom.js
227
+ - app/assets/builds/avo.custom.js.map
223
228
  - app/assets/config/avo_manifest.js
224
229
  - app/assets/stylesheets/avo.base.css
225
230
  - app/assets/stylesheets/css/active-storage.css
@@ -228,6 +233,7 @@ files:
228
233
  - app/assets/stylesheets/css/fields/code.css
229
234
  - app/assets/stylesheets/css/fields/progress.css
230
235
  - app/assets/stylesheets/css/fields/status.css
236
+ - app/assets/stylesheets/css/fields/tags.css
231
237
  - app/assets/stylesheets/css/fields/trix.css
232
238
  - app/assets/stylesheets/css/fonts.css
233
239
  - app/assets/stylesheets/css/loader.css
@@ -1712,7 +1718,6 @@ files:
1712
1718
  - config/credentials.yml.enc
1713
1719
  - config/i18n-tasks.yml
1714
1720
  - config/initializers/pagy.rb
1715
- - config/master.key
1716
1721
  - config/routes.rb
1717
1722
  - config/spring.rb
1718
1723
  - db/factories.rb
@@ -1727,6 +1732,7 @@ files:
1727
1732
  - lib/avo/concerns/filters_session_handler.rb
1728
1733
  - lib/avo/concerns/has_controls.rb
1729
1734
  - lib/avo/concerns/has_description.rb
1735
+ - lib/avo/concerns/has_helpers.rb
1730
1736
  - lib/avo/concerns/has_item_type.rb
1731
1737
  - lib/avo/concerns/has_items.rb
1732
1738
  - lib/avo/concerns/has_stimulus_controllers.rb
@@ -1734,6 +1740,7 @@ files:
1734
1740
  - lib/avo/concerns/is_visible.rb
1735
1741
  - lib/avo/concerns/model_class_constantized.rb
1736
1742
  - lib/avo/concerns/visible_in_different_views.rb
1743
+ - lib/avo/concerns/visible_items.rb
1737
1744
  - lib/avo/configuration.rb
1738
1745
  - lib/avo/configuration/branding.rb
1739
1746
  - lib/avo/configuration/resource_configuration.rb
@@ -1760,6 +1767,7 @@ files:
1760
1767
  - lib/avo/fields/concerns/is_required.rb
1761
1768
  - lib/avo/fields/concerns/is_searchable.rb
1762
1769
  - lib/avo/fields/concerns/use_resource.rb
1770
+ - lib/avo/fields/concerns/use_view_components.rb
1763
1771
  - lib/avo/fields/country_field.rb
1764
1772
  - lib/avo/fields/date_field.rb
1765
1773
  - lib/avo/fields/date_time_field.rb
@@ -1843,6 +1851,7 @@ files:
1843
1851
  - lib/avo/test_helpers.rb
1844
1852
  - lib/avo/tools/tool_manager.rb
1845
1853
  - lib/avo/version.rb
1854
+ - lib/avo/view_inquirer.rb
1846
1855
  - lib/generators/avo/action_generator.rb
1847
1856
  - lib/generators/avo/base_generator.rb
1848
1857
  - lib/generators/avo/card_generator.rb
@@ -1912,9 +1921,6 @@ files:
1912
1921
  - public/avo-assets/avo.base.css
1913
1922
  - public/avo-assets/avo.base.js
1914
1923
  - public/avo-assets/avo.base.js.map
1915
- - public/avo-assets/avo.css
1916
- - public/avo-assets/avo.js
1917
- - public/avo-assets/avo.js.map
1918
1924
  - public/avo-assets/favicon.ico
1919
1925
  - public/avo-assets/fonts/inter-v7-latin-500.eot
1920
1926
  - public/avo-assets/fonts/inter-v7-latin-500.svg
data/config/master.key DELETED
@@ -1 +0,0 @@
1
- 2aeb23d82b909d9c6b5abb62f7058c2a