avo 3.0.1.beta8 → 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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/app/assets/builds/avo.base.css +39 -274
- data/app/components/avo/field_wrapper_component.html.erb +1 -1
- data/app/components/avo/fields/boolean_field/index_component.html.erb +1 -1
- data/app/components/avo/fields/common/badge_viewer_component.html.erb +1 -25
- data/app/components/avo/fields/common/badge_viewer_component.rb +24 -0
- data/app/components/avo/fields/common/boolean_check_component.html.erb +1 -12
- data/app/components/avo/fields/common/boolean_check_component.rb +2 -1
- data/app/components/avo/fields/common/gravatar_viewer_component.html.erb +1 -1
- data/app/components/avo/fields/common/gravatar_viewer_component.rb +2 -2
- data/app/components/avo/fields/common/heading_component.html.erb +3 -8
- data/app/components/avo/fields/common/heading_component.rb +1 -3
- data/app/components/avo/fields/external_image_field/index_component.html.erb +1 -1
- data/app/components/avo/fields/file_field/index_component.html.erb +2 -2
- data/app/components/avo/fields/gravatar_field/index_component.html.erb +1 -1
- data/app/components/avo/fields/heading_field/edit_component.html.erb +1 -1
- data/app/components/avo/fields/heading_field/show_component.html.erb +1 -1
- data/app/components/avo/fields/id_field/index_component.html.erb +1 -1
- data/app/components/avo/fields/text_field/index_component.html.erb +1 -1
- data/app/components/avo/index/resource_table_component.rb +2 -8
- data/app/components/avo/views/resource_edit_component.html.erb +9 -20
- data/app/controllers/avo/actions_controller.rb +8 -19
- data/app/controllers/avo/search_controller.rb +2 -2
- data/lib/avo/base_action.rb +18 -23
- data/lib/avo/base_resource.rb +1 -1
- data/lib/avo/concerns/filters_session_handler.rb +3 -3
- data/lib/avo/concerns/has_items.rb +0 -4
- data/lib/avo/fields/badge_field.rb +1 -1
- data/lib/avo/fields/base_field.rb +12 -8
- data/lib/avo/fields/external_image_field.rb +2 -2
- data/lib/avo/fields/file_field.rb +2 -2
- data/lib/avo/fields/gravatar_field.rb +2 -2
- data/lib/avo/fields/heading_field.rb +5 -13
- data/lib/avo/fields/id_field.rb +2 -2
- data/lib/avo/fields/text_field.rb +2 -2
- data/lib/avo/resources/items/holder.rb +0 -6
- data/lib/avo/version.rb +1 -1
- data/lib/generators/avo/js/install_generator.rb +2 -2
- data/lib/generators/avo/tailwindcss/install_generator.rb +1 -1
- data/public/avo-assets/avo.base.css +4 -9
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f3264b3be846ad999824eb23e3a1c78333fb4c7c8a50bfbccc159b314667e58c
|
4
|
+
data.tar.gz: 9c641eedc4086095fbc2483eda156f52befb4b4eba24141d8128b89ea0954b7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 880ee4788ba5f6b70f239b7564dfb3e8c0c6f4eefdc4307d2f2986d22889220db4b765463239471176538e2817eeec437b0083fcb9d5cf12c6d95fa6adad6012
|
7
|
+
data.tar.gz: d8fdc737465eed6a6f90e003041c585219037a2301b3b073ed726f6c6c249da6adf309950398fc6df0110da7e690ed7b1249e675a93744ee394cab787e295fb9
|
data/Gemfile.lock
CHANGED
@@ -6432,18 +6432,6 @@ tag.tagify__tag{
|
|
6432
6432
|
}
|
6433
6433
|
}
|
6434
6434
|
|
6435
|
-
.sr-only{
|
6436
|
-
position:absolute;
|
6437
|
-
width:1px;
|
6438
|
-
height:1px;
|
6439
|
-
padding:0;
|
6440
|
-
margin:-1px;
|
6441
|
-
overflow:hidden;
|
6442
|
-
clip:rect(0, 0, 0, 0);
|
6443
|
-
white-space:nowrap;
|
6444
|
-
border-width:0
|
6445
|
-
}
|
6446
|
-
|
6447
6435
|
.pointer-events-none{
|
6448
6436
|
pointer-events:none
|
6449
6437
|
}
|
@@ -6497,14 +6485,6 @@ tag.tagify__tag{
|
|
6497
6485
|
right:0px
|
6498
6486
|
}
|
6499
6487
|
|
6500
|
-
.-bottom-1{
|
6501
|
-
bottom:-0.25rem
|
6502
|
-
}
|
6503
|
-
|
6504
|
-
.-bottom-1\.5{
|
6505
|
-
bottom:-0.375rem
|
6506
|
-
}
|
6507
|
-
|
6508
6488
|
.-top-\[0\.1rem\]{
|
6509
6489
|
top:-0.1rem
|
6510
6490
|
}
|
@@ -6541,18 +6521,10 @@ tag.tagify__tag{
|
|
6541
6521
|
left:1.25rem
|
6542
6522
|
}
|
6543
6523
|
|
6544
|
-
.left-auto{
|
6545
|
-
left:auto
|
6546
|
-
}
|
6547
|
-
|
6548
6524
|
.right-0{
|
6549
6525
|
right:0px
|
6550
6526
|
}
|
6551
6527
|
|
6552
|
-
.right-3{
|
6553
|
-
right:0.75rem
|
6554
|
-
}
|
6555
|
-
|
6556
6528
|
.start-1{
|
6557
6529
|
inset-inline-start:0.25rem
|
6558
6530
|
}
|
@@ -6565,10 +6537,6 @@ tag.tagify__tag{
|
|
6565
6537
|
top:50%
|
6566
6538
|
}
|
6567
6539
|
|
6568
|
-
.top-2{
|
6569
|
-
top:0.5rem
|
6570
|
-
}
|
6571
|
-
|
6572
6540
|
.top-3{
|
6573
6541
|
top:0.75rem
|
6574
6542
|
}
|
@@ -6581,10 +6549,6 @@ tag.tagify__tag{
|
|
6581
6549
|
top:-1px
|
6582
6550
|
}
|
6583
6551
|
|
6584
|
-
.top-auto{
|
6585
|
-
top:auto
|
6586
|
-
}
|
6587
|
-
|
6588
6552
|
.top-full{
|
6589
6553
|
top:100%
|
6590
6554
|
}
|
@@ -6633,42 +6597,10 @@ tag.tagify__tag{
|
|
6633
6597
|
grid-column:span 4 / span 4
|
6634
6598
|
}
|
6635
6599
|
|
6636
|
-
.col-span-full{
|
6637
|
-
grid-column:1 / -1
|
6638
|
-
}
|
6639
|
-
|
6640
|
-
.row-span-1{
|
6641
|
-
grid-row:span 1 / span 1
|
6642
|
-
}
|
6643
|
-
|
6644
|
-
.row-span-2{
|
6645
|
-
grid-row:span 2 / span 2
|
6646
|
-
}
|
6647
|
-
|
6648
|
-
.row-span-3{
|
6649
|
-
grid-row:span 3 / span 3
|
6650
|
-
}
|
6651
|
-
|
6652
|
-
.row-span-4{
|
6653
|
-
grid-row:span 4 / span 4
|
6654
|
-
}
|
6655
|
-
|
6656
|
-
.row-span-5{
|
6657
|
-
grid-row:span 5 / span 5
|
6658
|
-
}
|
6659
|
-
|
6660
|
-
.row-span-6{
|
6661
|
-
grid-row:span 6 / span 6
|
6662
|
-
}
|
6663
|
-
|
6664
6600
|
.float-right{
|
6665
6601
|
float:right
|
6666
6602
|
}
|
6667
6603
|
|
6668
|
-
.float-left{
|
6669
|
-
float:left
|
6670
|
-
}
|
6671
|
-
|
6672
6604
|
.m-0{
|
6673
6605
|
margin:0px
|
6674
6606
|
}
|
@@ -6677,16 +6609,6 @@ tag.tagify__tag{
|
|
6677
6609
|
margin:0.25rem
|
6678
6610
|
}
|
6679
6611
|
|
6680
|
-
.-mx-1{
|
6681
|
-
margin-left:-0.25rem;
|
6682
|
-
margin-right:-0.25rem
|
6683
|
-
}
|
6684
|
-
|
6685
|
-
.-mx-1\.5{
|
6686
|
-
margin-left:-0.375rem;
|
6687
|
-
margin-right:-0.375rem
|
6688
|
-
}
|
6689
|
-
|
6690
6612
|
.-mx-2{
|
6691
6613
|
margin-left:-0.5rem;
|
6692
6614
|
margin-right:-0.5rem
|
@@ -6758,10 +6680,6 @@ tag.tagify__tag{
|
|
6758
6680
|
margin-top:-3rem
|
6759
6681
|
}
|
6760
6682
|
|
6761
|
-
.-mt-2{
|
6762
|
-
margin-top:-0.5rem
|
6763
|
-
}
|
6764
|
-
|
6765
6683
|
.-mt-9{
|
6766
6684
|
margin-top:-2.25rem
|
6767
6685
|
}
|
@@ -6794,10 +6712,6 @@ tag.tagify__tag{
|
|
6794
6712
|
margin-left:8.333333%
|
6795
6713
|
}
|
6796
6714
|
|
6797
|
-
.ml-1\/2{
|
6798
|
-
margin-left:50%
|
6799
|
-
}
|
6800
|
-
|
6801
6715
|
.ml-10{
|
6802
6716
|
margin-left:2.5rem
|
6803
6717
|
}
|
@@ -6814,10 +6728,6 @@ tag.tagify__tag{
|
|
6814
6728
|
margin-left:1rem
|
6815
6729
|
}
|
6816
6730
|
|
6817
|
-
.ml-6{
|
6818
|
-
margin-left:1.5rem
|
6819
|
-
}
|
6820
|
-
|
6821
6731
|
.ml-auto{
|
6822
6732
|
margin-left:auto
|
6823
6733
|
}
|
@@ -6846,10 +6756,6 @@ tag.tagify__tag{
|
|
6846
6756
|
margin-right:1rem
|
6847
6757
|
}
|
6848
6758
|
|
6849
|
-
.mr-px{
|
6850
|
-
margin-right:1px
|
6851
|
-
}
|
6852
|
-
|
6853
6759
|
.mt-0{
|
6854
6760
|
margin-top:0px
|
6855
6761
|
}
|
@@ -7050,34 +6956,10 @@ tag.tagify__tag{
|
|
7050
6956
|
min-height:6rem
|
7051
6957
|
}
|
7052
6958
|
|
7053
|
-
.min-h-\[16rem\]{
|
7054
|
-
min-height:16rem
|
7055
|
-
}
|
7056
|
-
|
7057
|
-
.min-h-\[24rem\]{
|
7058
|
-
min-height:24rem
|
7059
|
-
}
|
7060
|
-
|
7061
|
-
.min-h-\[32rem\]{
|
7062
|
-
min-height:32rem
|
7063
|
-
}
|
7064
|
-
|
7065
6959
|
.min-h-\[3rem\]{
|
7066
6960
|
min-height:3rem
|
7067
6961
|
}
|
7068
6962
|
|
7069
|
-
.min-h-\[40rem\]{
|
7070
|
-
min-height:40rem
|
7071
|
-
}
|
7072
|
-
|
7073
|
-
.min-h-\[48rem\]{
|
7074
|
-
min-height:48rem
|
7075
|
-
}
|
7076
|
-
|
7077
|
-
.min-h-\[8rem\]{
|
7078
|
-
min-height:8rem
|
7079
|
-
}
|
7080
|
-
|
7081
6963
|
.min-h-full{
|
7082
6964
|
min-height:100%
|
7083
6965
|
}
|
@@ -7126,10 +7008,6 @@ tag.tagify__tag{
|
|
7126
7008
|
width:1.25rem
|
7127
7009
|
}
|
7128
7010
|
|
7129
|
-
.w-52{
|
7130
|
-
width:13rem
|
7131
|
-
}
|
7132
|
-
|
7133
7011
|
.w-64{
|
7134
7012
|
width:16rem
|
7135
7013
|
}
|
@@ -7142,10 +7020,6 @@ tag.tagify__tag{
|
|
7142
7020
|
width:1%
|
7143
7021
|
}
|
7144
7022
|
|
7145
|
-
.w-\[calc\(100\%\+1rem\)\]{
|
7146
|
-
width:calc(100% + 1rem)
|
7147
|
-
}
|
7148
|
-
|
7149
7023
|
.w-auto{
|
7150
7024
|
width:auto
|
7151
7025
|
}
|
@@ -7198,18 +7072,10 @@ tag.tagify__tag{
|
|
7198
7072
|
max-width:32rem
|
7199
7073
|
}
|
7200
7074
|
|
7201
|
-
.max-w-xs{
|
7202
|
-
max-width:20rem
|
7203
|
-
}
|
7204
|
-
|
7205
7075
|
.flex-1{
|
7206
7076
|
flex:1 1 0%
|
7207
7077
|
}
|
7208
7078
|
|
7209
|
-
.flex-auto{
|
7210
|
-
flex:1 1 auto
|
7211
|
-
}
|
7212
|
-
|
7213
7079
|
.flex-shrink{
|
7214
7080
|
flex-shrink:1
|
7215
7081
|
}
|
@@ -7391,10 +7257,6 @@ tag.tagify__tag{
|
|
7391
7257
|
justify-content:space-evenly
|
7392
7258
|
}
|
7393
7259
|
|
7394
|
-
.gap-0{
|
7395
|
-
gap:0px
|
7396
|
-
}
|
7397
|
-
|
7398
7260
|
.gap-1{
|
7399
7261
|
gap:0.25rem
|
7400
7262
|
}
|
@@ -7672,11 +7534,6 @@ tag.tagify__tag{
|
|
7672
7534
|
border-color:rgb(172 177 185 / var(--tw-border-opacity))
|
7673
7535
|
}
|
7674
7536
|
|
7675
|
-
.border-gray-50{
|
7676
|
-
--tw-border-opacity:1;
|
7677
|
-
border-color:rgb(241 242 243 / var(--tw-border-opacity))
|
7678
|
-
}
|
7679
|
-
|
7680
7537
|
.border-gray-500{
|
7681
7538
|
--tw-border-opacity:1;
|
7682
7539
|
border-color:rgb(117 125 138 / var(--tw-border-opacity))
|
@@ -7795,6 +7652,11 @@ tag.tagify__tag{
|
|
7795
7652
|
border-color:rgb(113 113 122 / var(--tw-border-opacity))
|
7796
7653
|
}
|
7797
7654
|
|
7655
|
+
.bg-\[\#59b739\]{
|
7656
|
+
--tw-bg-opacity:1;
|
7657
|
+
background-color:rgb(89 183 57 / var(--tw-bg-opacity))
|
7658
|
+
}
|
7659
|
+
|
7798
7660
|
.bg-amber-500{
|
7799
7661
|
--tw-bg-opacity:1;
|
7800
7662
|
background-color:rgb(245 158 11 / var(--tw-bg-opacity))
|
@@ -7809,11 +7671,6 @@ tag.tagify__tag{
|
|
7809
7671
|
background-color:rgb(57 158 229 / var(--tw-bg-opacity))
|
7810
7672
|
}
|
7811
7673
|
|
7812
|
-
.bg-blue-50{
|
7813
|
-
--tw-bg-opacity:1;
|
7814
|
-
background-color:rgb(230 243 252 / var(--tw-bg-opacity))
|
7815
|
-
}
|
7816
|
-
|
7817
7674
|
.bg-blue-500{
|
7818
7675
|
--tw-bg-opacity:1;
|
7819
7676
|
background-color:rgb(8 134 222 / var(--tw-bg-opacity))
|
@@ -7997,6 +7854,36 @@ tag.tagify__tag{
|
|
7997
7854
|
background-color:rgb(113 113 122 / var(--tw-bg-opacity))
|
7998
7855
|
}
|
7999
7856
|
|
7857
|
+
.bg-\[\#f154b2\]{
|
7858
|
+
--tw-bg-opacity:1;
|
7859
|
+
background-color:rgb(241 84 178 / var(--tw-bg-opacity))
|
7860
|
+
}
|
7861
|
+
|
7862
|
+
.bg-\[\#f154b3\]{
|
7863
|
+
--tw-bg-opacity:1;
|
7864
|
+
background-color:rgb(241 84 179 / var(--tw-bg-opacity))
|
7865
|
+
}
|
7866
|
+
|
7867
|
+
.bg-\[\#e3f337\]{
|
7868
|
+
--tw-bg-opacity:1;
|
7869
|
+
background-color:rgb(227 243 55 / var(--tw-bg-opacity))
|
7870
|
+
}
|
7871
|
+
|
7872
|
+
.bg-\[\#975343\]{
|
7873
|
+
--tw-bg-opacity:1;
|
7874
|
+
background-color:rgb(151 83 67 / var(--tw-bg-opacity))
|
7875
|
+
}
|
7876
|
+
|
7877
|
+
.bg-\[\#37e7a7\]{
|
7878
|
+
--tw-bg-opacity:1;
|
7879
|
+
background-color:rgb(55 231 167 / var(--tw-bg-opacity))
|
7880
|
+
}
|
7881
|
+
|
7882
|
+
.bg-\[\#121313\]{
|
7883
|
+
--tw-bg-opacity:1;
|
7884
|
+
background-color:rgb(18 19 19 / var(--tw-bg-opacity))
|
7885
|
+
}
|
7886
|
+
|
8000
7887
|
.bg-opacity-25{
|
8001
7888
|
--tw-bg-opacity:0.25
|
8002
7889
|
}
|
@@ -8033,10 +7920,6 @@ tag.tagify__tag{
|
|
8033
7920
|
padding:0.5rem
|
8034
7921
|
}
|
8035
7922
|
|
8036
|
-
.p-3{
|
8037
|
-
padding:0.75rem
|
8038
|
-
}
|
8039
|
-
|
8040
7923
|
.p-4{
|
8041
7924
|
padding:1rem
|
8042
7925
|
}
|
@@ -8045,10 +7928,6 @@ tag.tagify__tag{
|
|
8045
7928
|
padding:1.5rem
|
8046
7929
|
}
|
8047
7930
|
|
8048
|
-
.p-px{
|
8049
|
-
padding:1px
|
8050
|
-
}
|
8051
|
-
|
8052
7931
|
.px-0{
|
8053
7932
|
padding-left:0px;
|
8054
7933
|
padding-right:0px
|
@@ -8059,11 +7938,6 @@ tag.tagify__tag{
|
|
8059
7938
|
padding-right:0.25rem
|
8060
7939
|
}
|
8061
7940
|
|
8062
|
-
.px-1\.5{
|
8063
|
-
padding-left:0.375rem;
|
8064
|
-
padding-right:0.375rem
|
8065
|
-
}
|
8066
|
-
|
8067
7941
|
.px-10{
|
8068
7942
|
padding-left:2.5rem;
|
8069
7943
|
padding-right:2.5rem
|
@@ -8099,11 +7973,6 @@ tag.tagify__tag{
|
|
8099
7973
|
padding-bottom:0px
|
8100
7974
|
}
|
8101
7975
|
|
8102
|
-
.py-0\.5{
|
8103
|
-
padding-top:0.125rem;
|
8104
|
-
padding-bottom:0.125rem
|
8105
|
-
}
|
8106
|
-
|
8107
7976
|
.py-1{
|
8108
7977
|
padding-top:0.25rem;
|
8109
7978
|
padding-bottom:0.25rem
|
@@ -8177,10 +8046,6 @@ tag.tagify__tag{
|
|
8177
8046
|
padding-bottom:1.5rem
|
8178
8047
|
}
|
8179
8048
|
|
8180
|
-
.pl-1{
|
8181
|
-
padding-left:0.25rem
|
8182
|
-
}
|
8183
|
-
|
8184
8049
|
.pr-0{
|
8185
8050
|
padding-right:0px
|
8186
8051
|
}
|
@@ -8237,25 +8102,11 @@ tag.tagify__tag{
|
|
8237
8102
|
text-align:justify
|
8238
8103
|
}
|
8239
8104
|
|
8240
|
-
.font-sans{
|
8241
|
-
font-family:"Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"
|
8242
|
-
}
|
8243
|
-
|
8244
8105
|
.text-2xl{
|
8245
8106
|
font-size:1.5rem;
|
8246
8107
|
line-height:2rem
|
8247
8108
|
}
|
8248
8109
|
|
8249
|
-
.text-3xl{
|
8250
|
-
font-size:1.875rem;
|
8251
|
-
line-height:2.25rem
|
8252
|
-
}
|
8253
|
-
|
8254
|
-
.text-5xl{
|
8255
|
-
font-size:3rem;
|
8256
|
-
line-height:1
|
8257
|
-
}
|
8258
|
-
|
8259
8110
|
.text-base{
|
8260
8111
|
font-size:1rem;
|
8261
8112
|
line-height:1.5rem
|
@@ -8289,10 +8140,6 @@ tag.tagify__tag{
|
|
8289
8140
|
font-weight:500
|
8290
8141
|
}
|
8291
8142
|
|
8292
|
-
.font-normal{
|
8293
|
-
font-weight:400
|
8294
|
-
}
|
8295
|
-
|
8296
8143
|
.font-semibold{
|
8297
8144
|
font-weight:600
|
8298
8145
|
}
|
@@ -8457,10 +8304,6 @@ tag.tagify__tag{
|
|
8457
8304
|
color:rgb(236 72 153 / var(--tw-text-opacity))
|
8458
8305
|
}
|
8459
8306
|
|
8460
|
-
.text-primary-400{
|
8461
|
-
color:rgb(var(--color-primary-400))
|
8462
|
-
}
|
8463
|
-
|
8464
8307
|
.text-primary-500{
|
8465
8308
|
color:rgb(var(--color-primary-500))
|
8466
8309
|
}
|
@@ -8552,10 +8395,6 @@ tag.tagify__tag{
|
|
8552
8395
|
text-decoration-line:line-through
|
8553
8396
|
}
|
8554
8397
|
|
8555
|
-
.no-underline{
|
8556
|
-
text-decoration-line:none
|
8557
|
-
}
|
8558
|
-
|
8559
8398
|
.antialiased{
|
8560
8399
|
-webkit-font-smoothing:antialiased;
|
8561
8400
|
-moz-osx-font-smoothing:grayscale
|
@@ -8670,12 +8509,6 @@ tag.tagify__tag{
|
|
8670
8509
|
transition-duration:150ms
|
8671
8510
|
}
|
8672
8511
|
|
8673
|
-
.transition-all{
|
8674
|
-
transition-property:all;
|
8675
|
-
transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);
|
8676
|
-
transition-duration:150ms
|
8677
|
-
}
|
8678
|
-
|
8679
8512
|
.transition-opacity{
|
8680
8513
|
transition-property:opacity;
|
8681
8514
|
transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);
|
@@ -8847,10 +8680,6 @@ trix-editor {
|
|
8847
8680
|
background-color:rgb(var(--color-primary-400))
|
8848
8681
|
}
|
8849
8682
|
|
8850
|
-
.focus-within\:border-primary-500:focus-within{
|
8851
|
-
border-color:rgb(var(--color-primary-500))
|
8852
|
-
}
|
8853
|
-
|
8854
8683
|
.hover\:z-\[21\]:hover{
|
8855
8684
|
z-index:21
|
8856
8685
|
}
|
@@ -9024,11 +8853,6 @@ trix-editor {
|
|
9024
8853
|
background-color:rgb(227 229 232 / var(--tw-bg-opacity))
|
9025
8854
|
}
|
9026
8855
|
|
9027
|
-
.hover\:bg-gray-25:hover{
|
9028
|
-
--tw-bg-opacity:1;
|
9029
|
-
background-color:rgb(246 246 247 / var(--tw-bg-opacity))
|
9030
|
-
}
|
9031
|
-
|
9032
8856
|
.hover\:bg-gray-50:hover{
|
9033
8857
|
--tw-bg-opacity:1;
|
9034
8858
|
background-color:rgb(241 242 243 / var(--tw-bg-opacity))
|
@@ -9221,16 +9045,6 @@ trix-editor {
|
|
9221
9045
|
color:rgb(94 100 110 / var(--tw-text-opacity))
|
9222
9046
|
}
|
9223
9047
|
|
9224
|
-
.hover\:text-gray-700:hover{
|
9225
|
-
--tw-text-opacity:1;
|
9226
|
-
color:rgb(70 75 83 / var(--tw-text-opacity))
|
9227
|
-
}
|
9228
|
-
|
9229
|
-
.hover\:text-gray-900:hover{
|
9230
|
-
--tw-text-opacity:1;
|
9231
|
-
color:rgb(23 25 28 / var(--tw-text-opacity))
|
9232
|
-
}
|
9233
|
-
|
9234
9048
|
.hover\:text-white:hover{
|
9235
9049
|
--tw-text-opacity:1;
|
9236
9050
|
color:rgb(255 255 255 / var(--tw-text-opacity))
|
@@ -10005,23 +9819,10 @@ trix-editor {
|
|
10005
9819
|
display:block
|
10006
9820
|
}
|
10007
9821
|
|
10008
|
-
.group:hover .group-hover\:bg-gray-200{
|
10009
|
-
--tw-bg-opacity:1;
|
10010
|
-
background-color:rgb(200 203 208 / var(--tw-bg-opacity))
|
10011
|
-
}
|
10012
|
-
|
10013
|
-
.group:hover .group-hover\:bg-primary-500{
|
10014
|
-
background-color:rgb(var(--color-primary-500))
|
10015
|
-
}
|
10016
|
-
|
10017
9822
|
.group:hover .group-hover\:pt-4{
|
10018
9823
|
padding-top:1rem
|
10019
9824
|
}
|
10020
9825
|
|
10021
|
-
.group:active .group-active\:bg-primary-400{
|
10022
|
-
background-color:rgb(var(--color-primary-400))
|
10023
|
-
}
|
10024
|
-
|
10025
9826
|
@media print{
|
10026
9827
|
.print\:hidden{
|
10027
9828
|
display:none
|
@@ -10061,26 +9862,6 @@ trix-editor {
|
|
10061
9862
|
right:0px
|
10062
9863
|
}
|
10063
9864
|
|
10064
|
-
.sm\:col-span-1{
|
10065
|
-
grid-column:span 1 / span 1
|
10066
|
-
}
|
10067
|
-
|
10068
|
-
.sm\:col-span-2{
|
10069
|
-
grid-column:span 2 / span 2
|
10070
|
-
}
|
10071
|
-
|
10072
|
-
.sm\:col-span-3{
|
10073
|
-
grid-column:span 3 / span 3
|
10074
|
-
}
|
10075
|
-
|
10076
|
-
.sm\:col-span-4{
|
10077
|
-
grid-column:span 4 / span 4
|
10078
|
-
}
|
10079
|
-
|
10080
|
-
.sm\:col-span-5{
|
10081
|
-
grid-column:span 5 / span 5
|
10082
|
-
}
|
10083
|
-
|
10084
9865
|
.sm\:col-span-6{
|
10085
9866
|
grid-column:span 6 / span 6
|
10086
9867
|
}
|
@@ -10113,10 +9894,6 @@ trix-editor {
|
|
10113
9894
|
width:auto
|
10114
9895
|
}
|
10115
9896
|
|
10116
|
-
.sm\:min-w-\[16rem\]{
|
10117
|
-
min-width:16rem
|
10118
|
-
}
|
10119
|
-
|
10120
9897
|
.sm\:min-w-\[300px\]{
|
10121
9898
|
min-width:300px
|
10122
9899
|
}
|
@@ -10133,22 +9910,6 @@ trix-editor {
|
|
10133
9910
|
grid-template-columns:repeat(2, minmax(0, 1fr))
|
10134
9911
|
}
|
10135
9912
|
|
10136
|
-
.sm\:grid-cols-3{
|
10137
|
-
grid-template-columns:repeat(3, minmax(0, 1fr))
|
10138
|
-
}
|
10139
|
-
|
10140
|
-
.sm\:grid-cols-4{
|
10141
|
-
grid-template-columns:repeat(4, minmax(0, 1fr))
|
10142
|
-
}
|
10143
|
-
|
10144
|
-
.sm\:grid-cols-5{
|
10145
|
-
grid-template-columns:repeat(5, minmax(0, 1fr))
|
10146
|
-
}
|
10147
|
-
|
10148
|
-
.sm\:grid-cols-6{
|
10149
|
-
grid-template-columns:repeat(6, minmax(0, 1fr))
|
10150
|
-
}
|
10151
|
-
|
10152
9913
|
.sm\:flex-row{
|
10153
9914
|
flex-direction:row
|
10154
9915
|
}
|
@@ -10226,6 +9987,10 @@ trix-editor {
|
|
10226
9987
|
width:66.666667%
|
10227
9988
|
}
|
10228
9989
|
|
9990
|
+
.md\:w-full{
|
9991
|
+
width:100%
|
9992
|
+
}
|
9993
|
+
|
10229
9994
|
.md\:grid-cols-3{
|
10230
9995
|
grid-template-columns:repeat(3, minmax(0, 1fr))
|
10231
9996
|
}
|
@@ -2,7 +2,7 @@
|
|
2
2
|
class: classes,
|
3
3
|
style: style,
|
4
4
|
data: data do %>
|
5
|
-
<div class="h-full <% if stacked? %> md:pt-4 <% else %> md:pt-0 <% if short? %> md:h-10 <% else %> md:h-14 <% end %> <% end %> pt-4 flex self-start items-center flex-shrink-0 <%= @field.get_html(:classes, view: view, element: :label) %> w-48 <% if compact? %> md:w-48 xl:w-64 <% else %> md:w-64 <% end %> px-6 uppercase font-semibold text-gray-500 text-sm" data-slot="label">
|
5
|
+
<div class="h-full <% if stacked? %> md:pt-4 md:w-full <% else %> md:pt-0 <% if short? %> md:h-10 <% else %> md:h-14 <% end %> <% end %> pt-4 flex self-start items-center flex-shrink-0 <%= @field.get_html(:classes, view: view, element: :label) %> w-48 <% if compact? %> md:w-48 xl:w-64 <% else %> md:w-64 <% end %> px-6 uppercase font-semibold text-gray-500 text-sm" data-slot="label">
|
6
6
|
<% if form.present? %>
|
7
7
|
<%= form.label field.id, label %>
|
8
8
|
<% else %>
|
@@ -1,3 +1,3 @@
|
|
1
|
-
<%= index_field_wrapper **field_wrapper_args, dash_if_blank: false,
|
1
|
+
<%= index_field_wrapper **field_wrapper_args, dash_if_blank: false, flush: true do %>
|
2
2
|
<%= render Avo::Fields::Common::BooleanCheckComponent.new checked: @field.value %>
|
3
3
|
<% end %>
|
@@ -1,25 +1 @@
|
|
1
|
-
|
2
|
-
backgrounds = {
|
3
|
-
info: 'bg-blue-500',
|
4
|
-
success: 'bg-green-500',
|
5
|
-
danger: 'bg-red-500',
|
6
|
-
warning: 'bg-yellow-500',
|
7
|
-
secondary: 'bg-gray-500',
|
8
|
-
}
|
9
|
-
|
10
|
-
label = @value
|
11
|
-
background = :info
|
12
|
-
|
13
|
-
@options.invert.each do |values, type|
|
14
|
-
if [values].flatten.map { |value| value }.include? @value
|
15
|
-
label = @value
|
16
|
-
background = type.to_sym
|
17
|
-
next
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|
21
|
-
classes = 'whitespace-nowrap rounded-md uppercase px-2 py-1 text-xs font-bold block text-center truncate '
|
22
|
-
|
23
|
-
classes += "#{backgrounds[background]} text-white" if backgrounds[background].present?
|
24
|
-
%>
|
25
|
-
<span class="<%= classes %>" style="max-width: 120px;"><%= label %></span>
|
1
|
+
<span class="<%= classes %>" style="max-width: 120px;"><%= @value %></span>
|
@@ -4,5 +4,29 @@ class Avo::Fields::Common::BadgeViewerComponent < ViewComponent::Base
|
|
4
4
|
def initialize(value:, options:)
|
5
5
|
@value = value
|
6
6
|
@options = options
|
7
|
+
@backgrounds = {
|
8
|
+
info: "bg-blue-500",
|
9
|
+
success: "bg-green-500",
|
10
|
+
danger: "bg-red-500",
|
11
|
+
warning: "bg-yellow-500",
|
12
|
+
neutral: "bg-gray-500"
|
13
|
+
}
|
14
|
+
end
|
15
|
+
|
16
|
+
def classes
|
17
|
+
background = :info
|
18
|
+
|
19
|
+
@options.invert.each do |values, type|
|
20
|
+
if [values].flatten.map { |value| value }.include? @value
|
21
|
+
background = type.to_sym
|
22
|
+
next
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
classes = "whitespace-nowrap rounded-md uppercase px-2 py-1 text-xs font-bold block text-center truncate "
|
27
|
+
|
28
|
+
classes += "#{@backgrounds[background]} text-white" if @backgrounds[background].present?
|
29
|
+
|
30
|
+
classes
|
7
31
|
end
|
8
32
|
end
|
@@ -1,12 +1 @@
|
|
1
|
-
|
2
|
-
classes = 'h-6 float-left mr-1'
|
3
|
-
|
4
|
-
if @checked
|
5
|
-
classes += ' text-green-600'
|
6
|
-
icon = 'heroicons/outline/check-circle'
|
7
|
-
else
|
8
|
-
classes += ' text-red-500'
|
9
|
-
icon = 'heroicons/outline/x-circle'
|
10
|
-
end
|
11
|
-
%>
|
12
|
-
<%= helpers.svg "#{icon}.svg", class: classes %>
|
1
|
+
<%= helpers.svg "#{@icon}.svg", class: @classes %>
|
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
class Avo::Fields::Common::BooleanCheckComponent < ViewComponent::Base
|
4
4
|
def initialize(checked: false)
|
5
|
-
@
|
5
|
+
@icon = checked ? "heroicons/outline/check-circle" : "heroicons/outline/x-circle"
|
6
|
+
@classes = "h-6 #{checked ? "text-green-600" : "text-red-500"}"
|
6
7
|
end
|
7
8
|
end
|
@@ -9,4 +9,4 @@
|
|
9
9
|
url = URI::HTTPS.build(host: "www.gravatar.com", path: "/avatar/#{@md5}", query: query)
|
10
10
|
classes = @rounded ? 'rounded-full' : ''
|
11
11
|
%>
|
12
|
-
<%= link_to_if @
|
12
|
+
<%= link_to_if @link_to_record.present?, image_tag(url.to_s, class: classes, width: options[:size], height: options[:size]), @link, title: @title %>
|