avo 2.19.0 → 2.21.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.
- checksums.yaml +4 -4
- data/Gemfile +1 -2
- data/Gemfile.lock +6 -6
- data/app/components/avo/card_component.html.erb +15 -15
- data/app/components/avo/card_component.rb +7 -5
- data/app/components/avo/empty_state_component.html.erb +1 -1
- data/app/components/avo/empty_state_component.rb +12 -10
- data/app/components/avo/fields/belongs_to_field/edit_component.rb +1 -1
- data/app/components/avo/fields/boolean_field/edit_component.html.erb +1 -1
- data/app/components/avo/fields/boolean_group_field/edit_component.html.erb +1 -1
- data/app/components/avo/fields/code_field/edit_component.html.erb +2 -2
- data/app/components/avo/fields/country_field/edit_component.html.erb +1 -1
- data/app/components/avo/fields/date_field/edit_component.html.erb +2 -2
- data/app/components/avo/fields/date_time_field/edit_component.html.erb +2 -2
- data/app/components/avo/fields/edit_component.rb +4 -0
- data/app/components/avo/fields/external_image_field/edit_component.html.erb +1 -1
- data/app/components/avo/fields/file_field/edit_component.html.erb +1 -1
- data/app/components/avo/fields/files_field/edit_component.html.erb +1 -1
- data/app/components/avo/fields/has_one_field/show_component.html.erb +3 -3
- data/app/components/avo/fields/markdown_field/edit_component.html.erb +1 -1
- data/app/components/avo/fields/markdown_field/show_component.html.erb +1 -1
- data/app/components/avo/fields/number_field/edit_component.html.erb +1 -1
- data/app/components/avo/fields/password_field/edit_component.html.erb +1 -1
- data/app/components/avo/fields/progress_bar_field/edit_component.html.erb +1 -1
- data/app/components/avo/fields/select_field/edit_component.html.erb +2 -2
- data/app/components/avo/fields/show_component.rb +4 -0
- data/app/components/avo/fields/status_field/edit_component.html.erb +1 -1
- data/app/components/avo/fields/tags_field/edit_component.html.erb +2 -2
- data/app/components/avo/fields/text_field/edit_component.html.erb +1 -1
- data/app/components/avo/fields/textarea_field/edit_component.html.erb +1 -1
- data/app/components/avo/fields/time_field/edit_component.html.erb +2 -2
- data/app/components/avo/fields/trix_field/edit_component.html.erb +3 -2
- data/app/components/avo/fields/trix_field/edit_component.rb +5 -1
- data/app/components/avo/index/resource_grid_component.html.erb +1 -1
- data/app/components/avo/index/resource_table_component.rb +3 -3
- data/app/components/avo/paginator_component.html.erb +1 -5
- data/app/components/avo/paginator_component.rb +8 -0
- data/app/components/avo/panel_component.html.erb +1 -1
- data/app/components/avo/resource_component.rb +17 -2
- data/app/components/avo/sidebar/group_component.html.erb +18 -12
- data/app/components/avo/sidebar/heading_component.html.erb +17 -10
- data/app/components/avo/views/resource_index_component.html.erb +1 -1
- data/app/controllers/avo/actions_controller.rb +27 -5
- data/app/controllers/avo/application_controller.rb +3 -2
- data/app/controllers/avo/associations_controller.rb +2 -1
- data/app/controllers/avo/attachments_controller.rb +4 -0
- data/app/controllers/avo/base_controller.rb +27 -16
- data/app/controllers/avo/dashboards/cards_controller.rb +1 -1
- data/app/controllers/avo/dashboards_controller.rb +1 -0
- data/app/controllers/avo/search_controller.rb +11 -5
- data/app/javascript/js/controllers/fields/trix_field_controller.js +6 -3
- data/app/javascript/js/controllers/item_select_all_controller.js +7 -4
- data/app/views/avo/actions/keep_modal_open.turbo_stream.erb +5 -0
- data/app/views/avo/actions/show.html.erb +3 -2
- data/app/views/avo/base/_multiple_select_filter.html.erb +1 -1
- data/app/views/avo/partials/_resource_search.html.erb +1 -1
- data/app/views/layouts/avo/application.html.erb +1 -1
- data/avo.gemspec +0 -1
- data/config/i18n-tasks.yml +1 -1
- data/config/initializers/pagy.rb +16 -0
- data/lib/avo/app.rb +4 -1
- data/lib/avo/base_action.rb +25 -4
- data/lib/avo/base_card.rb +8 -3
- data/lib/avo/base_resource.rb +21 -6
- data/lib/avo/concerns/breadcrumbs.rb +96 -0
- data/lib/avo/concerns/handles_field_args.rb +8 -1
- data/lib/avo/concerns/has_html_attributes.rb +14 -16
- data/lib/avo/dashboards/base_dashboard.rb +7 -1
- data/lib/avo/fields/base_field.rb +2 -1
- data/lib/avo/fields/concerns/is_disabled.rb +19 -0
- data/lib/avo/fields/select_field.rb +39 -34
- data/lib/avo/filters/base_filter.rb +9 -3
- data/lib/avo/hosts/resource_record_host.rb +7 -0
- data/lib/avo/hosts/visibility_host.rb +2 -1
- data/lib/avo/services/authorization_service.rb +2 -2
- data/lib/avo/version.rb +1 -1
- data/lib/generators/avo/templates/field/components/edit_component.html.erb.tt +1 -1
- data/lib/generators/avo/templates/locales/avo.en.yml +3 -2
- data/lib/generators/avo/templates/locales/avo.fr.yml +3 -2
- data/lib/generators/avo/templates/locales/avo.nb.yml +3 -2
- data/lib/generators/avo/templates/locales/avo.nn.yml +3 -2
- data/lib/generators/avo/templates/locales/avo.pt-BR.yml +3 -2
- data/lib/generators/avo/templates/locales/avo.pt.yml +120 -0
- data/lib/generators/avo/templates/locales/avo.ro.yml +56 -55
- data/lib/generators/avo/templates/locales/avo.tr.yml +3 -2
- data/lib/generators/avo/templates/locales/pagy/nn.yml +15 -0
- data/lib/generators/avo/templates/locales/pagy/ro.yml +17 -0
- data/public/avo-assets/avo.base.css +4 -4
- data/public/avo-assets/avo.base.js +2 -2
- data/public/avo-assets/avo.base.js.map +2 -2
- metadata +9 -16
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.
|
4
|
+
version: 2.21.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-
|
12
|
+
date: 2022-12-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|
@@ -151,20 +151,6 @@ dependencies:
|
|
151
151
|
- - ">="
|
152
152
|
- !ruby/object:Gem::Version
|
153
153
|
version: '0'
|
154
|
-
- !ruby/object:Gem::Dependency
|
155
|
-
name: breadcrumbs_on_rails
|
156
|
-
requirement: !ruby/object:Gem::Requirement
|
157
|
-
requirements:
|
158
|
-
- - ">="
|
159
|
-
- !ruby/object:Gem::Version
|
160
|
-
version: '0'
|
161
|
-
type: :runtime
|
162
|
-
prerelease: false
|
163
|
-
version_requirements: !ruby/object:Gem::Requirement
|
164
|
-
requirements:
|
165
|
-
- - ">="
|
166
|
-
- !ruby/object:Gem::Version
|
167
|
-
version: '0'
|
168
154
|
- !ruby/object:Gem::Dependency
|
169
155
|
name: dry-initializer
|
170
156
|
requirement: !ruby/object:Gem::Requirement
|
@@ -1648,6 +1634,7 @@ files:
|
|
1648
1634
|
- app/javascript/js/controllers/toggle_panel_controller.js
|
1649
1635
|
- app/javascript/js/helpers/cast_boolean.js
|
1650
1636
|
- app/javascript/js/helpers/debounce_promise.js
|
1637
|
+
- app/views/avo/actions/keep_modal_open.turbo_stream.erb
|
1651
1638
|
- app/views/avo/actions/show.html.erb
|
1652
1639
|
- app/views/avo/associations/new.html.erb
|
1653
1640
|
- app/views/avo/base/_boolean_filter.html.erb
|
@@ -1717,6 +1704,7 @@ files:
|
|
1717
1704
|
- lib/avo/base_card.rb
|
1718
1705
|
- lib/avo/base_resource.rb
|
1719
1706
|
- lib/avo/base_resource_tool.rb
|
1707
|
+
- lib/avo/concerns/breadcrumbs.rb
|
1720
1708
|
- lib/avo/concerns/can_replace_fields.rb
|
1721
1709
|
- lib/avo/concerns/fetches_things.rb
|
1722
1710
|
- lib/avo/concerns/filters_session_handler.rb
|
@@ -1747,6 +1735,7 @@ files:
|
|
1747
1735
|
- lib/avo/fields/boolean_group_field.rb
|
1748
1736
|
- lib/avo/fields/code_field.rb
|
1749
1737
|
- lib/avo/fields/concerns/has_default.rb
|
1738
|
+
- lib/avo/fields/concerns/is_disabled.rb
|
1750
1739
|
- lib/avo/fields/concerns/is_readonly.rb
|
1751
1740
|
- lib/avo/fields/concerns/is_required.rb
|
1752
1741
|
- lib/avo/fields/country_field.rb
|
@@ -1794,6 +1783,7 @@ files:
|
|
1794
1783
|
- lib/avo/hosts/dashboard_visibility.rb
|
1795
1784
|
- lib/avo/hosts/ordering.rb
|
1796
1785
|
- lib/avo/hosts/record_host.rb
|
1786
|
+
- lib/avo/hosts/resource_record_host.rb
|
1797
1787
|
- lib/avo/hosts/resource_view_record_host.rb
|
1798
1788
|
- lib/avo/hosts/search_scope_host.rb
|
1799
1789
|
- lib/avo/hosts/view_record_host.rb
|
@@ -1890,8 +1880,11 @@ files:
|
|
1890
1880
|
- lib/generators/avo/templates/locales/avo.nb.yml
|
1891
1881
|
- lib/generators/avo/templates/locales/avo.nn.yml
|
1892
1882
|
- lib/generators/avo/templates/locales/avo.pt-BR.yml
|
1883
|
+
- lib/generators/avo/templates/locales/avo.pt.yml
|
1893
1884
|
- lib/generators/avo/templates/locales/avo.ro.yml
|
1894
1885
|
- lib/generators/avo/templates/locales/avo.tr.yml
|
1886
|
+
- lib/generators/avo/templates/locales/pagy/nn.yml
|
1887
|
+
- lib/generators/avo/templates/locales/pagy/ro.yml
|
1895
1888
|
- lib/generators/avo/templates/resource/controller.tt
|
1896
1889
|
- lib/generators/avo/templates/resource/resource.tt
|
1897
1890
|
- lib/generators/avo/templates/resource_tools/partial.tt
|