avo 2.16.1.pre.1.nativefields → 2.17.1.pre.1.zeitwerk.eager.load.dir
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 +7 -3
- data/Gemfile.lock +43 -8
- data/README.md +1 -1
- data/app/assets/config/avo_manifest.js +1 -0
- data/app/assets/svgs/placeholder.svg +1 -0
- data/app/components/avo/actions_component.html.erb +3 -3
- data/app/components/avo/base_component.rb +7 -4
- data/app/components/avo/field_wrapper_component.html.erb +8 -10
- data/app/components/avo/field_wrapper_component.rb +14 -12
- data/app/components/avo/fields/badge_field/index_component.html.erb +1 -1
- data/app/components/avo/fields/belongs_to_field/edit_component.rb +9 -3
- data/app/components/avo/fields/belongs_to_field/index_component.html.erb +1 -1
- data/app/components/avo/fields/belongs_to_field/show_component.html.erb +1 -1
- data/app/components/avo/fields/belongs_to_field/show_component.rb +1 -1
- data/app/components/avo/fields/boolean_field/index_component.html.erb +1 -1
- data/app/components/avo/fields/boolean_field/show_component.html.erb +1 -1
- data/app/components/avo/fields/boolean_group_field/index_component.html.erb +1 -1
- data/app/components/avo/fields/boolean_group_field/show_component.html.erb +1 -1
- data/app/components/avo/fields/code_field/show_component.html.erb +1 -1
- data/app/components/avo/fields/common/heading_component.html.erb +5 -4
- data/app/components/avo/fields/common/heading_component.rb +6 -1
- data/app/components/avo/fields/country_field/index_component.html.erb +1 -1
- data/app/components/avo/fields/date_field/index_component.html.erb +1 -1
- data/app/components/avo/fields/date_time_field/index_component.html.erb +1 -1
- data/app/components/avo/fields/edit_component.rb +6 -4
- data/app/components/avo/fields/external_image_field/index_component.html.erb +1 -1
- data/app/components/avo/fields/file_field/edit_component.html.erb +2 -1
- data/app/components/avo/fields/file_field/index_component.html.erb +1 -1
- data/app/components/avo/fields/files_field/edit_component.html.erb +2 -1
- data/app/components/avo/fields/files_field/index_component.html.erb +1 -1
- data/app/components/avo/fields/files_field/show_component.html.erb +1 -1
- data/app/components/avo/fields/gravatar_field/index_component.html.erb +1 -1
- data/app/components/avo/fields/has_one_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/index_component.rb +11 -2
- data/app/components/avo/fields/number_field/index_component.html.erb +1 -1
- data/app/components/avo/fields/progress_bar_field/index_component.html.erb +1 -1
- data/app/components/avo/fields/select_field/index_component.html.erb +1 -1
- data/app/components/avo/fields/show_component.rb +7 -1
- data/app/components/avo/fields/status_field/index_component.html.erb +1 -1
- data/app/components/avo/fields/tags_field/index_component.html.erb +1 -1
- data/app/components/avo/fields/text_field/edit_component.html.erb +3 -1
- data/app/components/avo/fields/text_field/index_component.html.erb +1 -1
- data/app/components/avo/fields/trix_field/edit_component.html.erb +1 -1
- data/app/components/avo/filters_component.html.erb +2 -2
- data/app/components/avo/index/grid_cover_empty_state_component.html.erb +1 -1
- data/app/components/avo/index/grid_item_component.html.erb +15 -13
- data/app/components/avo/index/grid_item_component.rb +1 -1
- data/app/components/avo/index/ordering/buttons_component.html.erb +1 -1
- data/app/components/avo/index/resource_controls_component.rb +2 -2
- data/app/components/avo/index/table_row_component.html.erb +1 -1
- data/app/components/avo/panel_component.html.erb +9 -2
- data/app/components/avo/panel_component.rb +3 -4
- data/app/components/avo/resource_component.rb +18 -0
- data/app/components/avo/resource_sidebar_component.html.erb +19 -0
- data/app/components/avo/resource_sidebar_component.rb +26 -0
- data/app/components/avo/sidebar_profile_component.html.erb +1 -1
- data/app/components/avo/tab_switcher_component.html.erb +2 -2
- data/app/components/avo/tab_switcher_component.rb +2 -0
- data/app/components/avo/views/resource_edit_component.html.erb +31 -25
- data/app/components/avo/views/resource_edit_component.rb +1 -1
- data/app/components/avo/views/resource_show_component.html.erb +8 -2
- data/app/components/avo/views/resource_show_component.rb +1 -1
- data/app/controllers/avo/actions_controller.rb +10 -2
- data/app/controllers/avo/application_controller.rb +4 -2
- data/app/controllers/avo/associations_controller.rb +24 -5
- data/app/controllers/avo/attachments_controller.rb +2 -1
- data/app/controllers/avo/base_controller.rb +6 -4
- data/app/controllers/avo/search_controller.rb +13 -4
- data/app/helpers/avo/application_helper.rb +7 -3
- data/app/helpers/avo/resources_helper.rb +2 -2
- data/app/javascript/avo.base.js +3 -1
- data/app/javascript/js/controllers/action_controller.js +1 -4
- data/app/javascript/js/controllers/actions_picker_controller.js +8 -9
- data/app/javascript/js/controllers/tabs_controller.js +14 -27
- data/app/views/avo/actions/show.html.erb +2 -2
- data/app/views/avo/home/failed_to_load.html.erb +3 -2
- data/avo.gemspec +2 -2
- data/config/brakeman.ignore +40 -0
- data/config/i18n-tasks.yml +159 -0
- data/config/routes.rb +1 -1
- data/db/factories.rb +20 -0
- data/lib/avo/app.rb +6 -0
- data/lib/avo/base_resource.rb +26 -0
- data/lib/avo/concerns/fetches_things.rb +1 -1
- data/lib/avo/concerns/has_fields.rb +22 -0
- data/lib/avo/concerns/is_resource_item.rb +4 -0
- data/lib/avo/configuration/branding.rb +9 -1
- data/lib/avo/dynamic_router.rb +19 -15
- data/lib/avo/engine.rb +9 -0
- data/lib/avo/fields/belongs_to_field.rb +3 -0
- data/lib/avo/fields/heading_field.rb +15 -0
- data/lib/avo/items_holder.rb +4 -0
- data/lib/avo/licensing/pro_license.rb +1 -0
- data/lib/avo/menu/builder.rb +1 -1
- data/lib/avo/menu/menu.rb +0 -2
- data/lib/avo/reloader.rb +27 -26
- data/lib/avo/services/authorization_service.rb +17 -3
- data/lib/avo/services/encryption_service.rb +1 -1
- data/lib/avo/sidebar.rb +60 -0
- data/lib/avo/sidebar_builder.rb +24 -0
- data/lib/avo/version.rb +1 -1
- data/lib/generators/avo/templates/field/components/index_component.html.erb.tt +1 -1
- data/lib/generators/avo/templates/initializer/avo.tt +2 -1
- data/lib/generators/avo/templates/locales/avo.en.yml +107 -107
- data/lib/generators/avo/templates/locales/avo.fr.yml +107 -107
- data/lib/generators/avo/templates/locales/avo.nb.yml +119 -0
- data/lib/generators/avo/templates/locales/avo.nn.yml +119 -0
- data/lib/generators/avo/templates/locales/avo.pt-BR.yml +109 -84
- data/lib/generators/avo/templates/locales/avo.ro.yml +109 -81
- data/lib/generators/avo/templates/locales/avo.tr.yml +119 -0
- data/public/avo-assets/avo.base.css +67 -79
- data/public/avo-assets/avo.base.js +63 -63
- data/public/avo-assets/avo.base.js.map +3 -3
- metadata +16 -22
- data/app/views/avo/home/failed_to_load.html copy.erb +0 -23
- data/lib/generators/avo/templates/locales/avo.nb-NO.yml +0 -93
@@ -6349,10 +6349,6 @@ trix-toolbar .trix-button-group:not(:first-child){
|
|
6349
6349
|
z-index:40
|
6350
6350
|
}
|
6351
6351
|
|
6352
|
-
.z-30{
|
6353
|
-
z-index:30
|
6354
|
-
}
|
6355
|
-
|
6356
6352
|
.z-\[100\]{
|
6357
6353
|
z-index:100
|
6358
6354
|
}
|
@@ -6361,6 +6357,10 @@ trix-toolbar .trix-button-group:not(:first-child){
|
|
6361
6357
|
z-index:60
|
6362
6358
|
}
|
6363
6359
|
|
6360
|
+
.z-30{
|
6361
|
+
z-index:30
|
6362
|
+
}
|
6363
|
+
|
6364
6364
|
.col-span-1{
|
6365
6365
|
grid-column:span 1 / span 1
|
6366
6366
|
}
|
@@ -6400,16 +6400,21 @@ trix-toolbar .trix-button-group:not(:first-child){
|
|
6400
6400
|
margin-right:0.75rem
|
6401
6401
|
}
|
6402
6402
|
|
6403
|
-
.my-6{
|
6404
|
-
margin-top:1.5rem;
|
6405
|
-
margin-bottom:1.5rem
|
6406
|
-
}
|
6407
|
-
|
6408
6403
|
.my-4{
|
6409
6404
|
margin-top:1rem;
|
6410
6405
|
margin-bottom:1rem
|
6411
6406
|
}
|
6412
6407
|
|
6408
|
+
.-mx-6{
|
6409
|
+
margin-left:-1.5rem;
|
6410
|
+
margin-right:-1.5rem
|
6411
|
+
}
|
6412
|
+
|
6413
|
+
.my-6{
|
6414
|
+
margin-top:1.5rem;
|
6415
|
+
margin-bottom:1.5rem
|
6416
|
+
}
|
6417
|
+
|
6413
6418
|
.my-\[2px\]{
|
6414
6419
|
margin-top:2px;
|
6415
6420
|
margin-bottom:2px
|
@@ -6445,19 +6450,10 @@ trix-toolbar .trix-button-group:not(:first-child){
|
|
6445
6450
|
margin-right:1.5rem
|
6446
6451
|
}
|
6447
6452
|
|
6448
|
-
.-mx-4{
|
6449
|
-
margin-left:-1rem;
|
6450
|
-
margin-right:-1rem
|
6451
|
-
}
|
6452
|
-
|
6453
6453
|
.mt-3{
|
6454
6454
|
margin-top:0.75rem
|
6455
6455
|
}
|
6456
6456
|
|
6457
|
-
.mt-4{
|
6458
|
-
margin-top:1rem
|
6459
|
-
}
|
6460
|
-
|
6461
6457
|
.mt-8{
|
6462
6458
|
margin-top:2rem
|
6463
6459
|
}
|
@@ -6474,6 +6470,10 @@ trix-toolbar .trix-button-group:not(:first-child){
|
|
6474
6470
|
margin-bottom:0px
|
6475
6471
|
}
|
6476
6472
|
|
6473
|
+
.mt-4{
|
6474
|
+
margin-top:1rem
|
6475
|
+
}
|
6476
|
+
|
6477
6477
|
.mt-2{
|
6478
6478
|
margin-top:0.5rem
|
6479
6479
|
}
|
@@ -6482,34 +6482,6 @@ trix-toolbar .trix-button-group:not(:first-child){
|
|
6482
6482
|
margin-top:0.25rem
|
6483
6483
|
}
|
6484
6484
|
|
6485
|
-
.-ml-20{
|
6486
|
-
margin-left:-5rem
|
6487
|
-
}
|
6488
|
-
|
6489
|
-
.-mt-12{
|
6490
|
-
margin-top:-3rem
|
6491
|
-
}
|
6492
|
-
|
6493
|
-
.-ml-10{
|
6494
|
-
margin-left:-2.5rem
|
6495
|
-
}
|
6496
|
-
|
6497
|
-
.-mt-24{
|
6498
|
-
margin-top:-6rem
|
6499
|
-
}
|
6500
|
-
|
6501
|
-
.ml-8{
|
6502
|
-
margin-left:2rem
|
6503
|
-
}
|
6504
|
-
|
6505
|
-
.ml-20{
|
6506
|
-
margin-left:5rem
|
6507
|
-
}
|
6508
|
-
|
6509
|
-
.-mt-10{
|
6510
|
-
margin-top:-2.5rem
|
6511
|
-
}
|
6512
|
-
|
6513
6485
|
.mb-4{
|
6514
6486
|
margin-bottom:1rem
|
6515
6487
|
}
|
@@ -6542,6 +6514,10 @@ trix-toolbar .trix-button-group:not(:first-child){
|
|
6542
6514
|
margin-bottom:0.5rem
|
6543
6515
|
}
|
6544
6516
|
|
6517
|
+
.-mt-12{
|
6518
|
+
margin-top:-3rem
|
6519
|
+
}
|
6520
|
+
|
6545
6521
|
.ml-1\/2{
|
6546
6522
|
margin-left:50%
|
6547
6523
|
}
|
@@ -6678,18 +6654,6 @@ trix-toolbar .trix-button-group:not(:first-child){
|
|
6678
6654
|
height:100%
|
6679
6655
|
}
|
6680
6656
|
|
6681
|
-
.h-40{
|
6682
|
-
height:10rem
|
6683
|
-
}
|
6684
|
-
|
6685
|
-
.h-20{
|
6686
|
-
height:5rem
|
6687
|
-
}
|
6688
|
-
|
6689
|
-
.h-8{
|
6690
|
-
height:2rem
|
6691
|
-
}
|
6692
|
-
|
6693
6657
|
.h-64{
|
6694
6658
|
height:16rem
|
6695
6659
|
}
|
@@ -6706,6 +6670,10 @@ trix-toolbar .trix-button-group:not(:first-child){
|
|
6706
6670
|
height:4rem
|
6707
6671
|
}
|
6708
6672
|
|
6673
|
+
.h-8{
|
6674
|
+
height:2rem
|
6675
|
+
}
|
6676
|
+
|
6709
6677
|
.h-\[250px\]{
|
6710
6678
|
height:250px
|
6711
6679
|
}
|
@@ -6722,6 +6690,10 @@ trix-toolbar .trix-button-group:not(:first-child){
|
|
6722
6690
|
height:2.5rem
|
6723
6691
|
}
|
6724
6692
|
|
6693
|
+
.h-20{
|
6694
|
+
height:5rem
|
6695
|
+
}
|
6696
|
+
|
6725
6697
|
.h-9{
|
6726
6698
|
height:2.25rem
|
6727
6699
|
}
|
@@ -6802,6 +6774,10 @@ trix-toolbar .trix-button-group:not(:first-child){
|
|
6802
6774
|
width:4rem
|
6803
6775
|
}
|
6804
6776
|
|
6777
|
+
.w-2\/3{
|
6778
|
+
width:66.666667%
|
6779
|
+
}
|
6780
|
+
|
6805
6781
|
.w-64{
|
6806
6782
|
width:16rem
|
6807
6783
|
}
|
@@ -7553,6 +7529,10 @@ trix-toolbar .trix-button-group:not(:first-child){
|
|
7553
7529
|
background-color:rgb(47 50 55 / var(--tw-bg-opacity))
|
7554
7530
|
}
|
7555
7531
|
|
7532
|
+
.bg-primary-100{
|
7533
|
+
background-color:rgb(var(--color-primary-100))
|
7534
|
+
}
|
7535
|
+
|
7556
7536
|
.bg-gray-50{
|
7557
7537
|
--tw-bg-opacity:1;
|
7558
7538
|
background-color:rgb(241 242 243 / var(--tw-bg-opacity))
|
@@ -7653,11 +7633,6 @@ trix-toolbar .trix-button-group:not(:first-child){
|
|
7653
7633
|
padding-right:0px
|
7654
7634
|
}
|
7655
7635
|
|
7656
|
-
.py-12{
|
7657
|
-
padding-top:3rem;
|
7658
|
-
padding-bottom:3rem
|
7659
|
-
}
|
7660
|
-
|
7661
7636
|
.py-4{
|
7662
7637
|
padding-top:1rem;
|
7663
7638
|
padding-bottom:1rem
|
@@ -8085,8 +8060,10 @@ trix-toolbar .trix-button-group:not(:first-child){
|
|
8085
8060
|
opacity:1
|
8086
8061
|
}
|
8087
8062
|
|
8088
|
-
.
|
8089
|
-
|
8063
|
+
.shadow-md{
|
8064
|
+
--tw-shadow:0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
8065
|
+
--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
|
8066
|
+
box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)
|
8090
8067
|
}
|
8091
8068
|
|
8092
8069
|
.shadow-panel{
|
@@ -8107,18 +8084,18 @@ trix-toolbar .trix-button-group:not(:first-child){
|
|
8107
8084
|
box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)
|
8108
8085
|
}
|
8109
8086
|
|
8110
|
-
.shadow{
|
8111
|
-
--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
8112
|
-
--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
|
8113
|
-
box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)
|
8114
|
-
}
|
8115
|
-
|
8116
8087
|
.shadow-context{
|
8117
8088
|
--tw-shadow:0 20px 25px -5px rgba(0, 0, 0, 0.25), 0 0 25px -5px rgba(0, 0, 0, 0.1);
|
8118
8089
|
--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color), 0 0 25px -5px var(--tw-shadow-color);
|
8119
8090
|
box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)
|
8120
8091
|
}
|
8121
8092
|
|
8093
|
+
.shadow{
|
8094
|
+
--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
8095
|
+
--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
|
8096
|
+
box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)
|
8097
|
+
}
|
8098
|
+
|
8122
8099
|
.outline-none{
|
8123
8100
|
outline:2px solid transparent;
|
8124
8101
|
outline-offset:2px
|
@@ -8133,11 +8110,6 @@ trix-toolbar .trix-button-group:not(:first-child){
|
|
8133
8110
|
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)
|
8134
8111
|
}
|
8135
8112
|
|
8136
|
-
.sepia{
|
8137
|
-
--tw-sepia:sepia(100%);
|
8138
|
-
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)
|
8139
|
-
}
|
8140
|
-
|
8141
8113
|
.filter{
|
8142
8114
|
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)
|
8143
8115
|
}
|
@@ -8257,6 +8229,11 @@ trix-editor {
|
|
8257
8229
|
overflow-y: auto;
|
8258
8230
|
}
|
8259
8231
|
|
8232
|
+
.placeholder\:text-gray-300::placeholder{
|
8233
|
+
--tw-text-opacity:1;
|
8234
|
+
color:rgb(172 177 185 / var(--tw-text-opacity))
|
8235
|
+
}
|
8236
|
+
|
8260
8237
|
.checked\:block:checked{
|
8261
8238
|
display:block
|
8262
8239
|
}
|
@@ -9480,6 +9457,10 @@ trix-editor {
|
|
9480
9457
|
width:auto
|
9481
9458
|
}
|
9482
9459
|
|
9460
|
+
.sm\:w-1\/3{
|
9461
|
+
width:33.333333%
|
9462
|
+
}
|
9463
|
+
|
9483
9464
|
.sm\:min-w-\[16rem\]{
|
9484
9465
|
min-width:16rem
|
9485
9466
|
}
|
@@ -9528,6 +9509,10 @@ trix-editor {
|
|
9528
9509
|
justify-content:space-between
|
9529
9510
|
}
|
9530
9511
|
|
9512
|
+
.sm\:gap-4{
|
9513
|
+
gap:1rem
|
9514
|
+
}
|
9515
|
+
|
9531
9516
|
.sm\:space-x-8 > :not([hidden]) ~ :not([hidden]){
|
9532
9517
|
--tw-space-x-reverse:0;
|
9533
9518
|
margin-right:calc(2rem * var(--tw-space-x-reverse));
|
@@ -9593,9 +9578,8 @@ trix-editor {
|
|
9593
9578
|
padding-right:6rem
|
9594
9579
|
}
|
9595
9580
|
|
9596
|
-
.md\:
|
9597
|
-
padding-
|
9598
|
-
padding-right:1.5rem
|
9581
|
+
.md\:pt-4{
|
9582
|
+
padding-top:1rem
|
9599
9583
|
}
|
9600
9584
|
|
9601
9585
|
.md\:pt-0{
|
@@ -9692,6 +9676,10 @@ trix-editor {
|
|
9692
9676
|
margin-top:0px
|
9693
9677
|
}
|
9694
9678
|
|
9679
|
+
.xl\:w-64{
|
9680
|
+
width:16rem
|
9681
|
+
}
|
9682
|
+
|
9695
9683
|
.xl\:grid-cols-4{
|
9696
9684
|
grid-template-columns:repeat(4, minmax(0, 1fr))
|
9697
9685
|
}
|