avo 1.18.1 → 1.19.1.pre.1

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 (107) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +5 -3
  3. data/Gemfile.lock +198 -169
  4. data/app/components/avo/fields/belongs_to_field/index_component.html.erb +1 -1
  5. data/app/components/avo/fields/belongs_to_field/show_component.html.erb +1 -1
  6. data/app/components/avo/fields/common/multiple_file_viewer_component.html.erb +1 -1
  7. data/app/components/avo/fields/common/single_file_viewer_component.html.erb +1 -2
  8. data/app/components/avo/fields/has_one_field/index_component.html.erb +1 -1
  9. data/app/components/avo/fields/has_one_field/show_component.html.erb +1 -1
  10. data/app/components/avo/fields/has_one_field/show_component.rb +6 -1
  11. data/app/components/avo/fields/index_component.rb +2 -2
  12. data/app/components/avo/fields/text_field/index_component.html.erb +5 -1
  13. data/app/components/avo/fields/text_field/show_component.html.erb +5 -1
  14. data/app/components/avo/fields/trix_field/edit_component.html.erb +1 -1
  15. data/app/components/avo/index/grid_item_component.html.erb +4 -4
  16. data/app/components/avo/index/resource_controls_component.html.erb +1 -1
  17. data/app/components/avo/index/resource_controls_component.rb +23 -7
  18. data/app/components/avo/index/resource_table_component.html.erb +1 -1
  19. data/app/components/avo/panel_component.rb +3 -4
  20. data/app/components/avo/resource_component.rb +5 -1
  21. data/app/components/avo/views/resource_edit_component.html.erb +2 -2
  22. data/app/components/avo/views/resource_edit_component.rb +3 -3
  23. data/app/components/avo/views/resource_index_component.html.erb +2 -8
  24. data/app/components/avo/views/resource_index_component.rb +7 -15
  25. data/app/components/avo/views/resource_new_component.html.erb +2 -2
  26. data/app/components/avo/views/resource_new_component.rb +6 -2
  27. data/app/components/avo/views/resource_show_component.html.erb +5 -4
  28. data/app/components/avo/views/resource_show_component.rb +11 -6
  29. data/app/controllers/avo/actions_controller.rb +1 -1
  30. data/app/controllers/avo/application_controller.rb +4 -77
  31. data/app/controllers/avo/attachments_controller.rb +3 -2
  32. data/app/controllers/avo/base_controller.rb +30 -23
  33. data/app/controllers/avo/home_controller.rb +5 -1
  34. data/app/controllers/avo/relations_controller.rb +3 -3
  35. data/app/controllers/avo/search_controller.rb +1 -1
  36. data/app/helpers/avo/application_helper.rb +12 -0
  37. data/app/helpers/avo/resources_helper.rb +1 -1
  38. data/app/helpers/avo/url_helpers.rb +77 -0
  39. data/app/packs/entrypoints/application.css +1 -0
  40. data/app/packs/entrypoints/application.js +7 -0
  41. data/app/packs/js/controllers/loading_button_controller.js +22 -0
  42. data/app/packs/stylesheets/components/status.css +22 -15
  43. data/app/packs/stylesheets/spinner.css +49 -0
  44. data/app/views/avo/actions/show.html.erb +2 -2
  45. data/app/views/avo/base/_actions.html.erb +3 -3
  46. data/app/views/avo/base/_filters.html.erb +1 -1
  47. data/app/views/avo/home/failed_to_load.html.erb +3 -0
  48. data/app/views/avo/partials/_failed_state.html.erb +16 -0
  49. data/app/views/avo/partials/_paginator.html.erb +2 -2
  50. data/app/views/avo/partials/_profile_dropdown.html.erb +7 -5
  51. data/app/views/avo/relations/new.html.erb +0 -2
  52. data/app/views/avo/sidebar/_sidebar.html.erb +1 -1
  53. data/app/views/kaminari/_page.html.erb +1 -1
  54. data/config/routes.rb +7 -5
  55. data/db/factories.rb +9 -0
  56. data/lib/avo/app.rb +12 -12
  57. data/lib/avo/base_action.rb +9 -1
  58. data/lib/avo/base_resource.rb +41 -8
  59. data/lib/avo/configuration.rb +4 -0
  60. data/lib/avo/fields/base_field.rb +15 -4
  61. data/lib/avo/fields/has_and_belongs_to_many_field.rb +1 -19
  62. data/lib/avo/fields/has_base_field.rb +35 -0
  63. data/lib/avo/fields/has_many_field.rb +1 -19
  64. data/lib/avo/fields/has_one_field.rb +3 -19
  65. data/lib/avo/fields/key_value_field.rb +4 -4
  66. data/lib/avo/fields/text_field.rb +2 -0
  67. data/lib/avo/services/authorization_service.rb +8 -4
  68. data/lib/avo/version.rb +1 -1
  69. data/lib/generators/avo/templates/locales/avo.en.yml +12 -3
  70. data/lib/generators/avo/templates/locales/avo.ro.yml +7 -0
  71. data/public/avo-packs/css/{application-f9191617.css → application-c3b50b28.css} +54 -12
  72. data/public/avo-packs/css/application-c3b50b28.css.br +0 -0
  73. data/public/avo-packs/css/{application-f9191617.css.gz → application-c3b50b28.css.gz} +0 -0
  74. data/public/avo-packs/css/application-c3b50b28.css.map +1 -0
  75. data/public/avo-packs/css/application-c3b50b28.css.map.br +0 -0
  76. data/public/avo-packs/css/application-c3b50b28.css.map.gz +0 -0
  77. data/public/avo-packs/js/actioncable-7119dbc1a908641fb263.chunk.js +2 -0
  78. data/public/avo-packs/js/actioncable-7119dbc1a908641fb263.chunk.js.br +0 -0
  79. data/public/avo-packs/js/actioncable-7119dbc1a908641fb263.chunk.js.gz +0 -0
  80. data/public/avo-packs/js/actioncable-7119dbc1a908641fb263.chunk.js.map +1 -0
  81. data/public/avo-packs/js/actioncable-7119dbc1a908641fb263.chunk.js.map.br +0 -0
  82. data/public/avo-packs/js/actioncable-7119dbc1a908641fb263.chunk.js.map.gz +0 -0
  83. data/public/avo-packs/js/application-6fc968cfa52976c4582b.js +26 -0
  84. data/public/avo-packs/js/{application-cc89f096028eb1d4d971.js.LICENSE.txt → application-6fc968cfa52976c4582b.js.LICENSE.txt} +0 -0
  85. data/public/avo-packs/js/application-6fc968cfa52976c4582b.js.br +0 -0
  86. data/public/avo-packs/js/application-6fc968cfa52976c4582b.js.gz +0 -0
  87. data/public/avo-packs/js/application-6fc968cfa52976c4582b.js.map +1 -0
  88. data/public/avo-packs/js/application-6fc968cfa52976c4582b.js.map.br +0 -0
  89. data/public/avo-packs/js/application-6fc968cfa52976c4582b.js.map.gz +0 -0
  90. data/public/avo-packs/manifest.json +21 -21
  91. metadata +30 -24
  92. data/public/avo-packs/css/application-f9191617.css.br +0 -0
  93. data/public/avo-packs/css/application-f9191617.css.map +0 -1
  94. data/public/avo-packs/css/application-f9191617.css.map.br +0 -0
  95. data/public/avo-packs/css/application-f9191617.css.map.gz +0 -0
  96. data/public/avo-packs/js/219-9aa2b689f44613118203.chunk.js +0 -2
  97. data/public/avo-packs/js/219-9aa2b689f44613118203.chunk.js.br +0 -0
  98. data/public/avo-packs/js/219-9aa2b689f44613118203.chunk.js.gz +0 -0
  99. data/public/avo-packs/js/219-9aa2b689f44613118203.chunk.js.map +0 -1
  100. data/public/avo-packs/js/219-9aa2b689f44613118203.chunk.js.map.br +0 -0
  101. data/public/avo-packs/js/219-9aa2b689f44613118203.chunk.js.map.gz +0 -0
  102. data/public/avo-packs/js/application-cc89f096028eb1d4d971.js +0 -26
  103. data/public/avo-packs/js/application-cc89f096028eb1d4d971.js.br +0 -0
  104. data/public/avo-packs/js/application-cc89f096028eb1d4d971.js.gz +0 -0
  105. data/public/avo-packs/js/application-cc89f096028eb1d4d971.js.map +0 -1
  106. data/public/avo-packs/js/application-cc89f096028eb1d4d971.js.map.br +0 -0
  107. data/public/avo-packs/js/application-cc89f096028eb1d4d971.js.map.gz +0 -0
@@ -1,35 +1,35 @@
1
1
  {
2
- "application.css": "/avo-packs/css/application-f9191617.css",
3
- "application.js": "/avo-packs/js/application-cc89f096028eb1d4d971.js",
4
- "css/application-f9191617.css.br": "/avo-packs/css/application-f9191617.css.br",
5
- "css/application-f9191617.css.gz": "/avo-packs/css/application-f9191617.css.gz",
6
- "css/application-f9191617.css.map": "/avo-packs/css/application-f9191617.css.map",
7
- "css/application-f9191617.css.map.br": "/avo-packs/css/application-f9191617.css.map.br",
8
- "css/application-f9191617.css.map.gz": "/avo-packs/css/application-f9191617.css.map.gz",
2
+ "actioncable.js": "/avo-packs/js/actioncable-7119dbc1a908641fb263.chunk.js",
3
+ "application.css": "/avo-packs/css/application-c3b50b28.css",
4
+ "application.js": "/avo-packs/js/application-6fc968cfa52976c4582b.js",
5
+ "css/application-c3b50b28.css.br": "/avo-packs/css/application-c3b50b28.css.br",
6
+ "css/application-c3b50b28.css.gz": "/avo-packs/css/application-c3b50b28.css.gz",
7
+ "css/application-c3b50b28.css.map": "/avo-packs/css/application-c3b50b28.css.map",
8
+ "css/application-c3b50b28.css.map.br": "/avo-packs/css/application-c3b50b28.css.map.br",
9
+ "css/application-c3b50b28.css.map.gz": "/avo-packs/css/application-c3b50b28.css.map.gz",
9
10
  "entrypoints": {
10
11
  "application": {
11
12
  "assets": {
12
13
  "css": [
13
- "/avo-packs/css/application-f9191617.css"
14
+ "/avo-packs/css/application-c3b50b28.css"
14
15
  ],
15
16
  "js": [
16
- "/avo-packs/js/application-cc89f096028eb1d4d971.js"
17
+ "/avo-packs/js/application-6fc968cfa52976c4582b.js"
17
18
  ]
18
19
  }
19
20
  }
20
21
  },
21
- "js/219-9aa2b689f44613118203.chunk.js": "/avo-packs/js/219-9aa2b689f44613118203.chunk.js",
22
- "js/219-9aa2b689f44613118203.chunk.js.br": "/avo-packs/js/219-9aa2b689f44613118203.chunk.js.br",
23
- "js/219-9aa2b689f44613118203.chunk.js.gz": "/avo-packs/js/219-9aa2b689f44613118203.chunk.js.gz",
24
- "js/219-9aa2b689f44613118203.chunk.js.map": "/avo-packs/js/219-9aa2b689f44613118203.chunk.js.map",
25
- "js/219-9aa2b689f44613118203.chunk.js.map.br": "/avo-packs/js/219-9aa2b689f44613118203.chunk.js.map.br",
26
- "js/219-9aa2b689f44613118203.chunk.js.map.gz": "/avo-packs/js/219-9aa2b689f44613118203.chunk.js.map.gz",
27
- "js/application-cc89f096028eb1d4d971.js.LICENSE.txt": "/avo-packs/js/application-cc89f096028eb1d4d971.js.LICENSE.txt",
28
- "js/application-cc89f096028eb1d4d971.js.br": "/avo-packs/js/application-cc89f096028eb1d4d971.js.br",
29
- "js/application-cc89f096028eb1d4d971.js.gz": "/avo-packs/js/application-cc89f096028eb1d4d971.js.gz",
30
- "js/application-cc89f096028eb1d4d971.js.map": "/avo-packs/js/application-cc89f096028eb1d4d971.js.map",
31
- "js/application-cc89f096028eb1d4d971.js.map.br": "/avo-packs/js/application-cc89f096028eb1d4d971.js.map.br",
32
- "js/application-cc89f096028eb1d4d971.js.map.gz": "/avo-packs/js/application-cc89f096028eb1d4d971.js.map.gz",
22
+ "js/actioncable-7119dbc1a908641fb263.chunk.js.br": "/avo-packs/js/actioncable-7119dbc1a908641fb263.chunk.js.br",
23
+ "js/actioncable-7119dbc1a908641fb263.chunk.js.gz": "/avo-packs/js/actioncable-7119dbc1a908641fb263.chunk.js.gz",
24
+ "js/actioncable-7119dbc1a908641fb263.chunk.js.map": "/avo-packs/js/actioncable-7119dbc1a908641fb263.chunk.js.map",
25
+ "js/actioncable-7119dbc1a908641fb263.chunk.js.map.br": "/avo-packs/js/actioncable-7119dbc1a908641fb263.chunk.js.map.br",
26
+ "js/actioncable-7119dbc1a908641fb263.chunk.js.map.gz": "/avo-packs/js/actioncable-7119dbc1a908641fb263.chunk.js.map.gz",
27
+ "js/application-6fc968cfa52976c4582b.js.LICENSE.txt": "/avo-packs/js/application-6fc968cfa52976c4582b.js.LICENSE.txt",
28
+ "js/application-6fc968cfa52976c4582b.js.br": "/avo-packs/js/application-6fc968cfa52976c4582b.js.br",
29
+ "js/application-6fc968cfa52976c4582b.js.gz": "/avo-packs/js/application-6fc968cfa52976c4582b.js.gz",
30
+ "js/application-6fc968cfa52976c4582b.js.map": "/avo-packs/js/application-6fc968cfa52976c4582b.js.map",
31
+ "js/application-6fc968cfa52976c4582b.js.map.br": "/avo-packs/js/application-6fc968cfa52976c4582b.js.map.br",
32
+ "js/application-6fc968cfa52976c4582b.js.map.gz": "/avo-packs/js/application-6fc968cfa52976c4582b.js.map.gz",
33
33
  "media/images/13ae283c0d7cc04efe7e.svg.br": "/avo-packs/media/images/13ae283c0d7cc04efe7e.svg.br",
34
34
  "media/images/13ae283c0d7cc04efe7e.svg.gz": "/avo-packs/media/images/13ae283c0d7cc04efe7e.svg.gz",
35
35
  "media/images/195026a50008c53526ef.svg.br": "/avo-packs/media/images/195026a50008c53526ef.svg.br",
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: 1.18.1
4
+ version: 1.19.1.pre.1
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: 2022-01-07 00:00:00.000000000 Z
12
+ date: 2022-01-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -426,6 +426,7 @@ files:
426
426
  - app/helpers/avo/application_helper.rb
427
427
  - app/helpers/avo/attachments_helper.rb
428
428
  - app/helpers/avo/resources_helper.rb
429
+ - app/helpers/avo/url_helpers.rb
429
430
  - app/mailers/avo/application_mailer.rb
430
431
  - app/packs/entrypoints/application.css
431
432
  - app/packs/entrypoints/application.js
@@ -457,6 +458,7 @@ files:
457
458
  - app/packs/js/controllers/hidden_input_controller.js
458
459
  - app/packs/js/controllers/item_select_all_controller.js
459
460
  - app/packs/js/controllers/item_selector_controller.js
461
+ - app/packs/js/controllers/loading_button_controller.js
460
462
  - app/packs/js/controllers/modal_controller.js
461
463
  - app/packs/js/controllers/multiple_select_filter_controller.js
462
464
  - app/packs/js/controllers/per_page_controller.js
@@ -478,6 +480,7 @@ files:
478
480
  - app/packs/stylesheets/loader.css
479
481
  - app/packs/stylesheets/pagination.css
480
482
  - app/packs/stylesheets/search.css
483
+ - app/packs/stylesheets/spinner.css
481
484
  - app/packs/stylesheets/tailwindcss/base.css
482
485
  - app/packs/stylesheets/tailwindcss/components.css
483
486
  - app/packs/stylesheets/tailwindcss/utilities.css
@@ -544,6 +547,7 @@ files:
544
547
  - app/views/avo/home/_docs.html.erb
545
548
  - app/views/avo/home/_filters.html.erb
546
549
  - app/views/avo/home/_resources.html.erb
550
+ - app/views/avo/home/failed_to_load.html.erb
547
551
  - app/views/avo/home/index.html.erb
548
552
  - app/views/avo/partials/_a_button.html.erb
549
553
  - app/views/avo/partials/_a_link.html.erb
@@ -551,6 +555,7 @@ files:
551
555
  - app/views/avo/partials/_alerts.html.erb
552
556
  - app/views/avo/partials/_custom_tools_alert.html.erb
553
557
  - app/views/avo/partials/_empty_state.html.erb
558
+ - app/views/avo/partials/_failed_state.html.erb
554
559
  - app/views/avo/partials/_footer.html.erb
555
560
  - app/views/avo/partials/_global_search.html.erb
556
561
  - app/views/avo/partials/_head.html.erb
@@ -624,6 +629,7 @@ files:
624
629
  - lib/avo/fields/files_field.rb
625
630
  - lib/avo/fields/gravatar_field.rb
626
631
  - lib/avo/fields/has_and_belongs_to_many_field.rb
632
+ - lib/avo/fields/has_base_field.rb
627
633
  - lib/avo/fields/has_many_field.rb
628
634
  - lib/avo/fields/has_one_field.rb
629
635
  - lib/avo/fields/heading_field.rb
@@ -696,25 +702,25 @@ files:
696
702
  - lib/generators/avo/templates/tool/view.tt
697
703
  - lib/generators/avo/tool_generator.rb
698
704
  - lib/tasks/avo_tasks.rake
699
- - public/avo-packs/css/application-f9191617.css
700
- - public/avo-packs/css/application-f9191617.css.br
701
- - public/avo-packs/css/application-f9191617.css.gz
702
- - public/avo-packs/css/application-f9191617.css.map
703
- - public/avo-packs/css/application-f9191617.css.map.br
704
- - public/avo-packs/css/application-f9191617.css.map.gz
705
- - public/avo-packs/js/219-9aa2b689f44613118203.chunk.js
706
- - public/avo-packs/js/219-9aa2b689f44613118203.chunk.js.br
707
- - public/avo-packs/js/219-9aa2b689f44613118203.chunk.js.gz
708
- - public/avo-packs/js/219-9aa2b689f44613118203.chunk.js.map
709
- - public/avo-packs/js/219-9aa2b689f44613118203.chunk.js.map.br
710
- - public/avo-packs/js/219-9aa2b689f44613118203.chunk.js.map.gz
711
- - public/avo-packs/js/application-cc89f096028eb1d4d971.js
712
- - public/avo-packs/js/application-cc89f096028eb1d4d971.js.LICENSE.txt
713
- - public/avo-packs/js/application-cc89f096028eb1d4d971.js.br
714
- - public/avo-packs/js/application-cc89f096028eb1d4d971.js.gz
715
- - public/avo-packs/js/application-cc89f096028eb1d4d971.js.map
716
- - public/avo-packs/js/application-cc89f096028eb1d4d971.js.map.br
717
- - public/avo-packs/js/application-cc89f096028eb1d4d971.js.map.gz
705
+ - public/avo-packs/css/application-c3b50b28.css
706
+ - public/avo-packs/css/application-c3b50b28.css.br
707
+ - public/avo-packs/css/application-c3b50b28.css.gz
708
+ - public/avo-packs/css/application-c3b50b28.css.map
709
+ - public/avo-packs/css/application-c3b50b28.css.map.br
710
+ - public/avo-packs/css/application-c3b50b28.css.map.gz
711
+ - public/avo-packs/js/actioncable-7119dbc1a908641fb263.chunk.js
712
+ - public/avo-packs/js/actioncable-7119dbc1a908641fb263.chunk.js.br
713
+ - public/avo-packs/js/actioncable-7119dbc1a908641fb263.chunk.js.gz
714
+ - public/avo-packs/js/actioncable-7119dbc1a908641fb263.chunk.js.map
715
+ - public/avo-packs/js/actioncable-7119dbc1a908641fb263.chunk.js.map.br
716
+ - public/avo-packs/js/actioncable-7119dbc1a908641fb263.chunk.js.map.gz
717
+ - public/avo-packs/js/application-6fc968cfa52976c4582b.js
718
+ - public/avo-packs/js/application-6fc968cfa52976c4582b.js.LICENSE.txt
719
+ - public/avo-packs/js/application-6fc968cfa52976c4582b.js.br
720
+ - public/avo-packs/js/application-6fc968cfa52976c4582b.js.gz
721
+ - public/avo-packs/js/application-6fc968cfa52976c4582b.js.map
722
+ - public/avo-packs/js/application-6fc968cfa52976c4582b.js.map.br
723
+ - public/avo-packs/js/application-6fc968cfa52976c4582b.js.map.gz
718
724
  - public/avo-packs/manifest.json
719
725
  - public/avo-packs/media/images/13ae283c0d7cc04efe7e.svg
720
726
  - public/avo-packs/media/images/13ae283c0d7cc04efe7e.svg.br
@@ -755,11 +761,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
755
761
  version: '0'
756
762
  required_rubygems_version: !ruby/object:Gem::Requirement
757
763
  requirements:
758
- - - ">="
764
+ - - ">"
759
765
  - !ruby/object:Gem::Version
760
- version: '0'
766
+ version: 1.3.1
761
767
  requirements: []
762
- rubygems_version: 3.0.3
768
+ rubygems_version: 3.3.3
763
769
  signing_key:
764
770
  specification_version: 4
765
771
  summary: Configuration-based, no-maintenance, extendable Ruby on Rails admin.