avo 2.42.2 → 2.44.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 (37) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +2 -0
  3. data/Gemfile.lock +5 -1
  4. data/app/components/avo/fields/belongs_to_field/edit_component.html.erb +118 -96
  5. data/app/components/avo/fields/belongs_to_field/edit_component.rb +11 -0
  6. data/app/components/avo/fields/tags_field/edit_component.html.erb +1 -0
  7. data/app/components/avo/modal_component.html.erb +17 -10
  8. data/app/components/avo/modal_component.rb +21 -0
  9. data/app/components/avo/panel_component.html.erb +2 -2
  10. data/app/components/avo/referrer_params_component.html.erb +1 -0
  11. data/app/components/avo/views/resource_edit_component.html.erb +11 -6
  12. data/app/components/avo/views/resource_edit_component.rb +11 -1
  13. data/app/controllers/avo/actions_controller.rb +9 -11
  14. data/app/controllers/avo/base_controller.rb +11 -2
  15. data/app/helpers/avo/application_helper.rb +4 -0
  16. data/app/javascript/js/application.js +3 -0
  17. data/app/javascript/js/controllers/fields/reload_belongs_to_field_controller.js +51 -0
  18. data/app/javascript/js/controllers/fields/tags_field_controller.js +2 -1
  19. data/app/javascript/js/controllers.js +2 -0
  20. data/app/views/avo/actions/show.html.erb +3 -2
  21. data/app/views/avo/base/_new_via_belongs_to.html.erb +12 -0
  22. data/app/views/avo/base/close_modal_and_reload_field.turbo_stream.erb +8 -0
  23. data/app/views/avo/base/create_fail_action.turbo_stream.erb +13 -0
  24. data/app/views/avo/partials/_flash_alerts.turbo_stream.erb +3 -0
  25. data/avo.gemspec +1 -0
  26. data/lib/avo/base_action.rb +10 -26
  27. data/lib/avo/fields/base_field.rb +13 -7
  28. data/lib/avo/fields/tags_field.rb +2 -0
  29. data/lib/avo/licensing/h_q.rb +4 -2
  30. data/lib/avo/version.rb +1 -1
  31. data/public/avo-assets/avo.base.css +20 -8
  32. data/public/avo-assets/avo.base.js +176 -176
  33. data/public/avo-assets/avo.base.js.map +3 -3
  34. metadata +21 -5
  35. data/app/controllers/avo/team_users_controller.rb +0 -4
  36. data/app/views/avo/actions/keep_modal_open.turbo_stream.erb +0 -5
  37. data/lib/avo/action_model.rb +0 -20
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.44.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-11-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
@@ -123,6 +123,20 @@ dependencies:
123
123
  - - ">="
124
124
  - !ruby/object:Gem::Version
125
125
  version: '0'
126
+ - !ruby/object:Gem::Dependency
127
+ name: turbo_power
128
+ requirement: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - "~>"
131
+ - !ruby/object:Gem::Version
132
+ version: 0.5.0
133
+ type: :runtime
134
+ prerelease: false
135
+ version_requirements: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - "~>"
138
+ - !ruby/object:Gem::Version
139
+ version: 0.5.0
126
140
  - !ruby/object:Gem::Dependency
127
141
  name: addressable
128
142
  requirement: !ruby/object:Gem::Requirement
@@ -1607,7 +1621,6 @@ files:
1607
1621
  - app/controllers/avo/reorder_controller.rb
1608
1622
  - app/controllers/avo/resources_controller.rb
1609
1623
  - app/controllers/avo/search_controller.rb
1610
- - app/controllers/avo/team_users_controller.rb
1611
1624
  - app/helpers/avo/application_helper.rb
1612
1625
  - app/helpers/avo/resources_helper.rb
1613
1626
  - app/helpers/avo/url_helpers.rb
@@ -1628,6 +1641,7 @@ files:
1628
1641
  - app/javascript/js/controllers/fields/easy_mde_controller.js
1629
1642
  - app/javascript/js/controllers/fields/key_value_controller.js
1630
1643
  - app/javascript/js/controllers/fields/progress_bar_field_controller.js
1644
+ - app/javascript/js/controllers/fields/reload_belongs_to_field_controller.js
1631
1645
  - app/javascript/js/controllers/fields/tags_field_controller.js
1632
1646
  - app/javascript/js/controllers/fields/tags_field_helpers.js
1633
1647
  - app/javascript/js/controllers/fields/trix_field_controller.js
@@ -1653,14 +1667,16 @@ files:
1653
1667
  - app/javascript/js/controllers/toggle_panel_controller.js
1654
1668
  - app/javascript/js/helpers/cast_boolean.js
1655
1669
  - app/javascript/js/helpers/debounce_promise.js
1656
- - app/views/avo/actions/keep_modal_open.turbo_stream.erb
1657
1670
  - app/views/avo/actions/show.html.erb
1658
1671
  - app/views/avo/associations/new.html.erb
1659
1672
  - app/views/avo/attachments/destroy.turbo_stream.erb
1660
1673
  - app/views/avo/base/_boolean_filter.html.erb
1661
1674
  - app/views/avo/base/_multiple_select_filter.html.erb
1675
+ - app/views/avo/base/_new_via_belongs_to.html.erb
1662
1676
  - app/views/avo/base/_select_filter.html.erb
1663
1677
  - app/views/avo/base/_text_filter.html.erb
1678
+ - app/views/avo/base/close_modal_and_reload_field.turbo_stream.erb
1679
+ - app/views/avo/base/create_fail_action.turbo_stream.erb
1664
1680
  - app/views/avo/base/edit.html.erb
1665
1681
  - app/views/avo/base/index.html.erb
1666
1682
  - app/views/avo/base/new.html.erb
@@ -1681,6 +1697,7 @@ files:
1681
1697
  - app/views/avo/home/index.html.erb
1682
1698
  - app/views/avo/partials/_branding.html.erb
1683
1699
  - app/views/avo/partials/_custom_tools_alert.html.erb
1700
+ - app/views/avo/partials/_flash_alerts.turbo_stream.erb
1684
1701
  - app/views/avo/partials/_footer.html.erb
1685
1702
  - app/views/avo/partials/_global_search.html.erb
1686
1703
  - app/views/avo/partials/_head.html.erb
@@ -1720,7 +1737,6 @@ files:
1720
1737
  - config/spring.rb
1721
1738
  - db/factories.rb
1722
1739
  - lib/avo.rb
1723
- - lib/avo/action_model.rb
1724
1740
  - lib/avo/app.rb
1725
1741
  - lib/avo/base_action.rb
1726
1742
  - lib/avo/base_card.rb
@@ -1,4 +0,0 @@
1
- # This controller has been generated to enable Rails' resource routes.
2
- # You shouldn't need to modify it in order to use Avo.
3
- class Avo::TeamUsersController < Avo::ResourcesController
4
- end
@@ -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>
@@ -1,20 +0,0 @@
1
- module Avo
2
- class ActionModel
3
- include ActiveModel::Model
4
-
5
- # This class augments a model the action form declaration.
6
- def initialize(attributes = {})
7
- set_attr_accessors attributes
8
-
9
- super(attributes)
10
- end
11
-
12
- private
13
-
14
- def set_attr_accessors(attributes)
15
- attributes.each do |k, v|
16
- self.class.class_eval { attr_accessor k }
17
- end
18
- end
19
- end
20
- end