avo 2.5.2.pre.6 → 2.5.2.pre.7

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 (83) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +2 -0
  3. data/Gemfile.lock +4 -1
  4. data/app/assets/builds/avo.css +766 -301
  5. data/app/assets/builds/avo.js +212 -123
  6. data/app/assets/builds/avo.js.map +3 -3
  7. data/app/assets/stylesheets/avo.css +3 -33
  8. data/app/assets/stylesheets/css/alerts.css +35 -0
  9. data/app/assets/stylesheets/css/search.css +1 -1
  10. data/app/assets/stylesheets/css/tags.css +16 -0
  11. data/app/assets/svgs/heroicons/solid/user-remove.svg +1 -1
  12. data/app/components/avo/actions_component.html.erb +1 -2
  13. data/app/components/avo/alert_component.html.erb +1 -1
  14. data/app/components/avo/alert_component.rb +5 -24
  15. data/app/components/avo/button_component.rb +7 -46
  16. data/app/components/avo/fields/tags_field/edit_component.html.erb +27 -0
  17. data/app/components/avo/fields/tags_field/edit_component.rb +4 -0
  18. data/app/components/avo/fields/tags_field/index_component.html.erb +14 -0
  19. data/app/components/avo/fields/tags_field/index_component.rb +7 -0
  20. data/app/components/avo/fields/tags_field/show_component.html.erb +7 -0
  21. data/app/components/avo/fields/tags_field/show_component.rb +11 -0
  22. data/app/components/avo/fields/tags_field/tag_component.html.erb +9 -0
  23. data/app/components/avo/fields/tags_field/tag_component.rb +11 -0
  24. data/app/components/avo/filters_component.html.erb +1 -1
  25. data/app/components/avo/index/field_wrapper_component.html.erb +1 -1
  26. data/app/components/avo/index/grid_cover_empty_state_component.html.erb +1 -1
  27. data/app/components/avo/index/resource_table_component.html.erb +1 -1
  28. data/app/components/avo/index/table_row_component.html.erb +1 -1
  29. data/app/components/avo/panel_component.html.erb +3 -3
  30. data/app/components/avo/panel_component.rb +1 -1
  31. data/app/components/avo/resource_component.rb +0 -50
  32. data/app/components/avo/sidebar/group_component.html.erb +2 -4
  33. data/app/components/avo/sidebar/heading_component.html.erb +1 -1
  34. data/app/components/avo/sidebar/link_component.html.erb +1 -1
  35. data/app/components/avo/sidebar/link_component.rb +1 -1
  36. data/app/components/avo/sidebar_component.html.erb +13 -5
  37. data/app/components/avo/sidebar_profile_component.html.erb +1 -1
  38. data/app/components/avo/views/resource_edit_component.html.erb +3 -28
  39. data/app/components/avo/views/resource_edit_component.rb +6 -4
  40. data/app/components/avo/views/resource_index_component.html.erb +9 -17
  41. data/app/components/avo/views/resource_new_component.html.erb +2 -8
  42. data/app/components/avo/views/resource_show_component.html.erb +6 -16
  43. data/app/components/avo/views/resource_show_component.rb +45 -0
  44. data/app/controllers/avo/actions_controller.rb +8 -23
  45. data/app/controllers/avo/associations_controller.rb +3 -3
  46. data/app/controllers/avo/base_controller.rb +16 -25
  47. data/app/controllers/avo/private_controller.rb +0 -1
  48. data/app/controllers/avo/search_controller.rb +2 -2
  49. data/app/helpers/avo/application_helper.rb +1 -1
  50. data/app/javascript/js/application.js +1 -1
  51. data/app/javascript/js/controllers/alerts_controller.js +26 -0
  52. data/app/javascript/js/controllers/base_controller.js +22 -0
  53. data/app/javascript/js/controllers/fields/key_value_controller.js +1 -1
  54. data/app/javascript/js/controllers/fields/tags_field_controller.js +86 -0
  55. data/app/javascript/js/controllers/fields/tags_field_helpers.js +47 -0
  56. data/app/javascript/js/controllers/filter_controller.js +1 -4
  57. data/app/javascript/js/controllers.js +4 -0
  58. data/app/views/avo/actions/show.html.erb +2 -5
  59. data/app/views/avo/partials/_logo.html.erb +1 -1
  60. data/app/views/avo/partials/_navbar.html.erb +6 -9
  61. data/app/views/avo/partials/_table_header.html.erb +2 -3
  62. data/app/views/avo/private/_links_and_buttons.html.erb +2 -2
  63. data/app/views/layouts/avo/application.html.erb +53 -50
  64. data/db/factories.rb +2 -0
  65. data/lib/avo/base_action.rb +6 -24
  66. data/lib/avo/base_resource.rb +6 -0
  67. data/lib/avo/concerns/handles_field_args.rb +36 -0
  68. data/lib/avo/engine.rb +1 -1
  69. data/lib/avo/fields/base_field.rb +2 -1
  70. data/lib/avo/fields/belongs_to_field.rb +4 -4
  71. data/lib/avo/fields/has_and_belongs_to_many_field.rb +2 -2
  72. data/lib/avo/fields/has_base_field.rb +0 -2
  73. data/lib/avo/fields/has_many_field.rb +2 -2
  74. data/lib/avo/fields/has_one_field.rb +2 -2
  75. data/lib/avo/fields/tags_field.rb +82 -0
  76. data/lib/avo/hosts/record_host.rb +7 -0
  77. data/lib/avo/licensing/pro_license.rb +2 -1
  78. data/lib/avo/version.rb +1 -1
  79. data/lib/generators/avo/templates/locales/avo.en.yml +4 -0
  80. data/public/avo-assets/avo.css +825 -262
  81. data/public/avo-assets/avo.js +212 -123
  82. data/public/avo-assets/avo.js.map +3 -3
  83. metadata +19 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 980b088fbe620e1ad2f98a0efac9f17c16200cb75d635d47fc3a9df1671c28d7
4
- data.tar.gz: e0e3264226d0bbf1178cf6d481995fac1b657d9cccf04ce1e8f873ae42214e3c
3
+ metadata.gz: a28573214bb7c1b862f5114ea719042e358600403459f69a138382276518bc11
4
+ data.tar.gz: edfaf30976abadb6d7cbe607c4c117d9cfe4887c8228302a29930e693ce861b5
5
5
  SHA512:
6
- metadata.gz: 454a2ce7f86a0ed90f0f0031efa1d81eadd3f059a7dba0cc73f0e627e13d2d43f6039264dfdebb4ae0fba17e0b5b8598371dfa3a2fc94e9b4920b9c5bae14f5d
7
- data.tar.gz: b126d79deff83b72d71cf9674cfe8f0e38f1eb4a48a731c7645f5ccc7414d3e1bb252a6e19ddd5d987e2d98bcc4479c07fd14f53607c1f8771dc1d68cb497721
6
+ metadata.gz: 1f1ce11cfa12337091794ef94d22394e1187accfafb96c8bcbb15c8b875fff78ca2361e3047d165a4093572676a412e50b40e276520b384024bac3363e28c16f
7
+ data.tar.gz: b3c71dcdd9524704ecf3da845bbdecebb67e908e69da67b8cdc7a316c7d50b3a21398fc5fcadb68f45a690afa7d41f742ebf1f083fd41e542c436c5820668189
data/Gemfile CHANGED
@@ -148,3 +148,5 @@ gem "hightop"
148
148
  gem "active_median"
149
149
 
150
150
  gem 'acts_as_list'
151
+
152
+ gem 'acts-as-taggable-on', '~> 9.0'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- avo (2.5.2.pre.6)
4
+ avo (2.5.2.pre.7)
5
5
  active_link_to
6
6
  addressable
7
7
  breadcrumbs_on_rails
@@ -86,6 +86,8 @@ GEM
86
86
  minitest (>= 5.1)
87
87
  tzinfo (~> 2.0)
88
88
  zeitwerk (~> 2.3)
89
+ acts-as-taggable-on (9.0.1)
90
+ activerecord (>= 6.0, < 7.1)
89
91
  acts_as_list (1.0.4)
90
92
  activerecord (>= 4.2)
91
93
  addressable (2.8.0)
@@ -419,6 +421,7 @@ PLATFORMS
419
421
  DEPENDENCIES
420
422
  active_link_to
421
423
  active_median
424
+ acts-as-taggable-on (~> 9.0)
422
425
  acts_as_list
423
426
  addressable
424
427
  annotate