avo 2.42.2 → 2.43.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 (30) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/app/components/avo/fields/belongs_to_field/edit_component.html.erb +118 -96
  4. data/app/components/avo/fields/belongs_to_field/edit_component.rb +11 -0
  5. data/app/components/avo/fields/tags_field/edit_component.html.erb +1 -0
  6. data/app/components/avo/modal_component.html.erb +17 -10
  7. data/app/components/avo/modal_component.rb +21 -0
  8. data/app/components/avo/panel_component.html.erb +2 -2
  9. data/app/components/avo/referrer_params_component.html.erb +1 -0
  10. data/app/components/avo/views/resource_edit_component.html.erb +11 -6
  11. data/app/components/avo/views/resource_edit_component.rb +11 -1
  12. data/app/controllers/avo/actions_controller.rb +1 -1
  13. data/app/controllers/avo/base_controller.rb +11 -2
  14. data/app/helpers/avo/application_helper.rb +4 -0
  15. data/app/javascript/js/controllers/fields/reload_belongs_to_field_controller.js +51 -0
  16. data/app/javascript/js/controllers/fields/tags_field_controller.js +2 -1
  17. data/app/javascript/js/controllers.js +2 -0
  18. data/app/views/avo/actions/show.html.erb +2 -0
  19. data/app/views/avo/base/_new_via_belongs_to.html.erb +12 -0
  20. data/app/views/avo/base/close_modal_and_reload_field.turbo_stream.erb +8 -0
  21. data/app/views/avo/base/create_fail_action.turbo_stream.erb +13 -0
  22. data/app/views/avo/partials/_flash_alerts.turbo_stream.erb +3 -0
  23. data/lib/avo/fields/tags_field.rb +2 -0
  24. data/lib/avo/licensing/h_q.rb +4 -2
  25. data/lib/avo/version.rb +1 -1
  26. data/public/avo-assets/avo.base.css +20 -8
  27. data/public/avo-assets/avo.base.js +84 -84
  28. data/public/avo-assets/avo.base.js.map +3 -3
  29. metadata +7 -3
  30. data/app/views/avo/actions/keep_modal_open.turbo_stream.erb +0 -5
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.42.2
4
+ version: 2.43.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: 2023-10-18 00:00:00.000000000 Z
12
+ date: 2023-10-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
@@ -1628,6 +1628,7 @@ files:
1628
1628
  - app/javascript/js/controllers/fields/easy_mde_controller.js
1629
1629
  - app/javascript/js/controllers/fields/key_value_controller.js
1630
1630
  - app/javascript/js/controllers/fields/progress_bar_field_controller.js
1631
+ - app/javascript/js/controllers/fields/reload_belongs_to_field_controller.js
1631
1632
  - app/javascript/js/controllers/fields/tags_field_controller.js
1632
1633
  - app/javascript/js/controllers/fields/tags_field_helpers.js
1633
1634
  - app/javascript/js/controllers/fields/trix_field_controller.js
@@ -1653,14 +1654,16 @@ files:
1653
1654
  - app/javascript/js/controllers/toggle_panel_controller.js
1654
1655
  - app/javascript/js/helpers/cast_boolean.js
1655
1656
  - app/javascript/js/helpers/debounce_promise.js
1656
- - app/views/avo/actions/keep_modal_open.turbo_stream.erb
1657
1657
  - app/views/avo/actions/show.html.erb
1658
1658
  - app/views/avo/associations/new.html.erb
1659
1659
  - app/views/avo/attachments/destroy.turbo_stream.erb
1660
1660
  - app/views/avo/base/_boolean_filter.html.erb
1661
1661
  - app/views/avo/base/_multiple_select_filter.html.erb
1662
+ - app/views/avo/base/_new_via_belongs_to.html.erb
1662
1663
  - app/views/avo/base/_select_filter.html.erb
1663
1664
  - app/views/avo/base/_text_filter.html.erb
1665
+ - app/views/avo/base/close_modal_and_reload_field.turbo_stream.erb
1666
+ - app/views/avo/base/create_fail_action.turbo_stream.erb
1664
1667
  - app/views/avo/base/edit.html.erb
1665
1668
  - app/views/avo/base/index.html.erb
1666
1669
  - app/views/avo/base/new.html.erb
@@ -1681,6 +1684,7 @@ files:
1681
1684
  - app/views/avo/home/index.html.erb
1682
1685
  - app/views/avo/partials/_branding.html.erb
1683
1686
  - app/views/avo/partials/_custom_tools_alert.html.erb
1687
+ - app/views/avo/partials/_flash_alerts.turbo_stream.erb
1684
1688
  - app/views/avo/partials/_footer.html.erb
1685
1689
  - app/views/avo/partials/_global_search.html.erb
1686
1690
  - app/views/avo/partials/_head.html.erb
@@ -1,5 +0,0 @@
1
- <turbo-stream action="append" target="alerts">
2
- <template>
3
- <%= render Avo::FlashAlertsComponent.new flashes: flash %>
4
- </template>
5
- </turbo-stream>