avo 2.13.5.pre.2 → 2.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of avo might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -3
- data/README.md +7 -11
- data/app/components/avo/base_component.rb +3 -2
- data/app/components/avo/button_component.rb +1 -1
- data/app/components/avo/fields/common/progress_bar_component.html.erb +8 -0
- data/app/components/avo/fields/common/progress_bar_component.rb +15 -0
- data/app/components/avo/fields/common/single_file_viewer_component.html.erb +1 -1
- data/app/components/avo/fields/common/single_file_viewer_component.rb +12 -0
- data/app/components/avo/fields/progress_bar_field/index_component.html.erb +1 -6
- data/app/components/avo/fields/progress_bar_field/show_component.html.erb +1 -6
- data/app/components/avo/filters_component.html.erb +1 -1
- data/app/components/avo/filters_component.rb +11 -1
- data/app/components/avo/index/resource_table_component.html.erb +37 -2
- data/app/components/avo/index/resource_table_component.rb +15 -1
- data/app/components/avo/item_switcher_component.rb +1 -1
- data/app/components/avo/resource_component.rb +2 -3
- data/app/components/avo/tab_group_component.html.erb +4 -4
- data/app/components/avo/tab_group_component.rb +7 -1
- data/app/components/avo/tab_switcher_component.html.erb +28 -8
- data/app/components/avo/tab_switcher_component.rb +3 -1
- data/app/components/avo/views/resource_edit_component.rb +2 -0
- data/app/components/avo/views/resource_index_component.html.erb +3 -6
- data/app/components/avo/views/resource_index_component.rb +3 -2
- data/app/controllers/avo/actions_controller.rb +17 -4
- data/app/helpers/avo/resources_helper.rb +1 -1
- data/app/javascript/js/controllers/action_controller.js +11 -2
- data/app/javascript/js/controllers/fields/date_field_controller.js +5 -1
- data/app/javascript/js/controllers/item_select_all_controller.js +42 -4
- data/app/javascript/js/controllers/tabs_controller.js +13 -9
- data/app/views/avo/actions/show.html.erb +2 -1
- data/app/views/avo/base/index.html.erb +1 -0
- data/app/views/avo/partials/_table_header.html.erb +1 -1
- data/app/views/avo/partials/_view_toggle_button.html.erb +2 -2
- data/lib/avo/base_resource.rb +1 -5
- data/lib/avo/concerns/fetches_things.rb +2 -13
- data/lib/avo/concerns/has_fields.rb +2 -2
- data/lib/avo/configuration.rb +2 -2
- data/lib/avo/fields/base_field.rb +1 -1
- data/lib/avo/fields/concerns/is_required.rb +15 -1
- data/lib/avo/services/encryption_service.rb +33 -0
- data/lib/avo/tab_group.rb +3 -1
- data/lib/avo/tab_group_builder.rb +4 -4
- data/lib/avo/version.rb +1 -1
- data/lib/generators/avo/templates/initializer/avo.tt +9 -10
- data/lib/generators/avo/templates/locales/avo.en.yml +5 -1
- data/lib/generators/avo/templates/locales/avo.fr.yml +4 -0
- data/lib/generators/avo/templates/locales/avo.nb-NO.yml +5 -0
- data/lib/generators/avo/templates/locales/avo.pt-BR.yml +5 -0
- data/lib/generators/avo/templates/locales/avo.ro.yml +6 -0
- data/public/avo-assets/avo.css +44 -4
- data/public/avo-assets/avo.js +64 -64
- data/public/avo-assets/avo.js.map +2 -2
- metadata +7 -6
- data/app/controllers/avo/team_users_controller.rb +0 -4
- data/app/views/avo/partials/_tabs_toggle.html.erb +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.
|
4
|
+
version: 2.14.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-08-
|
12
|
+
date: 2022-08-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -1438,6 +1438,8 @@ files:
|
|
1438
1438
|
- app/components/avo/fields/common/heading_component.rb
|
1439
1439
|
- app/components/avo/fields/common/key_value_component.html.erb
|
1440
1440
|
- app/components/avo/fields/common/key_value_component.rb
|
1441
|
+
- app/components/avo/fields/common/progress_bar_component.html.erb
|
1442
|
+
- app/components/avo/fields/common/progress_bar_component.rb
|
1441
1443
|
- app/components/avo/fields/common/single_file_viewer_component.html.erb
|
1442
1444
|
- app/components/avo/fields/common/single_file_viewer_component.rb
|
1443
1445
|
- app/components/avo/fields/common/status_viewer_component.html.erb
|
@@ -1640,7 +1642,6 @@ files:
|
|
1640
1642
|
- app/controllers/avo/reorder_controller.rb
|
1641
1643
|
- app/controllers/avo/resources_controller.rb
|
1642
1644
|
- app/controllers/avo/search_controller.rb
|
1643
|
-
- app/controllers/avo/team_users_controller.rb
|
1644
1645
|
- app/helpers/avo/actions_helper.rb
|
1645
1646
|
- app/helpers/avo/application_helper.rb
|
1646
1647
|
- app/helpers/avo/attachments_helper.rb
|
@@ -1724,7 +1725,6 @@ files:
|
|
1724
1725
|
- app/views/avo/partials/_sidebar_extra.html.erb
|
1725
1726
|
- app/views/avo/partials/_sortable_component.html.erb
|
1726
1727
|
- app/views/avo/partials/_table_header.html.erb
|
1727
|
-
- app/views/avo/partials/_tabs_toggle.html.erb
|
1728
1728
|
- app/views/avo/partials/_view_toggle_button.html.erb
|
1729
1729
|
- app/views/avo/private/_links_and_buttons.html.erb
|
1730
1730
|
- app/views/avo/private/design.html.erb
|
@@ -1866,6 +1866,7 @@ files:
|
|
1866
1866
|
- lib/avo/resources/controls/items_holder.rb
|
1867
1867
|
- lib/avo/resources/controls/link_to.rb
|
1868
1868
|
- lib/avo/services/authorization_service.rb
|
1869
|
+
- lib/avo/services/encryption_service.rb
|
1869
1870
|
- lib/avo/services/uri_service.rb
|
1870
1871
|
- lib/avo/svg_finder.rb
|
1871
1872
|
- lib/avo/tab.rb
|
@@ -1972,9 +1973,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
1972
1973
|
version: 2.4.0
|
1973
1974
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
1974
1975
|
requirements:
|
1975
|
-
- - "
|
1976
|
+
- - ">="
|
1976
1977
|
- !ruby/object:Gem::Version
|
1977
|
-
version:
|
1978
|
+
version: '0'
|
1978
1979
|
requirements: []
|
1979
1980
|
rubygems_version: 3.3.3
|
1980
1981
|
signing_key:
|
@@ -1,20 +0,0 @@
|
|
1
|
-
<div class="flex">
|
2
|
-
<div class="button-group">
|
3
|
-
<% tabs.each do |tab| %>
|
4
|
-
<% is_active_view = tab.name.to_s == active_tab_name.to_s %>
|
5
|
-
<%= a_link resource_path(resource: @resource, model: @resource.model, keep_query_params: true, active_tab_name: tab.name, tab_turbo_frame: group.turbo_frame_id),
|
6
|
-
color: is_active_view ? :gray : :primary,
|
7
|
-
rounded: false,
|
8
|
-
size: :sm,
|
9
|
-
class: is_active_view ? ' bg-gray-100 border-gray-300' : ' z-20',
|
10
|
-
title: tab.description || tab.name,
|
11
|
-
data: {
|
12
|
-
tippy: 'tooltip',
|
13
|
-
'turbo-frame': group.turbo_frame_id,
|
14
|
-
control: "view-type-toggle-#{tab}"
|
15
|
-
} do %>
|
16
|
-
<%= tab.name %>
|
17
|
-
<% end %>
|
18
|
-
<% end %>
|
19
|
-
</div>
|
20
|
-
</div>
|