avo 2.29.1 → 2.30.1.pre1.pr1683
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 +2 -0
- data/Gemfile.lock +6 -4
- data/app/components/avo/fields/common/files/controls_component.html.erb +29 -0
- data/app/components/avo/fields/common/files/controls_component.rb +19 -0
- data/app/components/avo/fields/common/files/list_viewer_component.html.erb +14 -0
- data/app/components/avo/fields/common/files/list_viewer_component.rb +26 -0
- data/app/components/avo/fields/common/files/view_type/grid_component.html.erb +27 -0
- data/app/components/avo/fields/common/{single_file_viewer_component.rb → files/view_type/grid_component.rb} +7 -12
- data/app/components/avo/fields/common/files/view_type/list_component.html.erb +22 -0
- data/app/components/avo/fields/common/files/view_type/list_component.rb +15 -0
- data/app/components/avo/fields/file_field/edit_component.html.erb +1 -1
- data/app/components/avo/fields/file_field/show_component.html.erb +1 -1
- data/app/components/avo/fields/files_field/edit_component.html.erb +2 -2
- data/app/components/avo/fields/files_field/show_component.html.erb +2 -2
- data/app/components/avo/fields/location_field/edit_component.html.erb +22 -0
- data/app/components/avo/fields/location_field/edit_component.rb +4 -0
- data/app/components/avo/fields/location_field/show_component.html.erb +7 -0
- data/app/components/avo/fields/location_field/show_component.rb +4 -0
- data/app/javascript/js/application.js +2 -0
- data/app/views/avo/partials/_view_toggle_button.html.erb +4 -0
- data/config/master.key +1 -0
- data/db/factories.rb +1 -0
- data/lib/avo/fields/base_field.rb +4 -2
- data/lib/avo/fields/file_field.rb +2 -0
- data/lib/avo/fields/files_field.rb +13 -0
- data/lib/avo/fields/id_field.rb +2 -1
- data/lib/avo/fields/location_field.rb +70 -0
- data/lib/avo/version.rb +1 -1
- data/lib/generators/avo/resource_generator.rb +1 -1
- data/public/avo-assets/avo.base.css +29 -22
- data/public/avo-assets/avo.base.js +681 -185
- data/public/avo-assets/avo.base.js.map +3 -3
- metadata +18 -8
- data/app/components/avo/fields/common/files_list_viewer_component.html.erb +0 -5
- data/app/components/avo/fields/common/files_list_viewer_component.rb +0 -8
- data/app/components/avo/fields/common/single_file_viewer_component.html.erb +0 -55
@@ -6386,6 +6386,14 @@ trix-toolbar .trix-button-group:not(:first-child){
|
|
6386
6386
|
grid-column:1 / -1
|
6387
6387
|
}
|
6388
6388
|
|
6389
|
+
.col-span-7{
|
6390
|
+
grid-column:span 7 / span 7
|
6391
|
+
}
|
6392
|
+
|
6393
|
+
.col-span-4{
|
6394
|
+
grid-column:span 4 / span 4
|
6395
|
+
}
|
6396
|
+
|
6389
6397
|
.float-right{
|
6390
6398
|
float:right
|
6391
6399
|
}
|
@@ -6595,6 +6603,10 @@ trix-toolbar .trix-button-group:not(:first-child){
|
|
6595
6603
|
margin-bottom:0.25rem
|
6596
6604
|
}
|
6597
6605
|
|
6606
|
+
.-mt-9{
|
6607
|
+
margin-top:-2.25rem
|
6608
|
+
}
|
6609
|
+
|
6598
6610
|
.block{
|
6599
6611
|
display:block
|
6600
6612
|
}
|
@@ -6631,6 +6643,10 @@ trix-toolbar .trix-button-group:not(:first-child){
|
|
6631
6643
|
aspect-ratio:1 / 1
|
6632
6644
|
}
|
6633
6645
|
|
6646
|
+
.aspect-video{
|
6647
|
+
aspect-ratio:16 / 9
|
6648
|
+
}
|
6649
|
+
|
6634
6650
|
.h-36{
|
6635
6651
|
height:9rem
|
6636
6652
|
}
|
@@ -6711,10 +6727,6 @@ trix-toolbar .trix-button-group:not(:first-child){
|
|
6711
6727
|
height:2.25rem
|
6712
6728
|
}
|
6713
6729
|
|
6714
|
-
.max-h-\[42rem\]{
|
6715
|
-
max-height:42rem
|
6716
|
-
}
|
6717
|
-
|
6718
6730
|
.max-h-full{
|
6719
6731
|
max-height:100%
|
6720
6732
|
}
|
@@ -6998,10 +7010,6 @@ trix-toolbar .trix-button-group:not(:first-child){
|
|
6998
7010
|
gap:1.5rem
|
6999
7011
|
}
|
7000
7012
|
|
7001
|
-
.gap-3{
|
7002
|
-
gap:0.75rem
|
7003
|
-
}
|
7004
|
-
|
7005
7013
|
.gap-1{
|
7006
7014
|
gap:0.25rem
|
7007
7015
|
}
|
@@ -7066,12 +7074,6 @@ trix-toolbar .trix-button-group:not(:first-child){
|
|
7066
7074
|
margin-left:calc(0.75rem * calc(1 - var(--tw-space-x-reverse)))
|
7067
7075
|
}
|
7068
7076
|
|
7069
|
-
.space-y-3 > :not([hidden]) ~ :not([hidden]){
|
7070
|
-
--tw-space-y-reverse:0;
|
7071
|
-
margin-top:calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
|
7072
|
-
margin-bottom:calc(0.75rem * var(--tw-space-y-reverse))
|
7073
|
-
}
|
7074
|
-
|
7075
7077
|
.divide-y > :not([hidden]) ~ :not([hidden]){
|
7076
7078
|
--tw-divide-y-reverse:0;
|
7077
7079
|
border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));
|
@@ -7111,6 +7113,10 @@ trix-toolbar .trix-button-group:not(:first-child){
|
|
7111
7113
|
overflow-x:auto
|
7112
7114
|
}
|
7113
7115
|
|
7116
|
+
.overflow-x-scroll{
|
7117
|
+
overflow-x:scroll
|
7118
|
+
}
|
7119
|
+
|
7114
7120
|
.truncate{
|
7115
7121
|
overflow:hidden;
|
7116
7122
|
text-overflow:ellipsis;
|
@@ -7561,6 +7567,11 @@ trix-toolbar .trix-button-group:not(:first-child){
|
|
7561
7567
|
background-color:rgb(94 100 110 / var(--tw-bg-opacity))
|
7562
7568
|
}
|
7563
7569
|
|
7570
|
+
.bg-slate-100{
|
7571
|
+
--tw-bg-opacity:1;
|
7572
|
+
background-color:rgb(241 245 249 / var(--tw-bg-opacity))
|
7573
|
+
}
|
7574
|
+
|
7564
7575
|
.bg-opacity-25{
|
7565
7576
|
--tw-bg-opacity:0.25
|
7566
7577
|
}
|
@@ -7601,6 +7612,10 @@ trix-toolbar .trix-button-group:not(:first-child){
|
|
7601
7612
|
padding:0.25rem
|
7602
7613
|
}
|
7603
7614
|
|
7615
|
+
.p-1\.5{
|
7616
|
+
padding:0.375rem
|
7617
|
+
}
|
7618
|
+
|
7604
7619
|
.px-1{
|
7605
7620
|
padding-left:0.25rem;
|
7606
7621
|
padding-right:0.25rem
|
@@ -9702,10 +9717,6 @@ trix-editor {
|
|
9702
9717
|
grid-template-columns:repeat(4, minmax(0, 1fr))
|
9703
9718
|
}
|
9704
9719
|
|
9705
|
-
.xl\:grid-cols-3{
|
9706
|
-
grid-template-columns:repeat(3, minmax(0, 1fr))
|
9707
|
-
}
|
9708
|
-
|
9709
9720
|
.xl\:flex-row{
|
9710
9721
|
flex-direction:row
|
9711
9722
|
}
|
@@ -9764,8 +9775,4 @@ trix-editor {
|
|
9764
9775
|
.\32xl\:grid-cols-6{
|
9765
9776
|
grid-template-columns:repeat(6, minmax(0, 1fr))
|
9766
9777
|
}
|
9767
|
-
|
9768
|
-
.\32xl\:grid-cols-4{
|
9769
|
-
grid-template-columns:repeat(4, minmax(0, 1fr))
|
9770
|
-
}
|
9771
9778
|
}
|