avo 2.5.2.pre.1 → 2.5.2.pre.2

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 (42) 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 +727 -21
  5. data/app/assets/builds/avo.js +211 -122
  6. data/app/assets/builds/avo.js.map +3 -3
  7. data/app/assets/stylesheets/avo.css +2 -0
  8. data/app/assets/stylesheets/css/tags.css +16 -0
  9. data/app/components/avo/card_component.rb +0 -12
  10. data/app/components/avo/fields/tags_field/edit_component.html.erb +27 -0
  11. data/app/components/avo/fields/tags_field/edit_component.rb +4 -0
  12. data/app/components/avo/fields/tags_field/index_component.html.erb +14 -0
  13. data/app/components/avo/fields/tags_field/index_component.rb +7 -0
  14. data/app/components/avo/fields/tags_field/show_component.html.erb +7 -0
  15. data/app/components/avo/fields/tags_field/show_component.rb +11 -0
  16. data/app/components/avo/fields/tags_field/tag_component.html.erb +9 -0
  17. data/app/components/avo/fields/tags_field/tag_component.rb +11 -0
  18. data/app/components/avo/index/resource_table_component.html.erb +1 -1
  19. data/app/javascript/js/application.js +1 -1
  20. data/app/javascript/js/controllers/base_controller.js +22 -0
  21. data/app/javascript/js/controllers/fields/tags_field_controller.js +86 -0
  22. data/app/javascript/js/controllers/fields/tags_field_helpers.js +47 -0
  23. data/app/javascript/js/controllers.js +2 -0
  24. data/app/views/avo/dashboards/_chartkick_card.html.erb +1 -1
  25. data/app/views/avo/dashboards/_metric_card.html.erb +1 -1
  26. data/db/factories.rb +2 -0
  27. data/lib/avo/base_resource.rb +6 -0
  28. data/lib/avo/concerns/handles_field_args.rb +36 -0
  29. data/lib/avo/fields/base_field.rb +2 -1
  30. data/lib/avo/fields/tags_field.rb +82 -0
  31. data/lib/avo/hosts/record_host.rb +7 -0
  32. data/lib/avo/licensing/pro_license.rb +2 -1
  33. data/lib/avo/version.rb +1 -1
  34. data/lib/generators/avo/templates/cards/chartkick_card.tt +1 -1
  35. data/lib/generators/avo/templates/cards/chartkick_card_sample.tt +1 -1
  36. data/lib/generators/avo/templates/cards/metric_card.tt +1 -1
  37. data/lib/generators/avo/templates/cards/metric_card_sample.tt +1 -1
  38. data/lib/generators/avo/templates/locales/avo.en.yml +4 -0
  39. data/public/avo-assets/avo.css +727 -21
  40. data/public/avo-assets/avo.js +211 -122
  41. data/public/avo-assets/avo.js.map +3 -3
  42. metadata +17 -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.1
4
+ version: 2.5.2.pre.2
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-02 00:00:00.000000000 Z
12
+ date: 2022-05-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -265,6 +265,7 @@ files:
265
265
  - app/assets/stylesheets/css/pagination.css
266
266
  - app/assets/stylesheets/css/search.css
267
267
  - app/assets/stylesheets/css/spinner.css
268
+ - app/assets/stylesheets/css/tags.css
268
269
  - app/assets/stylesheets/css/tailwindcss/base.css
269
270
  - app/assets/stylesheets/css/tailwindcss/components.css
270
271
  - app/assets/stylesheets/css/tailwindcss/utilities.css
@@ -953,6 +954,14 @@ files:
953
954
  - app/components/avo/fields/status_field/index_component.rb
954
955
  - app/components/avo/fields/status_field/show_component.html.erb
955
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
956
965
  - app/components/avo/fields/text_field/edit_component.html.erb
957
966
  - app/components/avo/fields/text_field/edit_component.rb
958
967
  - app/components/avo/fields/text_field/index_component.html.erb
@@ -1054,6 +1063,7 @@ files:
1054
1063
  - app/javascript/js/controllers/actions_picker_controller.js
1055
1064
  - app/javascript/js/controllers/alerts_controller.js
1056
1065
  - app/javascript/js/controllers/attachments_controller.js
1066
+ - app/javascript/js/controllers/base_controller.js
1057
1067
  - app/javascript/js/controllers/boolean_filter_controller.js
1058
1068
  - app/javascript/js/controllers/copy_to_clipboard_controller.js
1059
1069
  - app/javascript/js/controllers/dashboard_card_controller.js
@@ -1062,6 +1072,8 @@ files:
1062
1072
  - app/javascript/js/controllers/fields/date_field_controller.js
1063
1073
  - app/javascript/js/controllers/fields/key_value_controller.js
1064
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
1065
1077
  - app/javascript/js/controllers/fields/trix_field_controller.js
1066
1078
  - app/javascript/js/controllers/filter_controller.js
1067
1079
  - app/javascript/js/controllers/hidden_input_controller.js
@@ -1152,6 +1164,7 @@ files:
1152
1164
  - lib/avo/base_card.rb
1153
1165
  - lib/avo/base_resource.rb
1154
1166
  - lib/avo/concerns/fetches_things.rb
1167
+ - lib/avo/concerns/handles_field_args.rb
1155
1168
  - lib/avo/configuration.rb
1156
1169
  - lib/avo/dashboards/base_dashboard.rb
1157
1170
  - lib/avo/dashboards/base_divider.rb
@@ -1191,6 +1204,7 @@ files:
1191
1204
  - lib/avo/fields/progress_bar_field.rb
1192
1205
  - lib/avo/fields/select_field.rb
1193
1206
  - lib/avo/fields/status_field.rb
1207
+ - lib/avo/fields/tags_field.rb
1194
1208
  - lib/avo/fields/text_field.rb
1195
1209
  - lib/avo/fields/textarea_field.rb
1196
1210
  - lib/avo/fields/trix_field.rb
@@ -1211,6 +1225,7 @@ files:
1211
1225
  - lib/avo/hosts/dashboard_card.rb
1212
1226
  - lib/avo/hosts/dashboard_visibility.rb
1213
1227
  - lib/avo/hosts/ordering.rb
1228
+ - lib/avo/hosts/record_host.rb
1214
1229
  - lib/avo/licensing/community_license.rb
1215
1230
  - lib/avo/licensing/h_q.rb
1216
1231
  - lib/avo/licensing/license.rb