avo 2.18.1 → 2.19.0

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 (79) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +4 -5
  3. data/Gemfile.lock +75 -76
  4. data/app/components/avo/actions_component.html.erb +1 -1
  5. data/app/components/avo/actions_component.rb +4 -4
  6. data/app/components/avo/base_component.rb +17 -0
  7. data/app/components/avo/field_wrapper_component.rb +7 -1
  8. data/app/components/avo/fields/has_one_field/show_component.rb +1 -2
  9. data/app/components/avo/fields/index_component.rb +4 -3
  10. data/app/components/avo/filters_component.html.erb +1 -1
  11. data/app/components/avo/filters_component.rb +2 -2
  12. data/app/components/avo/index/grid_item_component.rb +2 -2
  13. data/app/components/avo/index/resource_controls_component.rb +2 -2
  14. data/app/components/avo/index/table_row_component.html.erb +1 -1
  15. data/app/components/avo/item_switcher_component.html.erb +1 -1
  16. data/app/components/avo/resource_component.rb +1 -1
  17. data/app/components/avo/resource_sidebar_component.rb +1 -6
  18. data/app/components/avo/sidebar_profile_component.rb +3 -1
  19. data/app/components/avo/tab_group_component.rb +1 -1
  20. data/app/components/avo/views/resource_show_component.html.erb +1 -1
  21. data/app/controllers/avo/application_controller.rb +6 -0
  22. data/app/controllers/avo/base_controller.rb +14 -7
  23. data/app/controllers/avo/dashboards/cards_controller.rb +37 -0
  24. data/app/helpers/avo/application_helper.rb +5 -1
  25. data/app/javascript/js/controllers/search_controller.js +11 -2
  26. data/app/views/avo/{cards → dashboards/cards}/_chartkick_card.html.erb +0 -0
  27. data/app/views/avo/{cards → dashboards/cards}/_metric_card.html.erb +0 -0
  28. data/app/views/avo/{cards → dashboards/cards}/chartkick_missing.html.erb +0 -0
  29. data/app/views/avo/{cards → dashboards/cards}/show.html.erb +0 -0
  30. data/app/views/avo/partials/_branding.html.erb +1 -0
  31. data/avo.gemspec +1 -1
  32. data/bin/init +11 -1
  33. data/bin/test +1 -0
  34. data/config/routes.rb +2 -2
  35. data/db/factories.rb +10 -0
  36. data/lib/avo/app.rb +11 -1
  37. data/lib/avo/base_action.rb +19 -9
  38. data/lib/avo/base_resource.rb +3 -6
  39. data/lib/avo/concerns/filters_session_handler.rb +43 -0
  40. data/lib/avo/concerns/has_fields.rb +2 -0
  41. data/lib/avo/concerns/visible_items.rb +44 -0
  42. data/lib/avo/configuration/branding.rb +10 -2
  43. data/lib/avo/configuration.rb +3 -0
  44. data/lib/avo/dynamic_router.rb +16 -15
  45. data/lib/avo/engine.rb +6 -9
  46. data/lib/avo/fields/base_field.rb +21 -12
  47. data/lib/avo/fields/concerns/has_default.rb +17 -0
  48. data/lib/avo/fields/concerns/is_readonly.rb +1 -1
  49. data/lib/avo/fields/concerns/is_required.rb +2 -2
  50. data/lib/avo/fields/has_base_field.rb +2 -0
  51. data/lib/avo/fields/key_value_field.rb +1 -1
  52. data/lib/avo/filters/base_filter.rb +17 -2
  53. data/lib/avo/hosts/resource_view_record_host.rb +7 -0
  54. data/lib/avo/hosts/visibility_host.rb +11 -0
  55. data/lib/avo/panel.rb +4 -1
  56. data/lib/avo/resources/controls/action.rb +1 -3
  57. data/lib/avo/sidebar.rb +1 -31
  58. data/lib/avo/tab.rb +5 -22
  59. data/lib/avo/version.rb +1 -1
  60. data/lib/avo.rb +9 -0
  61. data/lib/generators/avo/resource_generator.rb +281 -0
  62. data/lib/generators/avo/templates/action.tt +3 -0
  63. data/lib/generators/avo/templates/filters/boolean_filter.tt +3 -0
  64. data/lib/generators/avo/templates/filters/multiple_select_filter.tt +3 -0
  65. data/lib/generators/avo/templates/filters/select_filter.tt +3 -0
  66. data/lib/generators/avo/templates/filters/text_filter.tt +3 -0
  67. data/lib/generators/avo/templates/initializer/avo.tt +4 -0
  68. data/lib/generators/avo/templates/resource/controller.tt +1 -1
  69. data/lib/generators/avo/templates/resource/resource.tt +2 -2
  70. data/lib/generators/model_generator.rb +10 -0
  71. data/lib/generators/rails/avo_resource_generator.rb +11 -0
  72. data/public/avo-assets/avo.base.css +10 -10
  73. data/public/avo-assets/avo.base.js +1 -1
  74. data/public/avo-assets/avo.base.js.map +2 -2
  75. data/public/avo-assets/favicon.ico +0 -0
  76. data/{app/assets/svgs → public/avo-assets}/placeholder.svg +0 -0
  77. metadata +18 -11
  78. data/app/controllers/avo/cards_controller.rb +0 -35
  79. data/config/master.key +0 -1

There are too many changes on this page to be displayed.


The amount of changes on this page would crash your brower.

You can still verify the content by downloading the gem file manually.