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
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: 2.5.2.pre.6
4
+ version: 2.5.2.pre.7
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-05-06 00:00:00.000000000 Z
12
+ date: 2022-05-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -254,6 +254,7 @@ files:
254
254
  - app/assets/config/avo_manifest.js
255
255
  - app/assets/stylesheets/avo.css
256
256
  - app/assets/stylesheets/css/active-storage.css
257
+ - app/assets/stylesheets/css/alerts.css
257
258
  - app/assets/stylesheets/css/breadcrumbs.css
258
259
  - app/assets/stylesheets/css/buttons.css
259
260
  - app/assets/stylesheets/css/components/code.css
@@ -264,6 +265,7 @@ files:
264
265
  - app/assets/stylesheets/css/pagination.css
265
266
  - app/assets/stylesheets/css/search.css
266
267
  - app/assets/stylesheets/css/spinner.css
268
+ - app/assets/stylesheets/css/tags.css
267
269
  - app/assets/stylesheets/css/tailwindcss/base.css
268
270
  - app/assets/stylesheets/css/tailwindcss/components.css
269
271
  - app/assets/stylesheets/css/tailwindcss/utilities.css
@@ -952,6 +954,14 @@ files:
952
954
  - app/components/avo/fields/status_field/index_component.rb
953
955
  - app/components/avo/fields/status_field/show_component.html.erb
954
956
  - app/components/avo/fields/status_field/show_component.rb
957
+ - app/components/avo/fields/tags_field/edit_component.html.erb
958
+ - app/components/avo/fields/tags_field/edit_component.rb
959
+ - app/components/avo/fields/tags_field/index_component.html.erb
960
+ - app/components/avo/fields/tags_field/index_component.rb
961
+ - app/components/avo/fields/tags_field/show_component.html.erb
962
+ - app/components/avo/fields/tags_field/show_component.rb
963
+ - app/components/avo/fields/tags_field/tag_component.html.erb
964
+ - app/components/avo/fields/tags_field/tag_component.rb
955
965
  - app/components/avo/fields/text_field/edit_component.html.erb
956
966
  - app/components/avo/fields/text_field/edit_component.rb
957
967
  - app/components/avo/fields/text_field/index_component.html.erb
@@ -1051,7 +1061,9 @@ files:
1051
1061
  - app/javascript/js/controllers.js
1052
1062
  - app/javascript/js/controllers/action_controller.js
1053
1063
  - app/javascript/js/controllers/actions_picker_controller.js
1064
+ - app/javascript/js/controllers/alerts_controller.js
1054
1065
  - app/javascript/js/controllers/attachments_controller.js
1066
+ - app/javascript/js/controllers/base_controller.js
1055
1067
  - app/javascript/js/controllers/boolean_filter_controller.js
1056
1068
  - app/javascript/js/controllers/copy_to_clipboard_controller.js
1057
1069
  - app/javascript/js/controllers/dashboard_card_controller.js
@@ -1060,6 +1072,8 @@ files:
1060
1072
  - app/javascript/js/controllers/fields/date_field_controller.js
1061
1073
  - app/javascript/js/controllers/fields/key_value_controller.js
1062
1074
  - app/javascript/js/controllers/fields/simple_mde_controller.js
1075
+ - app/javascript/js/controllers/fields/tags_field_controller.js
1076
+ - app/javascript/js/controllers/fields/tags_field_helpers.js
1063
1077
  - app/javascript/js/controllers/fields/trix_field_controller.js
1064
1078
  - app/javascript/js/controllers/filter_controller.js
1065
1079
  - app/javascript/js/controllers/hidden_input_controller.js
@@ -1150,6 +1164,7 @@ files:
1150
1164
  - lib/avo/base_card.rb
1151
1165
  - lib/avo/base_resource.rb
1152
1166
  - lib/avo/concerns/fetches_things.rb
1167
+ - lib/avo/concerns/handles_field_args.rb
1153
1168
  - lib/avo/configuration.rb
1154
1169
  - lib/avo/dashboards/base_dashboard.rb
1155
1170
  - lib/avo/dashboards/base_divider.rb
@@ -1189,6 +1204,7 @@ files:
1189
1204
  - lib/avo/fields/progress_bar_field.rb
1190
1205
  - lib/avo/fields/select_field.rb
1191
1206
  - lib/avo/fields/status_field.rb
1207
+ - lib/avo/fields/tags_field.rb
1192
1208
  - lib/avo/fields/text_field.rb
1193
1209
  - lib/avo/fields/textarea_field.rb
1194
1210
  - lib/avo/fields/trix_field.rb
@@ -1209,6 +1225,7 @@ files:
1209
1225
  - lib/avo/hosts/dashboard_card.rb
1210
1226
  - lib/avo/hosts/dashboard_visibility.rb
1211
1227
  - lib/avo/hosts/ordering.rb
1228
+ - lib/avo/hosts/record_host.rb
1212
1229
  - lib/avo/licensing/community_license.rb
1213
1230
  - lib/avo/licensing/h_q.rb
1214
1231
  - lib/avo/licensing/license.rb