avo 1.22.3 → 1.24.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 (47) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +2 -0
  3. data/Gemfile.lock +4 -1
  4. data/README.md +6 -0
  5. data/app/assets/svgs/arrow-down.svg +3 -0
  6. data/app/assets/svgs/arrow-up.svg +3 -0
  7. data/app/assets/svgs/download-solid-reversed.svg +3 -0
  8. data/app/assets/svgs/download-solid.svg +3 -0
  9. data/app/assets/svgs/switch-vertical.svg +3 -0
  10. data/app/{views/avo/partials/_alert.html.erb → components/avo/alert_component.html.erb} +0 -0
  11. data/app/components/avo/alert_component.rb +11 -0
  12. data/app/components/avo/alerts_component.html.erb +3 -0
  13. data/app/components/avo/alerts_component.rb +5 -0
  14. data/app/components/avo/base_component.rb +7 -0
  15. data/app/components/avo/index/grid_item_component.html.erb +1 -1
  16. data/app/components/avo/index/ordering/base_component.rb +9 -0
  17. data/app/components/avo/index/ordering/button_component.html.erb +10 -0
  18. data/app/components/avo/index/ordering/button_component.rb +31 -0
  19. data/app/components/avo/index/ordering/buttons_component.html.erb +30 -0
  20. data/app/components/avo/index/ordering/buttons_component.rb +19 -0
  21. data/app/components/avo/index/resource_controls_component.html.erb +11 -4
  22. data/app/components/avo/index/resource_controls_component.rb +6 -1
  23. data/app/components/avo/index/table_row_component.html.erb +1 -1
  24. data/app/components/avo/navigation_link_component.rb +1 -1
  25. data/app/components/avo/resource_component.rb +1 -1
  26. data/app/{views/avo/partials/_turbo_frame_wrap.html.erb → components/avo/turbo_frame_wrapper_component.html.erb} +4 -2
  27. data/app/components/avo/turbo_frame_wrapper_component.rb +9 -0
  28. data/app/controllers/avo/application_controller.rb +14 -1
  29. data/app/controllers/avo/base_controller.rb +14 -2
  30. data/app/helpers/avo/application_helper.rb +1 -1
  31. data/app/helpers/avo/url_helpers.rb +4 -0
  32. data/app/javascript/js/application.js +4 -0
  33. data/app/javascript/js/controllers/modal_controller.js +9 -0
  34. data/app/javascript/js/controllers/search_controller.js +6 -1
  35. data/app/views/avo/actions/show.html.erb +7 -3
  36. data/app/views/layouts/avo/application.html.erb +1 -1
  37. data/config/routes.rb +3 -0
  38. data/lib/avo/base_action.rb +21 -0
  39. data/lib/avo/base_resource.rb +8 -0
  40. data/lib/avo/licensing/h_q.rb +55 -1
  41. data/lib/avo/licensing/pro_license.rb +1 -0
  42. data/lib/avo/version.rb +1 -1
  43. data/public/avo-assets/avo.css +4 -0
  44. data/public/avo-assets/avo.js +7645 -7375
  45. data/public/avo-assets/avo.js.map +3 -3
  46. metadata +19 -5
  47. data/app/views/avo/partials/_alerts.html.erb +0 -3
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.22.3
4
+ version: 1.24.0
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-02-23 00:00:00.000000000 Z
12
+ date: 2022-03-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -226,7 +226,9 @@ files:
226
226
  - app/assets/stylesheets/css/tooltips.css
227
227
  - app/assets/stylesheets/css/typography.css
228
228
  - app/assets/svgs/arrow-circle-right.svg
229
+ - app/assets/svgs/arrow-down.svg
229
230
  - app/assets/svgs/arrow-left.svg
231
+ - app/assets/svgs/arrow-up.svg
230
232
  - app/assets/svgs/avocado.svg
231
233
  - app/assets/svgs/badge-check-sm.svg
232
234
  - app/assets/svgs/check-circle-sm.svg
@@ -237,6 +239,8 @@ files:
237
239
  - app/assets/svgs/code.svg
238
240
  - app/assets/svgs/color-swatch.svg
239
241
  - app/assets/svgs/document-text.svg
242
+ - app/assets/svgs/download-solid-reversed.svg
243
+ - app/assets/svgs/download-solid.svg
240
244
  - app/assets/svgs/download.svg
241
245
  - app/assets/svgs/edit.svg
242
246
  - app/assets/svgs/exclamation-circle-sm.svg
@@ -260,6 +264,7 @@ files:
260
264
  - app/assets/svgs/sort-ascending.svg
261
265
  - app/assets/svgs/sort-descending.svg
262
266
  - app/assets/svgs/switch-horizontal.svg
267
+ - app/assets/svgs/switch-vertical.svg
263
268
  - app/assets/svgs/thumbs-down.svg
264
269
  - app/assets/svgs/thumbs-up.svg
265
270
  - app/assets/svgs/times.svg
@@ -271,6 +276,11 @@ files:
271
276
  - app/assets/svgs/x-circle-sm.svg
272
277
  - app/assets/svgs/x-circle.svg
273
278
  - app/assets/svgs/x.svg
279
+ - app/components/avo/alert_component.html.erb
280
+ - app/components/avo/alert_component.rb
281
+ - app/components/avo/alerts_component.html.erb
282
+ - app/components/avo/alerts_component.rb
283
+ - app/components/avo/base_component.rb
274
284
  - app/components/avo/edit/field_wrapper_component.html.erb
275
285
  - app/components/avo/edit/field_wrapper_component.rb
276
286
  - app/components/avo/fields/badge_field/index_component.html.erb
@@ -436,6 +446,11 @@ files:
436
446
  - app/components/avo/index/grid_cover_empty_state_component.rb
437
447
  - app/components/avo/index/grid_item_component.html.erb
438
448
  - app/components/avo/index/grid_item_component.rb
449
+ - app/components/avo/index/ordering/base_component.rb
450
+ - app/components/avo/index/ordering/button_component.html.erb
451
+ - app/components/avo/index/ordering/button_component.rb
452
+ - app/components/avo/index/ordering/buttons_component.html.erb
453
+ - app/components/avo/index/ordering/buttons_component.rb
439
454
  - app/components/avo/index/resource_controls_component.html.erb
440
455
  - app/components/avo/index/resource_controls_component.rb
441
456
  - app/components/avo/index/resource_grid_component.html.erb
@@ -457,6 +472,8 @@ files:
457
472
  - app/components/avo/resource_component.rb
458
473
  - app/components/avo/show/field_wrapper_component.html.erb
459
474
  - app/components/avo/show/field_wrapper_component.rb
475
+ - app/components/avo/turbo_frame_wrapper_component.html.erb
476
+ - app/components/avo/turbo_frame_wrapper_component.rb
460
477
  - app/components/avo/views/resource_edit_component.html.erb
461
478
  - app/components/avo/views/resource_edit_component.rb
462
479
  - app/components/avo/views/resource_index_component.html.erb
@@ -530,8 +547,6 @@ files:
530
547
  - app/views/avo/home/index.html.erb
531
548
  - app/views/avo/partials/_a_button.html.erb
532
549
  - app/views/avo/partials/_a_link.html.erb
533
- - app/views/avo/partials/_alert.html.erb
534
- - app/views/avo/partials/_alerts.html.erb
535
550
  - app/views/avo/partials/_custom_tools_alert.html.erb
536
551
  - app/views/avo/partials/_empty_state.html.erb
537
552
  - app/views/avo/partials/_failed_state.html.erb
@@ -547,7 +562,6 @@ files:
547
562
  - app/views/avo/partials/_scripts.html.erb
548
563
  - app/views/avo/partials/_sortable_component.html.erb
549
564
  - app/views/avo/partials/_table_header.html.erb
550
- - app/views/avo/partials/_turbo_frame_wrap.html.erb
551
565
  - app/views/avo/partials/_view_toggle_button.html.erb
552
566
  - app/views/avo/relations/new.html.erb
553
567
  - app/views/avo/sidebar/_license_warning.html.erb
@@ -1,3 +0,0 @@
1
- <% flash.each do |type, message| %>
2
- <%= render partial: 'avo/partials/alert', locals: {type: type.to_sym, message: message} %>
3
- <% end %>